18c2ecf20Sopenharmony_ci/*	BSDI dptsig.h,v 1.7 1998/06/03 19:15:00 karels Exp	*/
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ci/*
48c2ecf20Sopenharmony_ci * Copyright (c) 1996-1999 Distributed Processing Technology Corporation
58c2ecf20Sopenharmony_ci * All rights reserved.
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Redistribution and use in source form, with or without modification, are
88c2ecf20Sopenharmony_ci * permitted provided that redistributions of source code must retain the
98c2ecf20Sopenharmony_ci * above copyright notice, this list of conditions and the following disclaimer.
108c2ecf20Sopenharmony_ci *
118c2ecf20Sopenharmony_ci * This software is provided `as is' by Distributed Processing Technology and
128c2ecf20Sopenharmony_ci * any express or implied warranties, including, but not limited to, the
138c2ecf20Sopenharmony_ci * implied warranties of merchantability and fitness for a particular purpose,
148c2ecf20Sopenharmony_ci * are disclaimed. In no event shall Distributed Processing Technology be
158c2ecf20Sopenharmony_ci * liable for any direct, indirect, incidental, special, exemplary or
168c2ecf20Sopenharmony_ci * consequential damages (including, but not limited to, procurement of
178c2ecf20Sopenharmony_ci * substitute goods or services; loss of use, data, or profits; or business
188c2ecf20Sopenharmony_ci * interruptions) however caused and on any theory of liability, whether in
198c2ecf20Sopenharmony_ci * contract, strict liability, or tort (including negligence or otherwise)
208c2ecf20Sopenharmony_ci * arising in any way out of the use of this driver software, even if advised
218c2ecf20Sopenharmony_ci * of the possibility of such damage.
228c2ecf20Sopenharmony_ci *
238c2ecf20Sopenharmony_ci */
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#ifndef __DPTSIG_H_
268c2ecf20Sopenharmony_ci#define __DPTSIG_H_
278c2ecf20Sopenharmony_ci#ifdef _SINIX_ADDON
288c2ecf20Sopenharmony_ci#include "dpt.h"
298c2ecf20Sopenharmony_ci#endif
308c2ecf20Sopenharmony_ci/* DPT SIGNATURE SPEC AND HEADER FILE                           */
318c2ecf20Sopenharmony_ci/* Signature Version 1 (sorry no 'A')                           */
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci/* to make sure we are talking the same size under all OS's     */
348c2ecf20Sopenharmony_citypedef unsigned char sigBYTE;
358c2ecf20Sopenharmony_citypedef unsigned short sigWORD;
368c2ecf20Sopenharmony_citypedef unsigned int sigINT;
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci/*
398c2ecf20Sopenharmony_ci * use sigWORDLittleEndian for:
408c2ecf20Sopenharmony_ci *  dsCapabilities
418c2ecf20Sopenharmony_ci *  dsDeviceSupp
428c2ecf20Sopenharmony_ci *  dsAdapterSupp
438c2ecf20Sopenharmony_ci *  dsApplication
448c2ecf20Sopenharmony_ci * use sigLONGLittleEndian for:
458c2ecf20Sopenharmony_ci *      dsOS
468c2ecf20Sopenharmony_ci * so that the sig can be standardised to Little Endian
478c2ecf20Sopenharmony_ci */
488c2ecf20Sopenharmony_ci#if (defined(_DPT_BIG_ENDIAN))
498c2ecf20Sopenharmony_ci# define sigWORDLittleEndian(x) ((((x)&0xFF)<<8)|(((x)>>8)&0xFF))
508c2ecf20Sopenharmony_ci# define sigLONGLittleEndian(x) \
518c2ecf20Sopenharmony_ci        ((((x)&0xFF)<<24) |             \
528c2ecf20Sopenharmony_ci         (((x)&0xFF00)<<8) |    \
538c2ecf20Sopenharmony_ci         (((x)&0xFF0000L)>>8) | \
548c2ecf20Sopenharmony_ci         (((x)&0xFF000000L)>>24))
558c2ecf20Sopenharmony_ci#else
568c2ecf20Sopenharmony_ci# define sigWORDLittleEndian(x) (x)
578c2ecf20Sopenharmony_ci# define sigLONGLittleEndian(x) (x)
588c2ecf20Sopenharmony_ci#endif
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ci/* must make sure the structure is not word or double-word aligned      */
618c2ecf20Sopenharmony_ci/* ---------------------------------------------------------------      */
628c2ecf20Sopenharmony_ci/* Borland will ignore the following pragma:                            */
638c2ecf20Sopenharmony_ci/* Word alignment is OFF by default.  If in the, IDE make               */
648c2ecf20Sopenharmony_ci/* sure that Options | Compiler | Code Generation | Word Alignment      */
658c2ecf20Sopenharmony_ci/* is not checked.  If using BCC, do not use the -a option.             */
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ci#ifndef NO_PACK
688c2ecf20Sopenharmony_ci#if defined (_DPT_AIX)
698c2ecf20Sopenharmony_ci#pragma options align=packed
708c2ecf20Sopenharmony_ci#else
718c2ecf20Sopenharmony_ci#pragma pack(1)
728c2ecf20Sopenharmony_ci#endif  /* aix */
738c2ecf20Sopenharmony_ci#endif
748c2ecf20Sopenharmony_ci/* For the Macintosh */
758c2ecf20Sopenharmony_ci#ifdef STRUCTALIGNMENTSUPPORTED
768c2ecf20Sopenharmony_ci#pragma options align=mac68k
778c2ecf20Sopenharmony_ci#endif
788c2ecf20Sopenharmony_ci
798c2ecf20Sopenharmony_ci
808c2ecf20Sopenharmony_ci/* Current Signature Version - sigBYTE dsSigVersion; */
818c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------ */
828c2ecf20Sopenharmony_ci#define SIG_VERSION 1
838c2ecf20Sopenharmony_ci
848c2ecf20Sopenharmony_ci/* Processor Family - sigBYTE dsProcessorFamily;  DISTINCT VALUES */
858c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------ */
868c2ecf20Sopenharmony_ci/* What type of processor the file is meant to run on. */
878c2ecf20Sopenharmony_ci/* This will let us know whether to read sigWORDs as high/low or low/high. */
888c2ecf20Sopenharmony_ci#define PROC_INTEL      0x00    /* Intel 80x86/ia64 */
898c2ecf20Sopenharmony_ci#define PROC_MOTOROLA   0x01    /* Motorola 68K */
908c2ecf20Sopenharmony_ci#define PROC_MIPS4000   0x02    /* MIPS RISC 4000 */
918c2ecf20Sopenharmony_ci#define PROC_ALPHA      0x03    /* DEC Alpha */
928c2ecf20Sopenharmony_ci#define PROC_POWERPC    0x04    /* IBM Power PC */
938c2ecf20Sopenharmony_ci#define PROC_i960       0x05    /* Intel i960 */
948c2ecf20Sopenharmony_ci#define PROC_ULTRASPARC 0x06    /* SPARC processor */
958c2ecf20Sopenharmony_ci
968c2ecf20Sopenharmony_ci/* Specific Minimim Processor - sigBYTE dsProcessor;    FLAG BITS */
978c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------ */
988c2ecf20Sopenharmony_ci/* Different bit definitions dependent on processor_family */
998c2ecf20Sopenharmony_ci
1008c2ecf20Sopenharmony_ci/* PROC_INTEL: */
1018c2ecf20Sopenharmony_ci#define PROC_8086       0x01    /* Intel 8086 */
1028c2ecf20Sopenharmony_ci#define PROC_286        0x02    /* Intel 80286 */
1038c2ecf20Sopenharmony_ci#define PROC_386        0x04    /* Intel 80386 */
1048c2ecf20Sopenharmony_ci#define PROC_486        0x08    /* Intel 80486 */
1058c2ecf20Sopenharmony_ci#define PROC_PENTIUM    0x10    /* Intel 586 aka P5 aka Pentium */
1068c2ecf20Sopenharmony_ci#define PROC_SEXIUM	0x20	/* Intel 686 aka P6 aka Pentium Pro or MMX */
1078c2ecf20Sopenharmony_ci#define PROC_IA64	0x40	/* Intel IA64 processor */
1088c2ecf20Sopenharmony_ci
1098c2ecf20Sopenharmony_ci/* PROC_i960: */
1108c2ecf20Sopenharmony_ci#define PROC_960RX      0x01    /* Intel 80960RC/RD */
1118c2ecf20Sopenharmony_ci#define PROC_960HX      0x02    /* Intel 80960HA/HD/HT */
1128c2ecf20Sopenharmony_ci
1138c2ecf20Sopenharmony_ci/* PROC_MOTOROLA: */
1148c2ecf20Sopenharmony_ci#define PROC_68000      0x01    /* Motorola 68000 */
1158c2ecf20Sopenharmony_ci#define PROC_68010	0x02	/* Motorola 68010 */
1168c2ecf20Sopenharmony_ci#define PROC_68020      0x04    /* Motorola 68020 */
1178c2ecf20Sopenharmony_ci#define PROC_68030      0x08    /* Motorola 68030 */
1188c2ecf20Sopenharmony_ci#define PROC_68040      0x10    /* Motorola 68040 */
1198c2ecf20Sopenharmony_ci
1208c2ecf20Sopenharmony_ci/* PROC_POWERPC */
1218c2ecf20Sopenharmony_ci#define PROC_PPC601		0x01	/* PowerPC 601 */
1228c2ecf20Sopenharmony_ci#define PROC_PPC603		0x02	/* PowerPC 603 */
1238c2ecf20Sopenharmony_ci#define PROC_PPC604		0x04	/* PowerPC 604 */
1248c2ecf20Sopenharmony_ci
1258c2ecf20Sopenharmony_ci/* PROC_MIPS4000: */
1268c2ecf20Sopenharmony_ci#define PROC_R4000      0x01    /* MIPS R4000 */
1278c2ecf20Sopenharmony_ci
1288c2ecf20Sopenharmony_ci/* Filetype - sigBYTE dsFiletype;       DISTINCT VALUES */
1298c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------ */
1308c2ecf20Sopenharmony_ci#define FT_EXECUTABLE   0       /* Executable Program */
1318c2ecf20Sopenharmony_ci#define FT_SCRIPT       1       /* Script/Batch File??? */
1328c2ecf20Sopenharmony_ci#define FT_HBADRVR      2       /* HBA Driver */
1338c2ecf20Sopenharmony_ci#define FT_OTHERDRVR    3       /* Other Driver */
1348c2ecf20Sopenharmony_ci#define FT_IFS          4       /* Installable Filesystem Driver */
1358c2ecf20Sopenharmony_ci#define FT_ENGINE       5       /* DPT Engine */
1368c2ecf20Sopenharmony_ci#define FT_COMPDRVR     6       /* Compressed Driver Disk */
1378c2ecf20Sopenharmony_ci#define FT_LANGUAGE     7       /* Foreign Language file */
1388c2ecf20Sopenharmony_ci#define FT_FIRMWARE     8       /* Downloadable or actual Firmware */
1398c2ecf20Sopenharmony_ci#define FT_COMMMODL     9       /* Communications Module */
1408c2ecf20Sopenharmony_ci#define FT_INT13        10      /* INT 13 style HBA Driver */
1418c2ecf20Sopenharmony_ci#define FT_HELPFILE     11      /* Help file */
1428c2ecf20Sopenharmony_ci#define FT_LOGGER       12      /* Event Logger */
1438c2ecf20Sopenharmony_ci#define FT_INSTALL      13      /* An Install Program */
1448c2ecf20Sopenharmony_ci#define FT_LIBRARY      14      /* Storage Manager Real-Mode Calls */
1458c2ecf20Sopenharmony_ci#define FT_RESOURCE	15	/* Storage Manager Resource File */
1468c2ecf20Sopenharmony_ci#define FT_MODEM_DB	16	/* Storage Manager Modem Database */
1478c2ecf20Sopenharmony_ci
1488c2ecf20Sopenharmony_ci/* Filetype flags - sigBYTE dsFiletypeFlags;    FLAG BITS */
1498c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------ */
1508c2ecf20Sopenharmony_ci#define FTF_DLL         0x01    /* Dynamic Link Library */
1518c2ecf20Sopenharmony_ci#define FTF_NLM         0x02    /* Netware Loadable Module */
1528c2ecf20Sopenharmony_ci#define FTF_OVERLAYS    0x04    /* Uses overlays */
1538c2ecf20Sopenharmony_ci#define FTF_DEBUG       0x08    /* Debug version */
1548c2ecf20Sopenharmony_ci#define FTF_TSR         0x10    /* TSR */
1558c2ecf20Sopenharmony_ci#define FTF_SYS         0x20    /* DOS Loadable driver */
1568c2ecf20Sopenharmony_ci#define FTF_PROTECTED   0x40    /* Runs in protected mode */
1578c2ecf20Sopenharmony_ci#define FTF_APP_SPEC    0x80    /* Application Specific */
1588c2ecf20Sopenharmony_ci#define FTF_ROM		(FTF_SYS|FTF_TSR)	/* Special Case */
1598c2ecf20Sopenharmony_ci
1608c2ecf20Sopenharmony_ci/* OEM - sigBYTE dsOEM;         DISTINCT VALUES */
1618c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------ */
1628c2ecf20Sopenharmony_ci#define OEM_DPT         0       /* DPT */
1638c2ecf20Sopenharmony_ci#define OEM_ATT         1       /* ATT */
1648c2ecf20Sopenharmony_ci#define OEM_NEC         2       /* NEC */
1658c2ecf20Sopenharmony_ci#define OEM_ALPHA       3       /* Alphatronix */
1668c2ecf20Sopenharmony_ci#define OEM_AST         4       /* AST */
1678c2ecf20Sopenharmony_ci#define OEM_OLIVETTI    5       /* Olivetti */
1688c2ecf20Sopenharmony_ci#define OEM_SNI         6       /* Siemens/Nixdorf */
1698c2ecf20Sopenharmony_ci#define OEM_SUN         7       /* SUN Microsystems */
1708c2ecf20Sopenharmony_ci
1718c2ecf20Sopenharmony_ci/* Operating System  - sigLONG dsOS;    FLAG BITS */
1728c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------ */
1738c2ecf20Sopenharmony_ci#define OS_DOS          0x00000001 /* PC/MS-DOS				*/
1748c2ecf20Sopenharmony_ci#define OS_WINDOWS      0x00000002 /* Microsoft Windows 3.x		*/
1758c2ecf20Sopenharmony_ci#define OS_WINDOWS_NT   0x00000004 /* Microsoft Windows NT		*/
1768c2ecf20Sopenharmony_ci#define OS_OS2M         0x00000008 /* OS/2 1.2.x,MS 1.3.0,IBM 1.3.x - Monolithic */
1778c2ecf20Sopenharmony_ci#define OS_OS2L         0x00000010 /* Microsoft OS/2 1.301 - LADDR	*/
1788c2ecf20Sopenharmony_ci#define OS_OS22x        0x00000020 /* IBM OS/2 2.x			*/
1798c2ecf20Sopenharmony_ci#define OS_NW286        0x00000040 /* Novell NetWare 286		*/
1808c2ecf20Sopenharmony_ci#define OS_NW386        0x00000080 /* Novell NetWare 386		*/
1818c2ecf20Sopenharmony_ci#define OS_GEN_UNIX     0x00000100 /* Generic Unix			*/
1828c2ecf20Sopenharmony_ci#define OS_SCO_UNIX     0x00000200 /* SCO Unix				*/
1838c2ecf20Sopenharmony_ci#define OS_ATT_UNIX     0x00000400 /* ATT Unix				*/
1848c2ecf20Sopenharmony_ci#define OS_UNIXWARE     0x00000800 /* USL Unix				*/
1858c2ecf20Sopenharmony_ci#define OS_INT_UNIX     0x00001000 /* Interactive Unix			*/
1868c2ecf20Sopenharmony_ci#define OS_SOLARIS      0x00002000 /* SunSoft Solaris			*/
1878c2ecf20Sopenharmony_ci#define OS_QNX          0x00004000 /* QNX for Tom Moch			*/
1888c2ecf20Sopenharmony_ci#define OS_NEXTSTEP     0x00008000 /* NeXTSTEP/OPENSTEP/MACH		*/
1898c2ecf20Sopenharmony_ci#define OS_BANYAN       0x00010000 /* Banyan Vines			*/
1908c2ecf20Sopenharmony_ci#define OS_OLIVETTI_UNIX 0x00020000/* Olivetti Unix			*/
1918c2ecf20Sopenharmony_ci#define OS_MAC_OS	0x00040000 /* Mac OS				*/
1928c2ecf20Sopenharmony_ci#define OS_WINDOWS_95	0x00080000 /* Microsoft Windows '95		*/
1938c2ecf20Sopenharmony_ci#define OS_NW4x		0x00100000 /* Novell Netware 4.x		*/
1948c2ecf20Sopenharmony_ci#define OS_BSDI_UNIX	0x00200000 /* BSDi Unix BSD/OS 2.0 and up	*/
1958c2ecf20Sopenharmony_ci#define OS_AIX_UNIX     0x00400000 /* AIX Unix				*/
1968c2ecf20Sopenharmony_ci#define OS_FREE_BSD	0x00800000 /* FreeBSD Unix			*/
1978c2ecf20Sopenharmony_ci#define OS_LINUX	0x01000000 /* Linux				*/
1988c2ecf20Sopenharmony_ci#define OS_DGUX_UNIX	0x02000000 /* Data General Unix			*/
1998c2ecf20Sopenharmony_ci#define OS_SINIX_N      0x04000000 /* SNI SINIX-N			*/
2008c2ecf20Sopenharmony_ci#define OS_PLAN9	0x08000000 /* ATT Plan 9			*/
2018c2ecf20Sopenharmony_ci#define OS_TSX		0x10000000 /* SNH TSX-32			*/
2028c2ecf20Sopenharmony_ci
2038c2ecf20Sopenharmony_ci#define OS_OTHER        0x80000000 /* Other				*/
2048c2ecf20Sopenharmony_ci
2058c2ecf20Sopenharmony_ci/* Capabilities - sigWORD dsCapabilities;        FLAG BITS */
2068c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------ */
2078c2ecf20Sopenharmony_ci#define CAP_RAID0       0x0001  /* RAID-0 */
2088c2ecf20Sopenharmony_ci#define CAP_RAID1       0x0002  /* RAID-1 */
2098c2ecf20Sopenharmony_ci#define CAP_RAID3       0x0004  /* RAID-3 */
2108c2ecf20Sopenharmony_ci#define CAP_RAID5       0x0008  /* RAID-5 */
2118c2ecf20Sopenharmony_ci#define CAP_SPAN        0x0010  /* Spanning */
2128c2ecf20Sopenharmony_ci#define CAP_PASS        0x0020  /* Provides passthrough */
2138c2ecf20Sopenharmony_ci#define CAP_OVERLAP     0x0040  /* Passthrough supports overlapped commands */
2148c2ecf20Sopenharmony_ci#define CAP_ASPI        0x0080  /* Supports ASPI Command Requests */
2158c2ecf20Sopenharmony_ci#define CAP_ABOVE16MB   0x0100  /* ISA Driver supports greater than 16MB */
2168c2ecf20Sopenharmony_ci#define CAP_EXTEND      0x8000  /* Extended info appears after description */
2178c2ecf20Sopenharmony_ci#ifdef SNI_MIPS
2188c2ecf20Sopenharmony_ci#define CAP_CACHEMODE   0x1000  /* dpt_force_cache is set in driver */
2198c2ecf20Sopenharmony_ci#endif
2208c2ecf20Sopenharmony_ci
2218c2ecf20Sopenharmony_ci/* Devices Supported - sigWORD dsDeviceSupp;    FLAG BITS */
2228c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------ */
2238c2ecf20Sopenharmony_ci#define DEV_DASD        0x0001  /* DASD (hard drives) */
2248c2ecf20Sopenharmony_ci#define DEV_TAPE        0x0002  /* Tape drives */
2258c2ecf20Sopenharmony_ci#define DEV_PRINTER     0x0004  /* Printers */
2268c2ecf20Sopenharmony_ci#define DEV_PROC        0x0008  /* Processors */
2278c2ecf20Sopenharmony_ci#define DEV_WORM        0x0010  /* WORM drives */
2288c2ecf20Sopenharmony_ci#define DEV_CDROM       0x0020  /* CD-ROM drives */
2298c2ecf20Sopenharmony_ci#define DEV_SCANNER     0x0040  /* Scanners */
2308c2ecf20Sopenharmony_ci#define DEV_OPTICAL     0x0080  /* Optical Drives */
2318c2ecf20Sopenharmony_ci#define DEV_JUKEBOX     0x0100  /* Jukebox */
2328c2ecf20Sopenharmony_ci#define DEV_COMM        0x0200  /* Communications Devices */
2338c2ecf20Sopenharmony_ci#define DEV_OTHER       0x0400  /* Other Devices */
2348c2ecf20Sopenharmony_ci#define DEV_ALL         0xFFFF  /* All SCSI Devices */
2358c2ecf20Sopenharmony_ci
2368c2ecf20Sopenharmony_ci/* Adapters Families Supported - sigWORD dsAdapterSupp; FLAG BITS */
2378c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------ */
2388c2ecf20Sopenharmony_ci#define ADF_2001        0x0001  /* PM2001           */
2398c2ecf20Sopenharmony_ci#define ADF_2012A       0x0002  /* PM2012A          */
2408c2ecf20Sopenharmony_ci#define ADF_PLUS_ISA    0x0004  /* PM2011,PM2021    */
2418c2ecf20Sopenharmony_ci#define ADF_PLUS_EISA   0x0008  /* PM2012B,PM2022   */
2428c2ecf20Sopenharmony_ci#define ADF_SC3_ISA	0x0010  /* PM2021           */
2438c2ecf20Sopenharmony_ci#define ADF_SC3_EISA	0x0020  /* PM2022,PM2122, etc */
2448c2ecf20Sopenharmony_ci#define ADF_SC3_PCI	0x0040  /* SmartCache III PCI */
2458c2ecf20Sopenharmony_ci#define ADF_SC4_ISA	0x0080  /* SmartCache IV ISA */
2468c2ecf20Sopenharmony_ci#define ADF_SC4_EISA	0x0100  /* SmartCache IV EISA */
2478c2ecf20Sopenharmony_ci#define ADF_SC4_PCI	0x0200	/* SmartCache IV PCI */
2488c2ecf20Sopenharmony_ci#define ADF_SC5_PCI	0x0400	/* Fifth Generation I2O products */
2498c2ecf20Sopenharmony_ci/*
2508c2ecf20Sopenharmony_ci *	Combinations of products
2518c2ecf20Sopenharmony_ci */
2528c2ecf20Sopenharmony_ci#define ADF_ALL_2000	(ADF_2001|ADF_2012A)
2538c2ecf20Sopenharmony_ci#define ADF_ALL_PLUS	(ADF_PLUS_ISA|ADF_PLUS_EISA)
2548c2ecf20Sopenharmony_ci#define ADF_ALL_SC3	(ADF_SC3_ISA|ADF_SC3_EISA|ADF_SC3_PCI)
2558c2ecf20Sopenharmony_ci#define ADF_ALL_SC4	(ADF_SC4_ISA|ADF_SC4_EISA|ADF_SC4_PCI)
2568c2ecf20Sopenharmony_ci#define ADF_ALL_SC5	(ADF_SC5_PCI)
2578c2ecf20Sopenharmony_ci/* All EATA Cacheing Products */
2588c2ecf20Sopenharmony_ci#define ADF_ALL_CACHE	(ADF_ALL_PLUS|ADF_ALL_SC3|ADF_ALL_SC4)
2598c2ecf20Sopenharmony_ci/* All EATA Bus Mastering Products */
2608c2ecf20Sopenharmony_ci#define ADF_ALL_MASTER	(ADF_2012A|ADF_ALL_CACHE)
2618c2ecf20Sopenharmony_ci/* All EATA Adapter Products */
2628c2ecf20Sopenharmony_ci#define ADF_ALL_EATA	(ADF_2001|ADF_ALL_MASTER)
2638c2ecf20Sopenharmony_ci#define ADF_ALL		ADF_ALL_EATA
2648c2ecf20Sopenharmony_ci
2658c2ecf20Sopenharmony_ci/* Application - sigWORD dsApplication;         FLAG BITS */
2668c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------ */
2678c2ecf20Sopenharmony_ci#define APP_DPTMGR      0x0001  /* DPT Storage Manager */
2688c2ecf20Sopenharmony_ci#define APP_ENGINE      0x0002  /* DPT Engine */
2698c2ecf20Sopenharmony_ci#define APP_SYTOS       0x0004  /* Sytron Sytos Plus */
2708c2ecf20Sopenharmony_ci#define APP_CHEYENNE    0x0008  /* Cheyenne ARCServe + ARCSolo */
2718c2ecf20Sopenharmony_ci#define APP_MSCDEX      0x0010  /* Microsoft CD-ROM extensions */
2728c2ecf20Sopenharmony_ci#define APP_NOVABACK    0x0020  /* NovaStor Novaback */
2738c2ecf20Sopenharmony_ci#define APP_AIM         0x0040  /* Archive Information Manager */
2748c2ecf20Sopenharmony_ci
2758c2ecf20Sopenharmony_ci/* Requirements - sigBYTE dsRequirements;         FLAG BITS             */
2768c2ecf20Sopenharmony_ci/* ------------------------------------------------------------------   */
2778c2ecf20Sopenharmony_ci#define REQ_SMARTROM    0x01    /* Requires SmartROM to be present      */
2788c2ecf20Sopenharmony_ci#define REQ_DPTDDL      0x02    /* Requires DPTDDL.SYS to be loaded     */
2798c2ecf20Sopenharmony_ci#define REQ_HBA_DRIVER  0x04    /* Requires an HBA driver to be loaded  */
2808c2ecf20Sopenharmony_ci#define REQ_ASPI_TRAN   0x08    /* Requires an ASPI Transport Modules   */
2818c2ecf20Sopenharmony_ci#define REQ_ENGINE      0x10    /* Requires a DPT Engine to be loaded   */
2828c2ecf20Sopenharmony_ci#define REQ_COMM_ENG    0x20    /* Requires a DPT Communications Engine */
2838c2ecf20Sopenharmony_ci
2848c2ecf20Sopenharmony_ci/*
2858c2ecf20Sopenharmony_ci * You may adjust dsDescription_size with an override to a value less than
2868c2ecf20Sopenharmony_ci * 50 so that the structure allocates less real space.
2878c2ecf20Sopenharmony_ci */
2888c2ecf20Sopenharmony_ci#if (!defined(dsDescription_size))
2898c2ecf20Sopenharmony_ci# define dsDescription_size 50
2908c2ecf20Sopenharmony_ci#endif
2918c2ecf20Sopenharmony_ci
2928c2ecf20Sopenharmony_citypedef struct dpt_sig {
2938c2ecf20Sopenharmony_ci    char    dsSignature[6];      /* ALWAYS "dPtSiG" */
2948c2ecf20Sopenharmony_ci    sigBYTE dsSigVersion;        /* signature version (currently 1) */
2958c2ecf20Sopenharmony_ci    sigBYTE dsProcessorFamily;   /* what type of processor */
2968c2ecf20Sopenharmony_ci    sigBYTE dsProcessor;         /* precise processor */
2978c2ecf20Sopenharmony_ci    sigBYTE dsFiletype;          /* type of file */
2988c2ecf20Sopenharmony_ci    sigBYTE dsFiletypeFlags;     /* flags to specify load type, etc. */
2998c2ecf20Sopenharmony_ci    sigBYTE dsOEM;               /* OEM file was created for */
3008c2ecf20Sopenharmony_ci    sigINT  dsOS;                /* which Operating systems */
3018c2ecf20Sopenharmony_ci    sigWORD dsCapabilities;      /* RAID levels, etc. */
3028c2ecf20Sopenharmony_ci    sigWORD dsDeviceSupp;        /* Types of SCSI devices supported */
3038c2ecf20Sopenharmony_ci    sigWORD dsAdapterSupp;       /* DPT adapter families supported */
3048c2ecf20Sopenharmony_ci    sigWORD dsApplication;       /* applications file is for */
3058c2ecf20Sopenharmony_ci    sigBYTE dsRequirements;      /* Other driver dependencies */
3068c2ecf20Sopenharmony_ci    sigBYTE dsVersion;           /* 1 */
3078c2ecf20Sopenharmony_ci    sigBYTE dsRevision;          /* 'J' */
3088c2ecf20Sopenharmony_ci    sigBYTE dsSubRevision;       /* '9'   ' ' if N/A */
3098c2ecf20Sopenharmony_ci    sigBYTE dsMonth;             /* creation month */
3108c2ecf20Sopenharmony_ci    sigBYTE dsDay;               /* creation day */
3118c2ecf20Sopenharmony_ci    sigBYTE dsYear;              /* creation year since 1980 (1993=13) */
3128c2ecf20Sopenharmony_ci    /* description (NULL terminated) */
3138c2ecf20Sopenharmony_ci    char  dsDescription[dsDescription_size];
3148c2ecf20Sopenharmony_ci} dpt_sig_S;
3158c2ecf20Sopenharmony_ci/* 32 bytes minimum - with no description.  Put NULL at description[0] */
3168c2ecf20Sopenharmony_ci/* 81 bytes maximum - with 49 character description plus NULL. */
3178c2ecf20Sopenharmony_ci
3188c2ecf20Sopenharmony_ci/* This line added at Roycroft's request */
3198c2ecf20Sopenharmony_ci/* Microsoft's NT compiler gets confused if you do a pack and don't */
3208c2ecf20Sopenharmony_ci/* restore it. */
3218c2ecf20Sopenharmony_ci
3228c2ecf20Sopenharmony_ci#ifndef NO_UNPACK
3238c2ecf20Sopenharmony_ci#if defined (_DPT_AIX)
3248c2ecf20Sopenharmony_ci#pragma options align=reset
3258c2ecf20Sopenharmony_ci#elif defined (UNPACK_FOUR)
3268c2ecf20Sopenharmony_ci#pragma pack(4)
3278c2ecf20Sopenharmony_ci#else
3288c2ecf20Sopenharmony_ci#pragma pack()
3298c2ecf20Sopenharmony_ci#endif  /* aix */
3308c2ecf20Sopenharmony_ci#endif
3318c2ecf20Sopenharmony_ci/* For the Macintosh */
3328c2ecf20Sopenharmony_ci#ifdef STRUCTALIGNMENTSUPPORTED
3338c2ecf20Sopenharmony_ci#pragma options align=reset
3348c2ecf20Sopenharmony_ci#endif
3358c2ecf20Sopenharmony_ci
3368c2ecf20Sopenharmony_ci#endif
337