xref: /illumos-gate/usr/src/cmd/format/init_csparc.c (revision b93865c3d90e9b0d73e338c9abb3293c35c571a8)
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  * Copyright 1996,1998,2000,2002 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 /*
28  * This file defines the known controller types.  To add a new controller
29  * type, simply add a new line to the array and define the necessary
30  * ops vector in a 'driver' file.
31  */
32 #include "global.h"
33 
34 extern	struct ctlr_ops scsiops;
35 extern	struct ctlr_ops ataops;
36 extern	struct ctlr_ops pcmcia_ataops;
37 
38 /*
39  * This array defines the supported controller types
40  */
41 struct	ctlr_type ctlr_types[] = {
42 	{ DKC_SCSI_CCS,
43 		"SCSI",
44 		&scsiops,
45 		CF_SCSI | CF_EMBEDDED },
46 	{ DKC_DIRECT,
47 		"ata",
48 		&ataops,
49 		CF_NOFORMAT | CF_NOWLIST },
50 
51 	{ DKC_PCMCIA_ATA,
52 		"pcmcia",
53 		&pcmcia_ataops,
54 		CF_NOFORMAT | CF_NOWLIST },
55 };
56 
57 /*
58  * This variable is used to count the entries in the array so its
59  * size is not hard-wired anywhere.
60  */
61 int	nctypes = sizeof (ctlr_types) / sizeof (struct ctlr_type);
62