1700 Add SCSI UNMAP support
[unleashed.git] / usr / src / uts / common / sys / scsi / scsi_types.h
blob6aeb2bc0c59e8e9582f66ea5113a46e882638079
1 /*
2 * CDDL HEADER START
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.
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.
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]
19 * CDDL HEADER END
22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
26 #ifndef _SYS_SCSI_SCSI_TYPES_H
27 #define _SYS_SCSI_SCSI_TYPES_H
31 * Types for SCSI subsystems.
33 * This file picks up specific as well as generic type
34 * defines, and also serves as a wrapper for many common
35 * includes.
38 #include <sys/types.h>
39 #include <sys/param.h>
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
46 #ifndef _OPAQUE_T
47 #define _OPAQUE_T
48 typedef void *opaque_t;
49 #endif /* _OPAQUE_T */
51 #ifdef __cplusplus
53 #endif
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 */
68 * Each implementation will have it's own specific set
69 * of types it wishes to define.
73 * Generally useful files to include
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>
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 */
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>
96 * Sun SCSI type definitions
98 #include <sys/scsi/impl/types.h>
100 #endif /* _SYS_SCSI_SCSI_TYPES_H */