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