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 (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 /* 22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23 * Use is subject to license terms. 24 */ 25 26 #ifndef _SYS_SCSI_SCSI_TYPES_H 27 #define _SYS_SCSI_SCSI_TYPES_H 28 29 30 /* 31 * Types for SCSI subsystems. 32 * 33 * This file picks up specific as well as generic type 34 * defines, and also serves as a wrapper for many common 35 * includes. 36 */ 37 38 #include <sys/types.h> 39 #include <sys/param.h> 40 41 42 #ifdef __cplusplus 43 extern "C" { 44 #endif 45 46 #ifndef _OPAQUE_T 47 #define _OPAQUE_T 48 typedef void *opaque_t; 49 #endif /* _OPAQUE_T */ 50 51 #ifdef __cplusplus 52 } 53 #endif 54 55 #ifdef _KERNEL 56 #include <sys/systm.h> 57 #include <sys/cmn_err.h> 58 #include <sys/debug.h> 59 #include <sys/devops.h> 60 #endif /* _KERNEL */ 61 62 /* 63 * Each implementation will have it's own specific set 64 * of types it wishes to define. 65 */ 66 67 /* 68 * Generally useful files to include 69 */ 70 #include <sys/scsi/scsi_params.h> 71 #include <sys/scsi/scsi_address.h> 72 #include <sys/scsi/scsi_pkt.h> 73 #ifdef _KERNEL 74 #include <sys/scsi/conf/device.h> 75 #endif /* _KERNEL */ 76 #include <sys/scsi/scsi_ctl.h> 77 #include <sys/scsi/scsi_resource.h> 78 79 #ifdef _KERNEL 80 #include <sys/scsi/conf/autoconf.h> 81 #include <sys/scsi/scsi_watch.h> 82 #include <sys/scsi/scsi_fm.h> 83 #endif /* _KERNEL */ 84 85 #include <sys/scsi/generic/commands.h> 86 #include <sys/scsi/generic/status.h> 87 #include <sys/scsi/generic/message.h> 88 #include <sys/scsi/generic/mode.h> 89 90 91 /* 92 * Sun SCSI type definitions 93 */ 94 #include <sys/scsi/impl/types.h> 95 96 /* 97 * For drivers which do not include these - must be last 98 */ 99 #ifdef _KERNEL 100 #include <sys/ddi.h> 101 #include <sys/sunddi.h> 102 #include <sys/stat.h> 103 #include <sys/sunndi.h> 104 #include <sys/devctl.h> 105 #include <sys/ddifm.h> 106 #endif /* _KERNEL */ 107 108 #endif /* _SYS_SCSI_SCSI_TYPES_H */ 109