dptivar.h revision 1.2.6.2 1 1.2.6.2 he /* $NetBSD: dptivar.h,v 1.2.6.2 2001/12/09 19:11:34 he Exp $ */
2 1.2.6.2 he
3 1.2.6.2 he /*-
4 1.2.6.2 he * Copyright (c) 2001 The NetBSD Foundation, Inc.
5 1.2.6.2 he * All rights reserved.
6 1.2.6.2 he *
7 1.2.6.2 he * This code is derived from software contributed to The NetBSD Foundation
8 1.2.6.2 he * by Andrew Doran.
9 1.2.6.2 he *
10 1.2.6.2 he * Redistribution and use in source and binary forms, with or without
11 1.2.6.2 he * modification, are permitted provided that the following conditions
12 1.2.6.2 he * are met:
13 1.2.6.2 he * 1. Redistributions of source code must retain the above copyright
14 1.2.6.2 he * notice, this list of conditions and the following disclaimer.
15 1.2.6.2 he * 2. Redistributions in binary form must reproduce the above copyright
16 1.2.6.2 he * notice, this list of conditions and the following disclaimer in the
17 1.2.6.2 he * documentation and/or other materials provided with the distribution.
18 1.2.6.2 he * 3. All advertising materials mentioning features or use of this software
19 1.2.6.2 he * must display the following acknowledgement:
20 1.2.6.2 he * This product includes software developed by the NetBSD
21 1.2.6.2 he * Foundation, Inc. and its contributors.
22 1.2.6.2 he * 4. Neither the name of The NetBSD Foundation nor the names of its
23 1.2.6.2 he * contributors may be used to endorse or promote products derived
24 1.2.6.2 he * from this software without specific prior written permission.
25 1.2.6.2 he *
26 1.2.6.2 he * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
27 1.2.6.2 he * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28 1.2.6.2 he * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 1.2.6.2 he * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
30 1.2.6.2 he * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 1.2.6.2 he * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 1.2.6.2 he * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 1.2.6.2 he * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 1.2.6.2 he * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 1.2.6.2 he * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 1.2.6.2 he * POSSIBILITY OF SUCH DAMAGE.
37 1.2.6.2 he */
38 1.2.6.2 he
39 1.2.6.2 he /*
40 1.2.6.2 he * Copyright (c) 1996-2000 Distributed Processing Technology Corporation
41 1.2.6.2 he * Copyright (c) 2000 Adaptec Corporation
42 1.2.6.2 he * All rights reserved.
43 1.2.6.2 he *
44 1.2.6.2 he * TERMS AND CONDITIONS OF USE
45 1.2.6.2 he *
46 1.2.6.2 he * Redistribution and use in source form, with or without modification, are
47 1.2.6.2 he * permitted provided that redistributions of source code must retain the
48 1.2.6.2 he * above copyright notice, this list of conditions and the following disclaimer.
49 1.2.6.2 he *
50 1.2.6.2 he * This software is provided `as is' by Adaptec and any express or implied
51 1.2.6.2 he * warranties, including, but not limited to, the implied warranties of
52 1.2.6.2 he * merchantability and fitness for a particular purpose, are disclaimed. In no
53 1.2.6.2 he * event shall Adaptec be liable for any direct, indirect, incidental, special,
54 1.2.6.2 he * exemplary or consequential damages (including, but not limited to,
55 1.2.6.2 he * procurement of substitute goods or services; loss of use, data, or profits;
56 1.2.6.2 he * or business interruptions) however caused and on any theory of liability,
57 1.2.6.2 he * whether in contract, strict liability, or tort (including negligence or
58 1.2.6.2 he * otherwise) arising in any way out of the use of this driver software, even
59 1.2.6.2 he * if advised of the possibility of such damage.
60 1.2.6.2 he */
61 1.2.6.2 he
62 1.2.6.2 he #ifndef _I2O_DPTIVAR_H_
63 1.2.6.2 he #define _I2O_DPTIVAR_H_
64 1.2.6.2 he
65 1.2.6.2 he #define DPTI_MAX_SEGS 17
66 1.2.6.2 he
67 1.2.6.2 he /*
68 1.2.6.2 he * Runtime state.
69 1.2.6.2 he */
70 1.2.6.2 he struct dpti_softc {
71 1.2.6.2 he struct device sc_dv;
72 1.2.6.2 he int sc_blinkled;
73 1.2.6.2 he int sc_nactive;
74 1.2.6.2 he };
75 1.2.6.2 he
76 1.2.6.2 he struct dpti_ptbuf {
77 1.2.6.2 he caddr_t db_ptr;
78 1.2.6.2 he struct proc *db_proc;
79 1.2.6.2 he int db_size;
80 1.2.6.2 he int db_out;
81 1.2.6.2 he int db_nfrag;
82 1.2.6.2 he struct iovec db_frags[DPTI_MAX_SEGS];
83 1.2.6.2 he };
84 1.2.6.2 he
85 1.2.6.2 he /*
86 1.2.6.2 he * Constants used by the `signature'.
87 1.2.6.2 he */
88 1.2.6.2 he #define DPTI_VERSION 1
89 1.2.6.2 he #define DPTI_REVISION 0
90 1.2.6.2 he #define DPTI_SUBREVISION 0
91 1.2.6.2 he
92 1.2.6.2 he #define DPTI_YEAR 1
93 1.2.6.2 he #define DPTI_MONTH 9
94 1.2.6.2 he #define DPTI_DAY 12
95 1.2.6.2 he
96 1.2.6.2 he /*
97 1.2.6.2 he * ioctls. We define only the lower 16 bits, since the DPT utilities don't
98 1.2.6.2 he * seem to obey the ioctl encoding conventions of each platform - the high
99 1.2.6.2 he * 16 bits are relatively meaningless.
100 1.2.6.2 he */
101 1.2.6.2 he #define DPT_EATAUSRCMD 0x4441
102 1.2.6.2 he #define DPT_DEBUG 0x4442
103 1.2.6.2 he #define DPT_SIGNATURE 0x4443
104 1.2.6.2 he #define DPT_NUMCTRLS 0x4444
105 1.2.6.2 he #define DPT_CTRLINFO 0x4445
106 1.2.6.2 he #define DPT_STATINFO 0x4446
107 1.2.6.2 he #define DPT_CLRSTAT 0x4447
108 1.2.6.2 he #define DPT_SYSINFO 0x4448
109 1.2.6.2 he #define DPT_TIMEOUT 0x4449
110 1.2.6.2 he #define DPT_CONFIG 0x444a
111 1.2.6.2 he #define DPT_BLINKLED 0x444b
112 1.2.6.2 he #define DPT_I2OUSRCMD 0x444c
113 1.2.6.2 he #define DPT_I2ORESCANCMD 0x444d
114 1.2.6.2 he #define DPT_I2ORESETCMD 0x444e
115 1.2.6.2 he #define DPT_TARGET_BUSY 0x444f
116 1.2.6.2 he
117 1.2.6.2 he /*
118 1.2.6.2 he * Controller and system info structures.
119 1.2.6.2 he */
120 1.2.6.2 he struct dpt_ctlrinfo {
121 1.2.6.2 he u_int16_t length;
122 1.2.6.2 he u_int16_t drvrHBAnum;
123 1.2.6.2 he u_int32_t baseAddr;
124 1.2.6.2 he u_int16_t blinkState;
125 1.2.6.2 he u_int8_t pciBusNum;
126 1.2.6.2 he u_int8_t pciDeviceNum;
127 1.2.6.2 he u_int16_t hbaFlags;
128 1.2.6.2 he u_int16_t Interrupt;
129 1.2.6.2 he u_int32_t reserved1;
130 1.2.6.2 he u_int32_t reserved2;
131 1.2.6.2 he u_int32_t reserved3;
132 1.2.6.2 he };
133 1.2.6.2 he #define FLG_OSD_PCI_VALID 0x0001
134 1.2.6.2 he #define FLG_OSD_DMA 0x0002
135 1.2.6.2 he #define FLG_OSD_I2O 0x0004
136 1.2.6.2 he
137 1.2.6.2 he struct dpt_targetbusy {
138 1.2.6.2 he u_long channel;
139 1.2.6.2 he u_long id;
140 1.2.6.2 he u_long lun;
141 1.2.6.2 he u_long isbusy;
142 1.2.6.2 he };
143 1.2.6.2 he
144 1.2.6.2 he #if (!defined(dsDescription_size))
145 1.2.6.2 he # define dsDescription_size 46
146 1.2.6.2 he #endif
147 1.2.6.2 he
148 1.2.6.2 he struct dpt_sig {
149 1.2.6.2 he char dsSignature[6]; /* ALWAYS "dPtSiG" */
150 1.2.6.2 he u_int8_t dsSigVersion; /* sig version (currently 1) */
151 1.2.6.2 he u_int8_t dsProcessorFamily; /* what type of processor */
152 1.2.6.2 he u_int8_t dsProcessor; /* precise processor */
153 1.2.6.2 he u_int8_t dsFiletype; /* type of file */
154 1.2.6.2 he u_int8_t dsFiletypeFlags; /* flags to specify type, etc. */
155 1.2.6.2 he u_int8_t dsOEM; /* OEM file was created for */
156 1.2.6.2 he u_int32_t dsOS; /* which Operating systems */
157 1.2.6.2 he u_int16_t dsCapabilities; /* RAID levels, etc. */
158 1.2.6.2 he u_int16_t dsDeviceSupp; /* SCSI device types supported */
159 1.2.6.2 he u_int16_t dsAdapterSupp; /* DPT HBA families supported */
160 1.2.6.2 he u_int16_t dsApplication; /* applications file is for */
161 1.2.6.2 he u_int8_t dsRequirements; /* Other driver dependencies */
162 1.2.6.2 he u_int8_t dsVersion; /* 1 */
163 1.2.6.2 he u_int8_t dsRevision; /* 'J' */
164 1.2.6.2 he u_int8_t dsSubRevision; /* '9' ' ' if N/A */
165 1.2.6.2 he u_int8_t dsMonth; /* creation month */
166 1.2.6.2 he u_int8_t dsDay; /* creation day */
167 1.2.6.2 he u_int8_t dsYear; /* creation year since 1980 (1993=13) */
168 1.2.6.2 he char dsDescription[dsDescription_size];
169 1.2.6.2 he };
170 1.2.6.2 he
171 1.2.6.2 he struct dpt_dparam {
172 1.2.6.2 he u_int16_t cylinders; /* Upto 1024 */
173 1.2.6.2 he u_int8_t heads; /* Upto 255 */
174 1.2.6.2 he u_int8_t sectors; /* Upto 63 */
175 1.2.6.2 he };
176 1.2.6.2 he
177 1.2.6.2 he struct dpt_sysinfo {
178 1.2.6.2 he u_int8_t drive0CMOS; /* CMOS Drive 0 Type */
179 1.2.6.2 he u_int8_t drive1CMOS; /* CMOS Drive 1 Type */
180 1.2.6.2 he u_int8_t numDrives; /* 0040:0075 contents */
181 1.2.6.2 he u_int8_t processorFamily; /* Same as DPTSIG's defs */
182 1.2.6.2 he u_int8_t processorType; /* Same as DPTSIG's defs */
183 1.2.6.2 he u_int8_t smartROMMajorVersion;
184 1.2.6.2 he u_int8_t smartROMMinorVersion; /* SmartROM version */
185 1.2.6.2 he u_int8_t smartROMRevision;
186 1.2.6.2 he u_int16_t flags; /* See bit definitions above */
187 1.2.6.2 he u_int16_t conventionalMemSize; /* in KB */
188 1.2.6.2 he u_int32_t extendedMemSize; /* in KB */
189 1.2.6.2 he u_int32_t osType; /* Same as DPTSIG's defs */
190 1.2.6.2 he u_int8_t osMajorVersion;
191 1.2.6.2 he u_int8_t osMinorVersion; /* The OS version */
192 1.2.6.2 he u_int8_t osRevision;
193 1.2.6.2 he u_int8_t osSubRevision;
194 1.2.6.2 he u_int8_t busType; /* See defininitions above */
195 1.2.6.2 he u_int8_t pad[3]; /* For alignment */
196 1.2.6.2 he struct dpt_dparam drives[16]; /* SmartROM Logical Drives */
197 1.2.6.2 he };
198 1.2.6.2 he
199 1.2.6.2 he /*
200 1.2.6.2 he * Defs pertaining to dpt_sysinfo.
201 1.2.6.2 he */
202 1.2.6.2 he
203 1.2.6.2 he #define SI_CMOS_Valid 0x0001
204 1.2.6.2 he #define SI_NumDrivesValid 0x0002
205 1.2.6.2 he #define SI_ProcessorValid 0x0004
206 1.2.6.2 he #define SI_MemorySizeValid 0x0008
207 1.2.6.2 he #define SI_DriveParamsValid 0x0010
208 1.2.6.2 he #define SI_SmartROMverValid 0x0020
209 1.2.6.2 he #define SI_OSversionValid 0x0040
210 1.2.6.2 he #define SI_OSspecificValid 0x0080
211 1.2.6.2 he #define SI_BusTypeValid 0x0100
212 1.2.6.2 he #define SI_ALL_VALID 0x0FFF
213 1.2.6.2 he #define SI_NO_SmartROM 0x8000
214 1.2.6.2 he
215 1.2.6.2 he #define SI_ISA_BUS 0x00
216 1.2.6.2 he #define SI_MCA_BUS 0x01
217 1.2.6.2 he #define SI_EISA_BUS 0x02
218 1.2.6.2 he #define SI_PCI_BUS 0x04
219 1.2.6.2 he
220 1.2.6.2 he
221 1.2.6.2 he /*
222 1.2.6.2 he * Defs pertaining to dpt_sig.
223 1.2.6.2 he */
224 1.2.6.2 he
225 1.2.6.2 he /* Current Signature Version - u_int8_t dsSigVersion; */
226 1.2.6.2 he /* ------------------------------------------------------------------ */
227 1.2.6.2 he #define SIG_VERSION 1
228 1.2.6.2 he
229 1.2.6.2 he /* Processor Family - u_int8_t dsProcessorFamily; DISTINCT VALUES */
230 1.2.6.2 he /* ------------------------------------------------------------------ */
231 1.2.6.2 he /* What type of processor the file is meant to run on. */
232 1.2.6.2 he /* This will let us know whether to read u_int16_ts as high/low or low/high. */
233 1.2.6.2 he #define PROC_INTEL 0x00 /* Intel 80x86 */
234 1.2.6.2 he #define PROC_MOTOROLA 0x01 /* Motorola 68K */
235 1.2.6.2 he #define PROC_MIPS4000 0x02 /* MIPS RISC 4000 */
236 1.2.6.2 he #define PROC_MIPS 0x02 /* MIPS RISC */
237 1.2.6.2 he #define PROC_ALPHA 0x03 /* DEC Alpha */
238 1.2.6.2 he #define PROC_POWERPC 0x04 /* IBM Power PC */
239 1.2.6.2 he #define PROC_i960 0x05 /* Intel i960 */
240 1.2.6.2 he #define PROC_ULTRASPARC 0x06 /* SPARC processor */
241 1.2.6.2 he
242 1.2.6.2 he /* Specific Minimim Processor - u_int8_t dsProcessor; FLAG BITS */
243 1.2.6.2 he /* ------------------------------------------------------------------ */
244 1.2.6.2 he /* Different bit definitions dependent on processor_family */
245 1.2.6.2 he
246 1.2.6.2 he /* PROC_INTEL: */
247 1.2.6.2 he #define PROC_8086 0x01 /* Intel 8086 */
248 1.2.6.2 he #define PROC_286 0x02 /* Intel 80286 */
249 1.2.6.2 he #define PROC_386 0x04 /* Intel 80386 */
250 1.2.6.2 he #define PROC_486 0x08 /* Intel 80486 */
251 1.2.6.2 he #define PROC_PENTIUM 0x10 /* Intel 586 aka P5 aka Pentium */
252 1.2.6.2 he #define PROC_SEXIUM 0x20 /* Intel 686 aka P6 aka Pentium Pro or MMX */
253 1.2.6.2 he
254 1.2.6.2 he /* PROC_i960: */
255 1.2.6.2 he #define PROC_960RX 0x01 /* Intel 80960RP/RD */
256 1.2.6.2 he #define PROC_960HX 0x02 /* Intel 80960HA/HD/HT */
257 1.2.6.2 he #define PROC_960RN 0x03 /* Intel 80960RN/RM */
258 1.2.6.2 he #define PROC_960RS 0x04 /* Intel 80960RS */
259 1.2.6.2 he
260 1.2.6.2 he /* PROC_MOTOROLA: */
261 1.2.6.2 he #define PROC_68000 0x01 /* Motorola 68000 */
262 1.2.6.2 he #define PROC_68010 0x02 /* Motorola 68010 */
263 1.2.6.2 he #define PROC_68020 0x04 /* Motorola 68020 */
264 1.2.6.2 he #define PROC_68030 0x08 /* Motorola 68030 */
265 1.2.6.2 he #define PROC_68040 0x10 /* Motorola 68040 */
266 1.2.6.2 he
267 1.2.6.2 he /* PROC_POWERPC */
268 1.2.6.2 he #define PROC_PPC601 0x01 /* PowerPC 601 */
269 1.2.6.2 he #define PROC_PPC603 0x02 /* PowerPC 603 */
270 1.2.6.2 he #define PROC_PPC604 0x04 /* PowerPC 604 */
271 1.2.6.2 he
272 1.2.6.2 he /* PROC_MIPS */
273 1.2.6.2 he #define PROC_R4000 0x01 /* MIPS R4000 */
274 1.2.6.2 he #define PROC_RM7000 0x02 /* MIPS RM7000 */
275 1.2.6.2 he
276 1.2.6.2 he /* Filetype - u_int8_t dsFiletype; DISTINCT VALUES */
277 1.2.6.2 he /* ------------------------------------------------------------------ */
278 1.2.6.2 he #define FT_EXECUTABLE 0 /* Executable Program */
279 1.2.6.2 he #define FT_SCRIPT 1 /* Script/Batch File??? */
280 1.2.6.2 he #define FT_HBADRVR 2 /* HBA Driver */
281 1.2.6.2 he #define FT_OTHERDRVR 3 /* Other Driver */
282 1.2.6.2 he #define FT_IFS 4 /* Installable Filesystem Driver */
283 1.2.6.2 he #define FT_ENGINE 5 /* DPT Engine */
284 1.2.6.2 he #define FT_COMPDRVR 6 /* Compressed Driver Disk */
285 1.2.6.2 he #define FT_LANGUAGE 7 /* Foreign Language file */
286 1.2.6.2 he #define FT_FIRMWARE 8 /* Downloadable or actual Firmware */
287 1.2.6.2 he #define FT_COMMMODL 9 /* Communications Module */
288 1.2.6.2 he #define FT_INT13 10 /* INT 13 style HBA Driver */
289 1.2.6.2 he #define FT_HELPFILE 11 /* Help file */
290 1.2.6.2 he #define FT_LOGGER 12 /* Event Logger */
291 1.2.6.2 he #define FT_INSTALL 13 /* An Install Program */
292 1.2.6.2 he #define FT_LIBRARY 14 /* Storage Manager Real-Mode Calls */
293 1.2.6.2 he #define FT_RESOURCE 15 /* Storage Manager Resource File */
294 1.2.6.2 he #define FT_MODEM_DB 16 /* Storage Manager Modem Database */
295 1.2.6.2 he
296 1.2.6.2 he /* Filetype flags - u_int8_t dsFiletypeFlags; FLAG BITS */
297 1.2.6.2 he /* ------------------------------------------------------------------ */
298 1.2.6.2 he #define FTF_DLL 0x01 /* Dynamic Link Library */
299 1.2.6.2 he #define FTF_NLM 0x02 /* Netware Loadable Module */
300 1.2.6.2 he #define FTF_OVERLAYS 0x04 /* Uses overlays */
301 1.2.6.2 he #define FTF_DEBUG 0x08 /* Debug version */
302 1.2.6.2 he #define FTF_TSR 0x10 /* TSR */
303 1.2.6.2 he #define FTF_SYS 0x20 /* DOS Loadable driver */
304 1.2.6.2 he #define FTF_PROTECTED 0x40 /* Runs in protected mode */
305 1.2.6.2 he #define FTF_APP_SPEC 0x80 /* Application Specific */
306 1.2.6.2 he #define FTF_ROM (FTF_SYS|FTF_TSR) /* Special Case */
307 1.2.6.2 he
308 1.2.6.2 he /* OEM - u_int8_t dsOEM; DISTINCT VALUES */
309 1.2.6.2 he /* ------------------------------------------------------------------ */
310 1.2.6.2 he #define OEM_DPT 0 /* DPT */
311 1.2.6.2 he #define OEM_ATT 1 /* ATT */
312 1.2.6.2 he #define OEM_NEC 2 /* NEC */
313 1.2.6.2 he #define OEM_ALPHA 3 /* Alphatronix */
314 1.2.6.2 he #define OEM_AST 4 /* AST */
315 1.2.6.2 he #define OEM_OLIVETTI 5 /* Olivetti */
316 1.2.6.2 he #define OEM_SNI 6 /* Siemens/Nixdorf */
317 1.2.6.2 he #define OEM_SUN 7 /* SUN Microsystems */
318 1.2.6.2 he #define OEM_ADAPTEC 8 /* Adaptec */
319 1.2.6.2 he
320 1.2.6.2 he /* Operating System - u_int32_t dsOS; FLAG BITS */
321 1.2.6.2 he /* ------------------------------------------------------------------ */
322 1.2.6.2 he #define OS_DOS 0x00000001 /* PC/MS-DOS */
323 1.2.6.2 he #define OS_WINDOWS 0x00000002 /* Microsoft Windows 3.x */
324 1.2.6.2 he #define OS_WINDOWS_NT 0x00000004 /* Microsoft Windows NT */
325 1.2.6.2 he #define OS_OS2M 0x00000008 /* OS/2 1.2.x,MS 1.3.0,IBM 1.3.x - Monolithic */
326 1.2.6.2 he #define OS_OS2L 0x00000010 /* Microsoft OS/2 1.301 - LADDR */
327 1.2.6.2 he #define OS_OS22x 0x00000020 /* IBM OS/2 2.x */
328 1.2.6.2 he #define OS_NW286 0x00000040 /* Novell NetWare 286 */
329 1.2.6.2 he #define OS_NW386 0x00000080 /* Novell NetWare 386 */
330 1.2.6.2 he #define OS_GEN_UNIX 0x00000100 /* Generic Unix */
331 1.2.6.2 he #define OS_SCO_UNIX 0x00000200 /* SCO Unix */
332 1.2.6.2 he #define OS_ATT_UNIX 0x00000400 /* ATT Unix */
333 1.2.6.2 he #define OS_UNIXWARE 0x00000800 /* USL Unix */
334 1.2.6.2 he #define OS_INT_UNIX 0x00001000 /* Interactive Unix */
335 1.2.6.2 he #define OS_SOLARIS 0x00002000 /* SunSoft Solaris */
336 1.2.6.2 he #define OS_QNX 0x00004000 /* QNX for Tom Moch */
337 1.2.6.2 he #define OS_NEXTSTEP 0x00008000 /* NeXTSTEP/OPENSTEP/MACH */
338 1.2.6.2 he #define OS_BANYAN 0x00010000 /* Banyan Vines */
339 1.2.6.2 he #define OS_OLIVETTI_UNIX 0x00020000/* Olivetti Unix */
340 1.2.6.2 he #define OS_MAC_OS 0x00040000 /* Mac OS */
341 1.2.6.2 he #define OS_WINDOWS_95 0x00080000 /* Microsoft Windows '95 */
342 1.2.6.2 he #define OS_NW4x 0x00100000 /* Novell Netware 4.x */
343 1.2.6.2 he #define OS_BSDI_UNIX 0x00200000 /* BSDi Unix BSD/OS 2.0 and up */
344 1.2.6.2 he #define OS_AIX_UNIX 0x00400000 /* AIX Unix */
345 1.2.6.2 he #define OS_FREE_BSD 0x00800000 /* FreeBSD Unix */
346 1.2.6.2 he #define OS_LINUX 0x01000000 /* Linux */
347 1.2.6.2 he #define OS_DGUX_UNIX 0x02000000 /* Data General Unix */
348 1.2.6.2 he #define OS_SINIX_N 0x04000000 /* SNI SINIX-N */
349 1.2.6.2 he #define OS_PLAN9 0x08000000 /* ATT Plan 9 */
350 1.2.6.2 he #define OS_TSX 0x10000000 /* SNH TSX-32 */
351 1.2.6.2 he #define OS_WINDOWS_98 0x20000000 /* Microsoft Windows '98 */
352 1.2.6.2 he
353 1.2.6.2 he #define OS_OTHER 0x80000000 /* Other */
354 1.2.6.2 he
355 1.2.6.2 he /* Capabilities - u_int16_t dsCapabilities; FLAG BITS */
356 1.2.6.2 he /* ------------------------------------------------------------------ */
357 1.2.6.2 he #define CAP_RAID0 0x0001 /* RAID-0 */
358 1.2.6.2 he #define CAP_RAID1 0x0002 /* RAID-1 */
359 1.2.6.2 he #define CAP_RAID3 0x0004 /* RAID-3 */
360 1.2.6.2 he #define CAP_RAID5 0x0008 /* RAID-5 */
361 1.2.6.2 he #define CAP_SPAN 0x0010 /* Spanning */
362 1.2.6.2 he #define CAP_PASS 0x0020 /* Provides passthrough */
363 1.2.6.2 he #define CAP_OVERLAP 0x0040 /* Passthrough supports overlapped commands */
364 1.2.6.2 he #define CAP_ASPI 0x0080 /* Supports ASPI Command Requests */
365 1.2.6.2 he #define CAP_ABOVE16MB 0x0100 /* ISA Driver supports greater than 16MB */
366 1.2.6.2 he #define CAP_EXTEND 0x8000 /* Extended info appears after description */
367 1.2.6.2 he #ifdef SNI_MIPS
368 1.2.6.2 he #define CAP_CACHEMODE 0x1000 /* dpt_force_cache is set in driver */
369 1.2.6.2 he #endif
370 1.2.6.2 he
371 1.2.6.2 he /* Devices Supported - u_int16_t dsDeviceSupp; FLAG BITS */
372 1.2.6.2 he /* ------------------------------------------------------------------ */
373 1.2.6.2 he #define DEV_DASD 0x0001 /* DASD (hard drives) */
374 1.2.6.2 he #define DEV_TAPE 0x0002 /* Tape drives */
375 1.2.6.2 he #define DEV_PRINTER 0x0004 /* Printers */
376 1.2.6.2 he #define DEV_PROC 0x0008 /* Processors */
377 1.2.6.2 he #define DEV_WORM 0x0010 /* WORM drives */
378 1.2.6.2 he #define DEV_CDROM 0x0020 /* CD-ROM drives */
379 1.2.6.2 he #define DEV_SCANNER 0x0040 /* Scanners */
380 1.2.6.2 he #define DEV_OPTICAL 0x0080 /* Optical Drives */
381 1.2.6.2 he #define DEV_JUKEBOX 0x0100 /* Jukebox */
382 1.2.6.2 he #define DEV_COMM 0x0200 /* Communications Devices */
383 1.2.6.2 he #define DEV_OTHER 0x0400 /* Other Devices */
384 1.2.6.2 he #define DEV_ALL 0xFFFF /* All SCSI Devices */
385 1.2.6.2 he
386 1.2.6.2 he /* Adapters Families Supported - u_int16_t dsAdapterSupp; FLAG BITS */
387 1.2.6.2 he /* ------------------------------------------------------------------ */
388 1.2.6.2 he #define ADF_2001 0x0001 /* PM2001 */
389 1.2.6.2 he #define ADF_2012A 0x0002 /* PM2012A */
390 1.2.6.2 he #define ADF_PLUS_ISA 0x0004 /* PM2011,PM2021 */
391 1.2.6.2 he #define ADF_PLUS_EISA 0x0008 /* PM2012B,PM2022 */
392 1.2.6.2 he #define ADF_SC3_ISA 0x0010 /* PM2021 */
393 1.2.6.2 he #define ADF_SC3_EISA 0x0020 /* PM2022,PM2122, etc */
394 1.2.6.2 he #define ADF_SC3_PCI 0x0040 /* SmartCache III PCI */
395 1.2.6.2 he #define ADF_SC4_ISA 0x0080 /* SmartCache IV ISA */
396 1.2.6.2 he #define ADF_SC4_EISA 0x0100 /* SmartCache IV EISA */
397 1.2.6.2 he #define ADF_SC4_PCI 0x0200 /* SmartCache IV PCI */
398 1.2.6.2 he #define ADF_SC5_PCI 0x0400 /* Fifth Generation I2O products */
399 1.2.6.2 he /*
400 1.2.6.2 he * Combinations of products
401 1.2.6.2 he */
402 1.2.6.2 he #define ADF_ALL_2000 (ADF_2001|ADF_2012A)
403 1.2.6.2 he #define ADF_ALL_PLUS (ADF_PLUS_ISA|ADF_PLUS_EISA)
404 1.2.6.2 he #define ADF_ALL_SC3 (ADF_SC3_ISA|ADF_SC3_EISA|ADF_SC3_PCI)
405 1.2.6.2 he #define ADF_ALL_SC4 (ADF_SC4_ISA|ADF_SC4_EISA|ADF_SC4_PCI)
406 1.2.6.2 he #define ADF_ALL_SC5 (ADF_SC5_PCI)
407 1.2.6.2 he /* All EATA Cacheing Products */
408 1.2.6.2 he #define ADF_ALL_CACHE (ADF_ALL_PLUS|ADF_ALL_SC3|ADF_ALL_SC4)
409 1.2.6.2 he /* All EATA Bus Mastering Products */
410 1.2.6.2 he #define ADF_ALL_MASTER (ADF_2012A|ADF_ALL_CACHE)
411 1.2.6.2 he /* All EATA Adapter Products */
412 1.2.6.2 he #define ADF_ALL_EATA (ADF_2001|ADF_ALL_MASTER)
413 1.2.6.2 he #define ADF_ALL ADF_ALL_EATA
414 1.2.6.2 he
415 1.2.6.2 he /* Application - u_int16_t dsApplication; FLAG BITS */
416 1.2.6.2 he /* ------------------------------------------------------------------ */
417 1.2.6.2 he #define APP_DPTMGR 0x0001 /* DPT Storage Manager */
418 1.2.6.2 he #define APP_ENGINE 0x0002 /* DPT Engine */
419 1.2.6.2 he #define APP_SYTOS 0x0004 /* Sytron Sytos Plus */
420 1.2.6.2 he #define APP_CHEYENNE 0x0008 /* Cheyenne ARCServe + ARCSolo */
421 1.2.6.2 he #define APP_MSCDEX 0x0010 /* Microsoft CD-ROM extensions */
422 1.2.6.2 he #define APP_NOVABACK 0x0020 /* NovaStor Novaback */
423 1.2.6.2 he #define APP_AIM 0x0040 /* Archive Information Manager */
424 1.2.6.2 he
425 1.2.6.2 he /* Requirements - u_int8_t dsRequirements; FLAG BITS */
426 1.2.6.2 he /* ------------------------------------------------------------------ */
427 1.2.6.2 he #define REQ_SMARTROM 0x01 /* Requires SmartROM to be present */
428 1.2.6.2 he #define REQ_DPTDDL 0x02 /* Requires DPTDDL.SYS to be loaded */
429 1.2.6.2 he #define REQ_HBA_DRIVER 0x04 /* Requires an HBA driver to be loaded */
430 1.2.6.2 he #define REQ_ASPI_TRAN 0x08 /* Requires an ASPI Transport Modules */
431 1.2.6.2 he #define REQ_ENGINE 0x10 /* Requires a DPT Engine to be loaded */
432 1.2.6.2 he #define REQ_COMM_ENG 0x20 /* Requires a DPT Communications Engine */
433 1.2.6.2 he
434 1.2.6.2 he /* ------------------------------------------------------------------ */
435 1.2.6.2 he /* Requirements - u_int16_t dsFirmware; FLAG BITS */
436 1.2.6.2 he /* ------------------------------------------------------------------ */
437 1.2.6.2 he #define dsFirmware dsApplication
438 1.2.6.2 he #define FW_DNLDSIZE0 0x0000 /* 0..2 DownLoader Size - NONE */
439 1.2.6.2 he #define FW_DNLDSIZE16 0x0001 /* 0..2 DownLoader Size 16K */
440 1.2.6.2 he #define FW_DNLDSIZE32 0x0002 /* 0..2 DownLoader Size 32K */
441 1.2.6.2 he #define FW_DNLDSIZE64 0x0004 /* 0..2 DownLoader Size 64K */
442 1.2.6.2 he
443 1.2.6.2 he #define FW_LOAD_BTM 0x2000 /* 13 Load Offset (1=Btm, 0=Top) */
444 1.2.6.2 he #define FW_LOAD_TOP 0x0000 /* 13 Load Offset (1=Btm, 0=Top) */
445 1.2.6.2 he #define FW_SIG_VERSION1 0x0000 /* 15..14 Version Bits 0=Ver1 */
446 1.2.6.2 he
447 1.2.6.2 he #endif /* !_I2O_DPTIVAR_H_ */
448