xref: /titanic_50/usr/src/cmd/format/init_ci386.c (revision 84f7a9b9dca4f23b5f50edef0e59d7eb44301114)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 
23 /*
24  * Copyright (c) 1996,2000 by Sun Microsystems, Inc.
25  * All rights reserved.
26  */
27 
28 #pragma ident	"%Z%%M%	%I%	%E% SMI"
29 
30 /*
31  * This file defines the known controller types.  To add a new controller
32  * type, simply add a new line to the array and define the necessary
33  * ops vector in a 'driver' file.
34  */
35 #include "global.h"
36 #include <sys/dkio.h>
37 
38 extern	struct ctlr_ops scsiops;
39 extern	struct ctlr_ops ataops;
40 extern	struct ctlr_ops pcmcia_ataops;
41 
42 /*
43  * This array defines the supported controller types
44  */
45 struct	ctlr_type ctlr_types[] = {
46 
47 	{ DKC_DIRECT,
48 		"ata",
49 		&ataops,
50 		CF_NOFORMAT | CF_WLIST },
51 
52 	{ DKC_SCSI_CCS,
53 		"SCSI",
54 		&scsiops,
55 		CF_SCSI | CF_EMBEDDED },
56 
57 	{ DKC_PCMCIA_ATA,
58 		"pcmcia",
59 		&pcmcia_ataops,
60 		CF_NOFORMAT | CF_NOWLIST },
61 
62 };
63 
64 /*
65  * This variable is used to count the entries in the array so its
66  * size is not hard-wired anywhere.
67  */
68 int	nctypes = sizeof (ctlr_types) / sizeof (struct ctlr_type);
69