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 2009 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 #include <sys/ddi.h> 61 #include <sys/sunddi.h> 62 #include <sys/stat.h> 63 #include <sys/sunndi.h> 64 #include <sys/devctl.h> 65 #endif /* _KERNEL */ 66 67 /* 68 * Each implementation will have it's own specific set 69 * of types it wishes to define. 70 */ 71 72 /* 73 * Generally useful files to include 74 */ 75 #include <sys/scsi/scsi_params.h> 76 #include <sys/scsi/scsi_address.h> 77 #include <sys/scsi/scsi_pkt.h> 78 #ifdef _KERNEL 79 #include <sys/scsi/conf/device.h> 80 #endif /* _KERNEL */ 81 #include <sys/scsi/scsi_ctl.h> 82 #include <sys/scsi/scsi_resource.h> 83 84 #ifdef _KERNEL 85 #include <sys/scsi/conf/autoconf.h> 86 #include <sys/scsi/scsi_watch.h> 87 #include <sys/scsi/scsi_fm.h> 88 #endif /* _KERNEL */ 89 90 #include <sys/scsi/generic/commands.h> 91 #include <sys/scsi/generic/status.h> 92 #include <sys/scsi/generic/message.h> 93 #include <sys/scsi/generic/mode.h> 94 95 /* 96 * Sun SCSI type definitions 97 */ 98 #include <sys/scsi/impl/types.h> 99 100 #endif /* _SYS_SCSI_SCSI_TYPES_H */ 101