xref: /illumos-gate/usr/src/uts/sun/sys/dada/dada_types.h (revision 7c478bd9)
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 (c) 1996, by Sun Microsystems Inc.
24  * All rights reserved.
25  */
26 
27 #ifndef	_SYS_DADA_DADA_TYPES_H
28 #define	_SYS_DADA_DADA_TYPES_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 /*
33  * The following are the types for the directly coupled disk subsystem.
34  */
35 
36 #include <sys/types.h>
37 #include <sys/param.h>
38 
39 #ifdef	__cplusplus
40 extern "C" {
41 #endif
42 
43 #ifdef  __STDC__
44 typedef void *ataopaque_t;
45 #else  /* __STDC__ */
46 typedef char *ataopaque_t;
47 #endif /* __STDC__ */
48 
49 
50 #ifdef  _KERNEL
51 #include <sys/systm.h>
52 #include <sys/cmn_err.h>
53 #include <sys/debug.h>
54 #include <sys/devops.h>
55 #endif
56 /*
57  * Each implementation will have it's own specific set
58  * of types it wishes to define.
59  */
60 
61 /*
62  * Generally useful files to include
63  */
64 
65 #include <sys/dada/dada_params.h>
66 #include <sys/dada/dada_address.h>
67 #include <sys/dada/dada_pkt.h>
68 #ifdef	_KERNEL
69 #include <sys/dada/conf/autoconf.h>
70 #include <sys/dada/conf/device.h>
71 #endif	/* _KERNEL */
72 #include <sys/dada/dada_ctl.h>
73 #include <sys/dada/dada_resource.h>
74 
75 #ifdef  _KERNEL
76 #include <sys/dada/conf/autoconf.h>
77 #endif  /* _KERNEL */
78 
79 /*
80  * Sun dada type definitions
81  */
82 #include <sys/dada/impl/types.h>
83 #include <sys/dada/impl/identify.h>
84 
85 
86 /*
87  * For drivers which do not include these - must be last
88  */
89 #ifdef  _KERNEL
90 #include <sys/ddi.h>
91 #include <sys/sunddi.h>
92 #include <sys/stat.h>
93 #endif  /* _KERNEL */
94 
95 /*
96  * Each implementation will have it's own specific set
97  * of types it wishes to define.
98  */
99 
100 /*
101  * Generally useful files to include
102  */
103 
104 #include <sys/dada/dada_params.h>
105 #include <sys/dada/dada_address.h>
106 #include <sys/dada/dada_pkt.h>
107 #ifdef  _KERNEL
108 #include <sys/dada/conf/device.h>
109 #endif  /* _KERNEL */
110 
111 #include <sys/dada/dada_ctl.h>
112 #include <sys/dada/dada_resource.h>
113 
114 #ifdef  _KERNEL
115 #include <sys/dada/conf/autoconf.h>
116 #endif  /* _KERNEL */
117 
118 /*
119  * XXX: To be defined as we progress along
120  * #include <sys/dada/generic/commands.h>
121  * #include <sys/dada/generic/status.h>
122  * #include <sys/dada/generic/message.h>
123  * #include <sys/dada/generic/mode.h>
124  */
125 
126 /*
127  * For drivers which do not include these - must be last
128  */
129 #ifdef  _KERNEL
130 #include <sys/ddi.h>
131 #include <sys/sunddi.h>
132 #include <sys/stat.h>
133 #endif	/* _KERNEL */
134 
135 #ifdef	__cplusplus
136 }
137 #endif
138 
139 #endif	/* _SYS_DADA_DADA_TYPES_H */
140