`unexpand -a' should be run _before_ sed 's/^#define /#define^I/g'.

This commit is contained in:
obrien 2002-05-14 21:59:10 +00:00
parent a820a88999
commit c751ff18ae
14 changed files with 1079 additions and 1079 deletions

View File

@ -106,12 +106,12 @@
* $FreeBSD$
*/
#define ASR_VERSION 1
#define ASR_REVISION '0'
#define ASR_SUBREVISION '8'
#define ASR_MONTH 8
#define ASR_DAY 21
#define ASR_YEAR 2001 - 1980
#define ASR_VERSION 1
#define ASR_REVISION '0'
#define ASR_SUBREVISION '8'
#define ASR_MONTH 8
#define ASR_DAY 21
#define ASR_YEAR 2001 - 1980
/*
* Debug macros to reduce the unsightly ifdefs
@ -196,7 +196,7 @@
# define debug_usr_cmd_dump_message(message)
#endif /* DEBUG_ASR_USR_CMD */
#define dsDescription_size 46 /* Snug as a bug in a rug */
#define dsDescription_size 46 /* Snug as a bug in a rug */
#include "dev/asr/dptsig.h"
static dpt_sig_S ASR_sig = {
@ -246,8 +246,8 @@ static dpt_sig_S ASR_sig = {
#include <pci/pcivar.h>
#include <pci/pcireg.h>
#define STATIC static
#define INLINE
#define STATIC static
#define INLINE
#if (defined(DEBUG_ASR) && (DEBUG_ASR > 0))
# undef STATIC
@ -255,12 +255,12 @@ static dpt_sig_S ASR_sig = {
# undef INLINE
# define INLINE
#endif
#define IN
#define OUT
#define INOUT
#define IN
#define OUT
#define INOUT
#define osdSwap4(x) ((u_long)ntohl((u_long)(x)))
#define KVTOPHYS(x) vtophys(x)
#define osdSwap4(x) ((u_long)ntohl((u_long)(x)))
#define KVTOPHYS(x) vtophys(x)
#include "dev/asr/dptalign.h"
#include "dev/asr/i2oexec.h"
#include "dev/asr/i2obscsi.h"
@ -272,14 +272,14 @@ static dpt_sig_S ASR_sig = {
/* Configuration Definitions */
#define SG_SIZE 58 /* Scatter Gather list Size */
#define MAX_TARGET_ID 126 /* Maximum Target ID supported */
#define MAX_LUN 255 /* Maximum LUN Supported */
#define MAX_CHANNEL 7 /* Maximum Channel # Supported by driver */
#define MAX_INBOUND 2000 /* Max CCBs, Also Max Queue Size */
#define MAX_OUTBOUND 256 /* Maximum outbound frames/adapter */
#define MAX_INBOUND_SIZE 512 /* Maximum inbound frame size */
#define MAX_MAP 4194304L /* Maximum mapping size of IOP */
#define SG_SIZE 58 /* Scatter Gather list Size */
#define MAX_TARGET_ID 126 /* Maximum Target ID supported */
#define MAX_LUN 255 /* Maximum LUN Supported */
#define MAX_CHANNEL 7 /* Maximum Channel # Supported by driver */
#define MAX_INBOUND 2000 /* Max CCBs, Also Max Queue Size */
#define MAX_OUTBOUND 256 /* Maximum outbound frames/adapter */
#define MAX_INBOUND_SIZE 512 /* Maximum inbound frame size */
#define MAX_MAP 4194304L /* Maximum mapping size of IOP */
/* Also serves as the minimum map for */
/* the 2005S zero channel RAID product */
@ -379,14 +379,14 @@ typedef struct Asr_softc {
struct Asr_softc * ha_next; /* HBA list */
#ifdef ASR_MEASURE_PERFORMANCE
#define MAX_TIMEQ_SIZE 256 /* assumes MAX 256 scsi commands sent */
#define MAX_TIMEQ_SIZE 256 /* assumes MAX 256 scsi commands sent */
asr_perf_t ha_performance;
u_int32_t ha_submitted_ccbs_count;
/* Queueing macros for a circular queue */
#define TIMEQ_FREE_LIST_EMPTY(head, tail) (-1 == (head) && -1 == (tail))
#define TIMEQ_FREE_LIST_FULL(head, tail) ((((tail) + 1) % MAX_TIMEQ_SIZE) == (head))
#define ENQ_TIMEQ_FREE_LIST(item, Q, head, tail) \
#define TIMEQ_FREE_LIST_EMPTY(head, tail) (-1 == (head) && -1 == (tail))
#define TIMEQ_FREE_LIST_FULL(head, tail) ((((tail) + 1) % MAX_TIMEQ_SIZE) == (head))
#define ENQ_TIMEQ_FREE_LIST(item, Q, head, tail) \
if (!TIMEQ_FREE_LIST_FULL((head), (tail))) { \
if TIMEQ_FREE_LIST_EMPTY((head),(tail)) { \
(head) = (tail) = 0; \
@ -397,7 +397,7 @@ typedef struct Asr_softc {
else { \
debug_asr_printf("asr: Enqueueing when TimeQ Free List is full... This should not happen!\n"); \
}
#define DEQ_TIMEQ_FREE_LIST(item, Q, head, tail) \
#define DEQ_TIMEQ_FREE_LIST(item, Q, head, tail) \
if (!TIMEQ_FREE_LIST_EMPTY((head), (tail))) { \
item = Q[(head)]; \
if ((head) == (tail)) { (head) = (tail) = -1; } \
@ -424,23 +424,23 @@ STATIC Asr_softc_t * Asr_softc;
/* Externally callable routines */
#if __FreeBSD_version >= 400000
#define PROBE_ARGS IN device_t tag
#define PROBE_RET int
#define PROBE_SET() u_int32_t id = (pci_get_device(tag)<<16)|pci_get_vendor(tag)
#define PROBE_RETURN(retval) if(retval){device_set_desc(tag,retval);return(0);}else{return(ENXIO);}
#define ATTACH_ARGS IN device_t tag
#define ATTACH_RET int
#define ATTACH_SET() int unit = device_get_unit(tag)
#define ATTACH_RETURN(retval) return(retval)
#define PROBE_ARGS IN device_t tag
#define PROBE_RET int
#define PROBE_SET() u_int32_t id = (pci_get_device(tag)<<16)|pci_get_vendor(tag)
#define PROBE_RETURN(retval) if(retval){device_set_desc(tag,retval);return(0);}else{return(ENXIO);}
#define ATTACH_ARGS IN device_t tag
#define ATTACH_RET int
#define ATTACH_SET() int unit = device_get_unit(tag)
#define ATTACH_RETURN(retval) return(retval)
#else
#define PROBE_ARGS IN pcici_t tag, IN pcidi_t id
#define PROBE_RET const char *
#define PROBE_SET()
#define PROBE_RETURN(retval) return(retval)
#define ATTACH_ARGS IN pcici_t tag, IN int unit
#define ATTACH_RET void
#define ATTACH_SET()
#define ATTACH_RETURN(retval) return
#define PROBE_ARGS IN pcici_t tag, IN pcidi_t id
#define PROBE_RET const char *
#define PROBE_SET()
#define PROBE_RETURN(retval) return(retval)
#define ATTACH_ARGS IN pcici_t tag, IN int unit
#define ATTACH_RET void
#define ATTACH_SET()
#define ATTACH_RETURN(retval) return
#endif
/* I2O HDM interface */
STATIC PROBE_RET asr_probe(PROBE_ARGS);
@ -575,7 +575,7 @@ DATA_SET (mode0_pciset, mode0_pcidev);
*
* only ioctl is used. the sd driver provides all other access.
*/
#define CDEV_MAJOR 154 /* preferred default character major */
#define CDEV_MAJOR 154 /* preferred default character major */
STATIC struct cdevsw asr_cdevsw = {
asr_open, /* open */
asr_close, /* close */
@ -640,8 +640,8 @@ SYSINIT(asrdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,asr_drvinit,NULL)
#endif
/* I2O support routines */
#define defAlignLong(STRUCT,NAME) char NAME[sizeof(STRUCT)]
#define getAlignLong(STRUCT,NAME) ((STRUCT *)(NAME))
#define defAlignLong(STRUCT,NAME) char NAME[sizeof(STRUCT)]
#define getAlignLong(STRUCT,NAME) ((STRUCT *)(NAME))
/*
* Fill message with default.
@ -662,7 +662,7 @@ ASR_fillMessage (
return (Message_Ptr);
} /* ASR_fillMessage */
#define EMPTY_QUEUE ((U32)-1L)
#define EMPTY_QUEUE ((U32)-1L)
STATIC INLINE U32
ASR_getMessage(
@ -1703,7 +1703,7 @@ ASR_queue(
/* Simple Scatter Gather elements */
#define SG(SGL,Index,Flags,Buffer,Size) \
#define SG(SGL,Index,Flags,Buffer,Size) \
I2O_FLAGS_COUNT_setCount( \
&(((PI2O_SG_ELEMENT)(SGL))->u.Simple[Index].FlagsCount), \
Size); \
@ -3398,12 +3398,12 @@ asr_action(
} /* asr_action */
#ifdef ASR_MEASURE_PERFORMANCE
#define WRITE_OP 1
#define READ_OP 2
#define min_submitR sc->ha_performance.read_by_size_min_time[index]
#define max_submitR sc->ha_performance.read_by_size_max_time[index]
#define min_submitW sc->ha_performance.write_by_size_min_time[index]
#define max_submitW sc->ha_performance.write_by_size_max_time[index]
#define WRITE_OP 1
#define READ_OP 2
#define min_submitR sc->ha_performance.read_by_size_min_time[index]
#define max_submitR sc->ha_performance.read_by_size_max_time[index]
#define min_submitW sc->ha_performance.write_by_size_min_time[index]
#define max_submitW sc->ha_performance.write_by_size_max_time[index]
STATIC INLINE void
asr_IObySize(
@ -3645,8 +3645,8 @@ asr_intr (
submitted_time = 0xffffffff;
}
#define maxctime sc->ha_performance.max_command_time[ccb->csio.cdb_io.cdb_bytes[0]]
#define minctime sc->ha_performance.min_command_time[ccb->csio.cdb_io.cdb_bytes[0]]
#define maxctime sc->ha_performance.max_command_time[ccb->csio.cdb_io.cdb_bytes[0]]
#define minctime sc->ha_performance.min_command_time[ccb->csio.cdb_io.cdb_bytes[0]]
if (submitted_time != 0xffffffff) {
if ( maxctime < submitted_time ) {
maxctime = submitted_time;
@ -3841,7 +3841,7 @@ typedef U32 DPT_RTN_T;
#undef SCSI_RESET /* Conflicts with "scsi/scsiconf.h" defintion */
#include "dev/asr/osd_unix.h"
#define asr_unit(dev) minor(dev)
#define asr_unit(dev) minor(dev)
STATIC INLINE Asr_softc_t *
ASR_get_sc (
@ -4443,9 +4443,9 @@ asr_ioctl(
CtlrInfo.blinkState = i;
CtlrInfo.pciBusNum = sc->ha_pciBusNum;
CtlrInfo.pciDeviceNum = sc->ha_pciDeviceNum;
#define FLG_OSD_PCI_VALID 0x0001
#define FLG_OSD_DMA 0x0002
#define FLG_OSD_I2O 0x0004
#define FLG_OSD_PCI_VALID 0x0001
#define FLG_OSD_DMA 0x0002
#define FLG_OSD_I2O 0x0004
CtlrInfo.hbaFlags = FLG_OSD_PCI_VALID | FLG_OSD_DMA | FLG_OSD_I2O;
CtlrInfo.Interrupt = sc->ha_irq;
if (cmd & 0xFFFF0000) {
@ -4496,7 +4496,7 @@ asr_ioctl(
case CPU_686:
Info.processorType = PROC_SEXIUM; break;
}
#elif defined (__alpha__)
#elif defined(__alpha__)
Info.processorType = PROC_ALPHA;
#endif

View File

@ -170,25 +170,25 @@
# endif
#endif
#define I2O_TID_MASK ((unsigned DPT_4_BYTES) ((1L<<I2O_TID_SZ)-1))
#define I2O_TID_MASK ((unsigned DPT_4_BYTES) ((1L<<I2O_TID_SZ)-1))
/*
* Now the access macros used throughout in order to methodize the
* active alignment.
*/
#define getUP1(x,y) (((unsigned char __FAR__ *)(x))+(unsigned DPT_4_BYTES)(y))
#define getU1(x,y) (*getUP1(x,y))
#define setU1(x,y,z) (*((unsigned char *)getUP1(x,y)) = (unsigned char)(z))
#define orU1(x,y,z) (*getUP1(x,y) |= (unsigned char)(z))
#define andU1(x,y,z) (*getUP1(x,y) &= (unsigned char)(z))
#define getUP2(x,y) ((unsigned short __FAR__ *)(((unsigned char __FAR__ *) \
#define getUP1(x,y) (((unsigned char __FAR__ *)(x))+(unsigned DPT_4_BYTES)(y))
#define getU1(x,y) (*getUP1(x,y))
#define setU1(x,y,z) (*((unsigned char *)getUP1(x,y)) = (unsigned char)(z))
#define orU1(x,y,z) (*getUP1(x,y) |= (unsigned char)(z))
#define andU1(x,y,z) (*getUP1(x,y) &= (unsigned char)(z))
#define getUP2(x,y) ((unsigned short __FAR__ *)(((unsigned char __FAR__ *) \
(x))+(unsigned DPT_4_BYTES)(y)))
#define getBU2(x,y) ((unsigned short)osdLocal2((unsigned short __FAR__ *) \
#define getBU2(x,y) ((unsigned short)osdLocal2((unsigned short __FAR__ *) \
getUP1(x,y)))
#define getLU2(x,y) ((unsigned short)osdSLocal2((unsigned short __FAR__ *) \
#define getLU2(x,y) ((unsigned short)osdSLocal2((unsigned short __FAR__ *) \
getUP1(x,y)))
/* to be deleted */
#define getU2(x,y) ((unsigned short)osdLocal2((unsigned short __FAR__ *) \
#define getU2(x,y) ((unsigned short)osdLocal2((unsigned short __FAR__ *) \
getUP1(x,y)))
#if (!defined(setU2))
# define setU2(x,y,z) { unsigned short hold = (unsigned short)(z); \
@ -210,7 +210,7 @@
#endif
/* to be deleted */
#define getU3(x,y) ((unsigned DPT_4_BYTES)osdLocal3((unsigned DPT_4_BYTES __FAR__ *) \
#define getU3(x,y) ((unsigned DPT_4_BYTES)osdLocal3((unsigned DPT_4_BYTES __FAR__ *) \
getUP1(x,y)))
#if (!defined(setU3))
# if (defined(_DPT_BIG_ENDIAN))
@ -231,7 +231,7 @@
#endif
/* up to here to be deleted */
#define getBU3(x,y) ((unsigned DPT_4_BYTES)osdLocal3((unsigned DPT_4_BYTES __FAR__ *) \
#define getBU3(x,y) ((unsigned DPT_4_BYTES)osdLocal3((unsigned DPT_4_BYTES __FAR__ *) \
getUP1(x,y)))
#if (!defined(setBU3))
# if (defined(_DPT_BIG_ENDIAN))
@ -250,14 +250,14 @@
}
# endif
#endif
#define getUP4(x,y) ((unsigned DPT_4_BYTES __FAR__ *)(((unsigned char __FAR__ *) \
#define getUP4(x,y) ((unsigned DPT_4_BYTES __FAR__ *)(((unsigned char __FAR__ *) \
(x))+(unsigned DPT_4_BYTES)(y)))
#define getBU4(x,y) ((unsigned DPT_4_BYTES)osdLocal4((unsigned DPT_4_BYTES __FAR__ *) \
#define getBU4(x,y) ((unsigned DPT_4_BYTES)osdLocal4((unsigned DPT_4_BYTES __FAR__ *) \
getUP1(x,y)))
#define getLU4(x,y) ((unsigned DPT_4_BYTES)osdSLocal4((unsigned DPT_4_BYTES __FAR__ *) \
#define getLU4(x,y) ((unsigned DPT_4_BYTES)osdSLocal4((unsigned DPT_4_BYTES __FAR__ *) \
getUP1(x,y)))
/* to be deleted */
#define getU4(x,y) ((unsigned DPT_4_BYTES)osdSLocal4((unsigned DPT_4_BYTES __FAR__ *) \
#define getU4(x,y) ((unsigned DPT_4_BYTES)osdSLocal4((unsigned DPT_4_BYTES __FAR__ *) \
getUP1(x,y)))
#if (!defined(setU4))
# define setU4(x,y,z) { unsigned DPT_4_BYTES hold = z; \
@ -280,7 +280,7 @@
#endif
#define osdSwap16bit(x) ( (((unsigned short )x & 0xf000) >> 12) | \
#define osdSwap16bit(x) ( (((unsigned short )x & 0xf000) >> 12) | \
(((unsigned short )x & 0x0f00) >> 4) | \
(((unsigned short )x & 0x00f0) << 4) | \
(((unsigned short )x & 0x000f) << 12 ) )
@ -289,56 +289,56 @@
* note that in big endian a 12 bit number (0x123) is stored as 1203
*/
#define osdSwap12bit(x) (( (((unsigned short )x & 0x0f00) >> 8) | \
#define osdSwap12bit(x) (( (((unsigned short )x & 0x0f00) >> 8) | \
((unsigned short )x & 0x00f0) | \
(((unsigned short )x & 0x000f) << 8 ) ) )
#define osdSwap8bit(x) ( (((unsigned char )x & 0x0f) << 4) | \
#define osdSwap8bit(x) ( (((unsigned char )x & 0x0f) << 4) | \
(((unsigned char )x &0xf0) >> 4 ) )
#define getL24bit1(w,x,y) ((unsigned DPT_4_BYTES)((unsigned char __FAR__ *)(&w->x))[0+(y)] \
#define getL24bit1(w,x,y) ((unsigned DPT_4_BYTES)((unsigned char __FAR__ *)(&w->x))[0+(y)] \
+ ((((unsigned DPT_4_BYTES)((unsigned char __FAR__ *)(&w->x))[1+(y)]) << 8) & 0xFF00) \
+ ((((unsigned DPT_4_BYTES)((unsigned char __FAR__ *)(&w->x))[2+(y)]) << 16) & 0xFF0000))
#define setL24bit1(w,x,y,z) { ((unsigned char __FAR__ *)(&w->x))[0+(y)] = (z); \
#define setL24bit1(w,x,y,z) { ((unsigned char __FAR__ *)(&w->x))[0+(y)] = (z); \
((unsigned char __FAR__ *)(&w->x))[1+(y)] = ((z) >> 8) & 0xFF; \
((unsigned char __FAR__ *)(&w->x))[2+(y)] = ((z) >> 16) & 0xFF; \
}
#define getL16bit(w,x,y) ((unsigned short)((unsigned char __FAR__ *)(&w->x))[0+(y)] \
#define getL16bit(w,x,y) ((unsigned short)((unsigned char __FAR__ *)(&w->x))[0+(y)] \
+ ((((unsigned short)((unsigned char __FAR__ *)(&w->x))[1+(y)]) << 8) & 0xFF00))
#define setL16bit(w,x,y,z) { ((unsigned char __FAR__ *)(&w->x))[0+(y)] = (z); \
#define setL16bit(w,x,y,z) { ((unsigned char __FAR__ *)(&w->x))[0+(y)] = (z); \
((unsigned char __FAR__ *)(&w->x))[1+(y)] = ((z) >> 8) & 0xFF; \
}
#define getL16bit2(w,x,y) ((unsigned short)((unsigned char __FAR__ *)(&w->x))[2+(y)] \
#define getL16bit2(w,x,y) ((unsigned short)((unsigned char __FAR__ *)(&w->x))[2+(y)] \
+ ((((unsigned short)((unsigned char __FAR__ *)(&w->x))[3+(y)]) << 8) & 0xFF00))
#define setL16bit2(w,x,y,z) { ((unsigned char __FAR__ *)(&w->x))[2+(y)] = (z); \
#define setL16bit2(w,x,y,z) { ((unsigned char __FAR__ *)(&w->x))[2+(y)] = (z); \
((unsigned char __FAR__ *)(&w->x))[3+(y)] = ((z) >> 8) & 0xFF; \
}
/* y is the number of bytes from beg of DPT_4_BYTES to get upper 4 bit of the addressed byte */
#define getL4bit(w,x,y) \
#define getL4bit(w,x,y) \
((unsigned char)(((unsigned char __FAR__ *)(&w->x))[0+(y)] >> 4) & 0x0f)
#define setL4bit(w,x,y,z) { \
#define setL4bit(w,x,y,z) { \
((unsigned char __FAR__ *)(&w->x))[0+(y)] &= 0xF0; \
((unsigned char __FAR__ *)(&w->x))[0+(y)] |= ((z) << 4) & 0xF0; \
}
/* y is number of bytes from beg of DPT_4_BYTES */
#define getL1bit(w,x,y) \
#define getL1bit(w,x,y) \
((unsigned char)(((unsigned char __FAR__ *)(&w->x))[0+(y)] ) & 0x01)
#define setL1bit(w,x,y,z) { \
#define setL1bit(w,x,y,z) { \
((unsigned char __FAR__ *)(&w->x))[0+(y)] &= 0xFE; \
((unsigned char __FAR__ *)(&w->x))[0+(y)] |= (z) & 0x01; \
}
#define getL1bit1(w,x,y) \
#define getL1bit1(w,x,y) \
((unsigned char)(((unsigned char __FAR__ *)(&w->x))[0+(y)] >> 1) & 0x01)
#define setL1bit1(w,x,y,z) { \
#define setL1bit1(w,x,y,z) { \
((unsigned char __FAR__ *)(&w->x))[0+(y)] &= 0xFD; \
((unsigned char __FAR__ *)(&w->x))[0+(y)] |= (z << 1) & 0x02; \
}
@ -346,37 +346,37 @@
/* 12 bit at the first 12 bits of a DPT_4_BYTES word */
#define getL12bit(w,x,y) ((unsigned short)((unsigned char __FAR__ *)(&w->x))[0+(y)] \
#define getL12bit(w,x,y) ((unsigned short)((unsigned char __FAR__ *)(&w->x))[0+(y)] \
+ ((((unsigned short)((unsigned char __FAR__ *)(&w->x))[1+(y)]) << 8) & 0xF00))
#define setL12bit(w,x,y,z) { ((unsigned char __FAR__ *)(&w->x))[0+(y)] = (z); \
#define setL12bit(w,x,y,z) { ((unsigned char __FAR__ *)(&w->x))[0+(y)] = (z); \
((unsigned char __FAR__ *)(&w->x))[1+(y)] &= 0xF0; \
((unsigned char __FAR__ *)(&w->x))[1+(y)] |= ((z) >> 8) & 0xF; \
}
/* 12 bit after another 12 bit in DPT_4_BYTES word */
#define getL12bit1(w,x,y) (((unsigned short)((unsigned char __FAR__ *)(&w->x))[1+(y)]) >> 4 \
#define getL12bit1(w,x,y) (((unsigned short)((unsigned char __FAR__ *)(&w->x))[1+(y)]) >> 4 \
+ ((((unsigned short)((unsigned char __FAR__ *)(&w->x))[2+(y)]) << 4) ))
#define setL12bit1(w,x,y,z) { ((unsigned char __FAR__ *)(&w->x))[1+(y)] &= 0x0F; \
#define setL12bit1(w,x,y,z) { ((unsigned char __FAR__ *)(&w->x))[1+(y)] &= 0x0F; \
((unsigned char __FAR__ *)(&w->x))[1+(y)] |= ((z) & 0xF) << 4; \
((unsigned char __FAR__ *)(&w->x))[2+(y)] &= 0x00;\
((unsigned char __FAR__ *)(&w->x))[2+(y)] |= ((z) >> 8) & 0xff;\
}
/* 12 at the 3rd byte in a DPT_4_BYTES word */
#define getL12bit2(w,x,y) ((unsigned short)((unsigned char __FAR__ *)(&w->x))[2+(y)] \
#define getL12bit2(w,x,y) ((unsigned short)((unsigned char __FAR__ *)(&w->x))[2+(y)] \
+ ((((unsigned short)((unsigned char __FAR__ *)(&w->x))[3+(y)]) << 8) & 0xF00))
#define setL12bit2(w,x,y,z) { ((unsigned char __FAR__ *)(&w->x))[2+(y)] = (z); \
#define setL12bit2(w,x,y,z) { ((unsigned char __FAR__ *)(&w->x))[2+(y)] = (z); \
((unsigned char __FAR__ *)(&w->x))[3+(y)] &= 0xF0; \
((unsigned char __FAR__ *)(&w->x))[3+(y)] |= ((z) >> 8) & 0xF; \
}
#define getL8bit(w,x,y) (\
#define getL8bit(w,x,y) (\
(*(((unsigned char __FAR__ *)(&((w)->x)))\
+ y)) )
#define setL8bit(w,x,y,z) {\
#define setL8bit(w,x,y,z) {\
(*(((unsigned char __FAR__ *)(&((w)->x)))\
+ y) = (z));\
}

View File

@ -23,7 +23,7 @@
*/
#ifndef __DPTSIG_H_
#define __DPTSIG_H_
#define __DPTSIG_H_
#ifdef _SINIX_ADDON
#include "dpt.h"
#endif
@ -83,238 +83,238 @@ typedef unsigned long sigLONG;
/* Current Signature Version - sigBYTE dsSigVersion; */
/* ------------------------------------------------------------------ */
#define SIG_VERSION 1
#define SIG_VERSION 1
/* Processor Family - sigBYTE dsProcessorFamily; DISTINCT VALUES */
/* ------------------------------------------------------------------ */
/* What type of processor the file is meant to run on. */
/* This will let us know whether to read sigWORDs as high/low or low/high. */
#define PROC_INTEL 0x00 /* Intel 80x86 */
#define PROC_MOTOROLA 0x01 /* Motorola 68K */
#define PROC_MIPS4000 0x02 /* MIPS RISC 4000 */
#define PROC_MIPS PROC_MIPS4000 /* MIPS RISC */
#define PROC_ALPHA 0x03 /* DEC Alpha */
#define PROC_POWERPC 0x04 /* IBM Power PC */
#define PROC_i960 0x05 /* Intel i960 */
#define PROC_ULTRASPARC 0x06 /* SPARC processor */
#define PROC_INTEL 0x00 /* Intel 80x86 */
#define PROC_MOTOROLA 0x01 /* Motorola 68K */
#define PROC_MIPS4000 0x02 /* MIPS RISC 4000 */
#define PROC_MIPS PROC_MIPS4000 /* MIPS RISC */
#define PROC_ALPHA 0x03 /* DEC Alpha */
#define PROC_POWERPC 0x04 /* IBM Power PC */
#define PROC_i960 0x05 /* Intel i960 */
#define PROC_ULTRASPARC 0x06 /* SPARC processor */
/* Specific Minimim Processor - sigBYTE dsProcessor; FLAG BITS */
/* ------------------------------------------------------------------ */
/* Different bit definitions dependent on processor_family */
/* PROC_INTEL: */
#define PROC_8086 0x01 /* Intel 8086 */
#define PROC_286 0x02 /* Intel 80286 */
#define PROC_386 0x04 /* Intel 80386 */
#define PROC_486 0x08 /* Intel 80486 */
#define PROC_PENTIUM 0x10 /* Intel 586 aka P5 aka Pentium */
#define PROC_SEXIUM 0x20 /* Intel 686 aka P6 aka Pentium Pro or MMX */
#define PROC_ITANIUM 0x40 /* Intel Itanium 64 bit */
#define PROC_8086 0x01 /* Intel 8086 */
#define PROC_286 0x02 /* Intel 80286 */
#define PROC_386 0x04 /* Intel 80386 */
#define PROC_486 0x08 /* Intel 80486 */
#define PROC_PENTIUM 0x10 /* Intel 586 aka P5 aka Pentium */
#define PROC_SEXIUM 0x20 /* Intel 686 aka P6 aka Pentium Pro or MMX */
#define PROC_ITANIUM 0x40 /* Intel Itanium 64 bit */
/* PROC_i960: */
#define PROC_960RX 0x01 /* Intel 80960RP/RD */
#define PROC_960HX 0x02 /* Intel 80960HA/HD/HT */
#define PROC_960RN 0x03 /* Intel 80960RN/RM */
#define PROC_960RS 0x04 /* Intel 80960RS */
#define PROC_80303 0x05 /* Intel 80303 (ZION) */
#define PROC_960RX 0x01 /* Intel 80960RP/RD */
#define PROC_960HX 0x02 /* Intel 80960HA/HD/HT */
#define PROC_960RN 0x03 /* Intel 80960RN/RM */
#define PROC_960RS 0x04 /* Intel 80960RS */
#define PROC_80303 0x05 /* Intel 80303 (ZION) */
/* PROC_MOTOROLA: */
#define PROC_68000 0x01 /* Motorola 68000 */
#define PROC_68010 0x02 /* Motorola 68010 */
#define PROC_68020 0x04 /* Motorola 68020 */
#define PROC_68030 0x08 /* Motorola 68030 */
#define PROC_68040 0x10 /* Motorola 68040 */
#define PROC_68000 0x01 /* Motorola 68000 */
#define PROC_68010 0x02 /* Motorola 68010 */
#define PROC_68020 0x04 /* Motorola 68020 */
#define PROC_68030 0x08 /* Motorola 68030 */
#define PROC_68040 0x10 /* Motorola 68040 */
/* PROC_POWERPC */
#define PROC_PPC601 0x01 /* PowerPC 601 */
#define PROC_PPC603 0x02 /* PowerPC 603 */
#define PROC_PPC604 0x04 /* PowerPC 604 */
#define PROC_PPC601 0x01 /* PowerPC 601 */
#define PROC_PPC603 0x02 /* PowerPC 603 */
#define PROC_PPC604 0x04 /* PowerPC 604 */
/* PROC_MIPS */
#define PROC_R4000 0x01 /* MIPS R4000 */
#define PROC_RM7000 0x02 /* MIPS RM7000 */
#define PROC_R4000 0x01 /* MIPS R4000 */
#define PROC_RM7000 0x02 /* MIPS RM7000 */
/* Filetype - sigBYTE dsFiletype; DISTINCT VALUES */
/* ------------------------------------------------------------------ */
#define FT_EXECUTABLE 0 /* Executable Program */
#define FT_SCRIPT 1 /* Script/Batch File??? */
#define FT_HBADRVR 2 /* HBA Driver */
#define FT_OTHERDRVR 3 /* Other Driver */
#define FT_IFS 4 /* Installable Filesystem Driver */
#define FT_ENGINE 5 /* DPT Engine */
#define FT_COMPDRVR 6 /* Compressed Driver Disk */
#define FT_LANGUAGE 7 /* Foreign Language file */
#define FT_FIRMWARE 8 /* Downloadable or actual Firmware */
#define FT_COMMMODL 9 /* Communications Module */
#define FT_INT13 10 /* INT 13 style HBA Driver */
#define FT_HELPFILE 11 /* Help file */
#define FT_LOGGER 12 /* Event Logger */
#define FT_INSTALL 13 /* An Install Program */
#define FT_LIBRARY 14 /* Storage Manager Real-Mode Calls */
#define FT_RESOURCE 15 /* Storage Manager Resource File */
#define FT_MODEM_DB 16 /* Storage Manager Modem Database */
#define FT_DMI 17 /* DMI component interface */
#define FT_EXECUTABLE 0 /* Executable Program */
#define FT_SCRIPT 1 /* Script/Batch File??? */
#define FT_HBADRVR 2 /* HBA Driver */
#define FT_OTHERDRVR 3 /* Other Driver */
#define FT_IFS 4 /* Installable Filesystem Driver */
#define FT_ENGINE 5 /* DPT Engine */
#define FT_COMPDRVR 6 /* Compressed Driver Disk */
#define FT_LANGUAGE 7 /* Foreign Language file */
#define FT_FIRMWARE 8 /* Downloadable or actual Firmware */
#define FT_COMMMODL 9 /* Communications Module */
#define FT_INT13 10 /* INT 13 style HBA Driver */
#define FT_HELPFILE 11 /* Help file */
#define FT_LOGGER 12 /* Event Logger */
#define FT_INSTALL 13 /* An Install Program */
#define FT_LIBRARY 14 /* Storage Manager Real-Mode Calls */
#define FT_RESOURCE 15 /* Storage Manager Resource File */
#define FT_MODEM_DB 16 /* Storage Manager Modem Database */
#define FT_DMI 17 /* DMI component interface */
/* Filetype flags - sigBYTE dsFiletypeFlags; FLAG BITS */
/* ------------------------------------------------------------------ */
#define FTF_DLL 0x01 /* Dynamic Link Library */
#define FTF_NLM 0x02 /* Netware Loadable Module */
#define FTF_OVERLAYS 0x04 /* Uses overlays */
#define FTF_DEBUG 0x08 /* Debug version */
#define FTF_TSR 0x10 /* TSR */
#define FTF_SYS 0x20 /* DOS Loadable driver */
#define FTF_PROTECTED 0x40 /* Runs in protected mode */
#define FTF_APP_SPEC 0x80 /* Application Specific */
#define FTF_ROM (FTF_SYS|FTF_TSR) /* Special Case */
#define FTF_DLL 0x01 /* Dynamic Link Library */
#define FTF_NLM 0x02 /* Netware Loadable Module */
#define FTF_OVERLAYS 0x04 /* Uses overlays */
#define FTF_DEBUG 0x08 /* Debug version */
#define FTF_TSR 0x10 /* TSR */
#define FTF_SYS 0x20 /* DOS Loadable driver */
#define FTF_PROTECTED 0x40 /* Runs in protected mode */
#define FTF_APP_SPEC 0x80 /* Application Specific */
#define FTF_ROM (FTF_SYS|FTF_TSR) /* Special Case */
/* OEM - sigBYTE dsOEM; DISTINCT VALUES */
/* ------------------------------------------------------------------ */
#define OEM_DPT 0 /* DPT */
#define OEM_ATT 1 /* ATT */
#define OEM_NEC 2 /* NEC */
#define OEM_ALPHA 3 /* Alphatronix */
#define OEM_AST 4 /* AST */
#define OEM_OLIVETTI 5 /* Olivetti */
#define OEM_SNI 6 /* Siemens/Nixdorf */
#define OEM_SUN 7 /* SUN Microsystems */
#define OEM_ADAPTEC 8 /* Adaptec */
#define OEM_DPT 0 /* DPT */
#define OEM_ATT 1 /* ATT */
#define OEM_NEC 2 /* NEC */
#define OEM_ALPHA 3 /* Alphatronix */
#define OEM_AST 4 /* AST */
#define OEM_OLIVETTI 5 /* Olivetti */
#define OEM_SNI 6 /* Siemens/Nixdorf */
#define OEM_SUN 7 /* SUN Microsystems */
#define OEM_ADAPTEC 8 /* Adaptec */
/* Operating System - sigLONG dsOS; FLAG BITS */
/* ------------------------------------------------------------------ */
#define OS_DOS 0x00000001 /* PC/MS-DOS */
#define OS_WINDOWS 0x00000002 /* Microsoft Windows 3.x */
#define OS_WINDOWS_NT 0x00000004 /* Microsoft Windows NT */
#define OS_OS2M 0x00000008 /* OS/2 1.2.x,MS 1.3.0,IBM 1.3.x - Monolithic */
#define OS_OS2L 0x00000010 /* Microsoft OS/2 1.301 - LADDR */
#define OS_OS22x 0x00000020 /* IBM OS/2 2.x */
#define OS_NW286 0x00000040 /* Novell NetWare 286 */
#define OS_NW386 0x00000080 /* Novell NetWare 386 */
#define OS_GEN_UNIX 0x00000100 /* Generic Unix */
#define OS_SCO_UNIX 0x00000200 /* SCO Unix */
#define OS_ATT_UNIX 0x00000400 /* ATT Unix */
#define OS_UNIXWARE 0x00000800 /* USL Unix */
#define OS_INT_UNIX 0x00001000 /* Interactive Unix */
#define OS_SOLARIS 0x00002000 /* SunSoft Solaris */
#define OS_QNX 0x00004000 /* QNX for Tom Moch */
#define OS_NEXTSTEP 0x00008000 /* NeXTSTEP/OPENSTEP/MACH */
#define OS_BANYAN 0x00010000 /* Banyan Vines */
#define OS_OLIVETTI_UNIX 0x00020000/* Olivetti Unix */
#define OS_MAC_OS 0x00040000 /* Mac OS */
#define OS_WINDOWS_95 0x00080000 /* Microsoft Windows '95 */
#define OS_NW4x 0x00100000 /* Novell Netware 4.x */
#define OS_BSDI_UNIX 0x00200000 /* BSDi Unix BSD/OS 2.0 and up */
#define OS_AIX_UNIX 0x00400000 /* AIX Unix */
#define OS_FREE_BSD 0x00800000 /* FreeBSD Unix */
#define OS_LINUX 0x01000000 /* Linux */
#define OS_DGUX_UNIX 0x02000000 /* Data General Unix */
#define OS_SINIX_N 0x04000000 /* SNI SINIX-N */
#define OS_PLAN9 0x08000000 /* ATT Plan 9 */
#define OS_TSX 0x10000000 /* SNH TSX-32 */
#define OS_WINDOWS_98 0x20000000 /* Microsoft Windows '98 */
#define OS_NW5x 0x40000000 /* Novell Netware 5x */
#define OS_DOS 0x00000001 /* PC/MS-DOS */
#define OS_WINDOWS 0x00000002 /* Microsoft Windows 3.x */
#define OS_WINDOWS_NT 0x00000004 /* Microsoft Windows NT */
#define OS_OS2M 0x00000008 /* OS/2 1.2.x,MS 1.3.0,IBM 1.3.x - Monolithic */
#define OS_OS2L 0x00000010 /* Microsoft OS/2 1.301 - LADDR */
#define OS_OS22x 0x00000020 /* IBM OS/2 2.x */
#define OS_NW286 0x00000040 /* Novell NetWare 286 */
#define OS_NW386 0x00000080 /* Novell NetWare 386 */
#define OS_GEN_UNIX 0x00000100 /* Generic Unix */
#define OS_SCO_UNIX 0x00000200 /* SCO Unix */
#define OS_ATT_UNIX 0x00000400 /* ATT Unix */
#define OS_UNIXWARE 0x00000800 /* USL Unix */
#define OS_INT_UNIX 0x00001000 /* Interactive Unix */
#define OS_SOLARIS 0x00002000 /* SunSoft Solaris */
#define OS_QNX 0x00004000 /* QNX for Tom Moch */
#define OS_NEXTSTEP 0x00008000 /* NeXTSTEP/OPENSTEP/MACH */
#define OS_BANYAN 0x00010000 /* Banyan Vines */
#define OS_OLIVETTI_UNIX 0x00020000/* Olivetti Unix */
#define OS_MAC_OS 0x00040000 /* Mac OS */
#define OS_WINDOWS_95 0x00080000 /* Microsoft Windows '95 */
#define OS_NW4x 0x00100000 /* Novell Netware 4.x */
#define OS_BSDI_UNIX 0x00200000 /* BSDi Unix BSD/OS 2.0 and up */
#define OS_AIX_UNIX 0x00400000 /* AIX Unix */
#define OS_FREE_BSD 0x00800000 /* FreeBSD Unix */
#define OS_LINUX 0x01000000 /* Linux */
#define OS_DGUX_UNIX 0x02000000 /* Data General Unix */
#define OS_SINIX_N 0x04000000 /* SNI SINIX-N */
#define OS_PLAN9 0x08000000 /* ATT Plan 9 */
#define OS_TSX 0x10000000 /* SNH TSX-32 */
#define OS_WINDOWS_98 0x20000000 /* Microsoft Windows '98 */
#define OS_NW5x 0x40000000 /* Novell Netware 5x */
#define OS_OTHER 0x80000000 /* Other */
#define OS_OTHER 0x80000000 /* Other */
/* Capabilities - sigWORD dsCapabilities; FLAG BITS */
/* ------------------------------------------------------------------ */
#define CAP_RAID0 0x0001 /* RAID-0 */
#define CAP_RAID1 0x0002 /* RAID-1 */
#define CAP_RAID3 0x0004 /* RAID-3 */
#define CAP_RAID5 0x0008 /* RAID-5 */
#define CAP_SPAN 0x0010 /* Spanning */
#define CAP_PASS 0x0020 /* Provides passthrough */
#define CAP_OVERLAP 0x0040 /* Passthrough supports overlapped commands */
#define CAP_ASPI 0x0080 /* Supports ASPI Command Requests */
#define CAP_ABOVE16MB 0x0100 /* ISA Driver supports greater than 16MB */
#define CAP_EXTEND 0x8000 /* Extended info appears after description */
#define CAP_RAID0 0x0001 /* RAID-0 */
#define CAP_RAID1 0x0002 /* RAID-1 */
#define CAP_RAID3 0x0004 /* RAID-3 */
#define CAP_RAID5 0x0008 /* RAID-5 */
#define CAP_SPAN 0x0010 /* Spanning */
#define CAP_PASS 0x0020 /* Provides passthrough */
#define CAP_OVERLAP 0x0040 /* Passthrough supports overlapped commands */
#define CAP_ASPI 0x0080 /* Supports ASPI Command Requests */
#define CAP_ABOVE16MB 0x0100 /* ISA Driver supports greater than 16MB */
#define CAP_EXTEND 0x8000 /* Extended info appears after description */
#ifdef SNI_MIPS
#define CAP_CACHEMODE 0x1000 /* dpt_force_cache is set in driver */
#define CAP_CACHEMODE 0x1000 /* dpt_force_cache is set in driver */
#endif
/* Devices Supported - sigWORD dsDeviceSupp; FLAG BITS */
/* ------------------------------------------------------------------ */
#define DEV_DASD 0x0001 /* DASD (hard drives) */
#define DEV_TAPE 0x0002 /* Tape drives */
#define DEV_PRINTER 0x0004 /* Printers */
#define DEV_PROC 0x0008 /* Processors */
#define DEV_WORM 0x0010 /* WORM drives */
#define DEV_CDROM 0x0020 /* CD-ROM drives */
#define DEV_SCANNER 0x0040 /* Scanners */
#define DEV_OPTICAL 0x0080 /* Optical Drives */
#define DEV_JUKEBOX 0x0100 /* Jukebox */
#define DEV_COMM 0x0200 /* Communications Devices */
#define DEV_OTHER 0x0400 /* Other Devices */
#define DEV_ALL 0xFFFF /* All SCSI Devices */
#define DEV_DASD 0x0001 /* DASD (hard drives) */
#define DEV_TAPE 0x0002 /* Tape drives */
#define DEV_PRINTER 0x0004 /* Printers */
#define DEV_PROC 0x0008 /* Processors */
#define DEV_WORM 0x0010 /* WORM drives */
#define DEV_CDROM 0x0020 /* CD-ROM drives */
#define DEV_SCANNER 0x0040 /* Scanners */
#define DEV_OPTICAL 0x0080 /* Optical Drives */
#define DEV_JUKEBOX 0x0100 /* Jukebox */
#define DEV_COMM 0x0200 /* Communications Devices */
#define DEV_OTHER 0x0400 /* Other Devices */
#define DEV_ALL 0xFFFF /* All SCSI Devices */
/* Adapters Families Supported - sigWORD dsAdapterSupp; FLAG BITS */
/* ------------------------------------------------------------------ */
#define ADF_2001 0x0001 /* PM2001 */
#define ADF_2012A 0x0002 /* PM2012A */
#define ADF_PLUS_ISA 0x0004 /* PM2011,PM2021 */
#define ADF_PLUS_EISA 0x0008 /* PM2012B,PM2022 */
#define ADF_SC3_ISA 0x0010 /* PM2021 */
#define ADF_SC3_EISA 0x0020 /* PM2022,PM2122, etc */
#define ADF_SC3_PCI 0x0040 /* SmartCache III PCI */
#define ADF_SC4_ISA 0x0080 /* SmartCache IV ISA */
#define ADF_SC4_EISA 0x0100 /* SmartCache IV EISA */
#define ADF_SC4_PCI 0x0200 /* SmartCache IV PCI */
#define ADF_SC5_PCI 0x0400 /* Fifth Generation I2O products */
#define ADF_2001 0x0001 /* PM2001 */
#define ADF_2012A 0x0002 /* PM2012A */
#define ADF_PLUS_ISA 0x0004 /* PM2011,PM2021 */
#define ADF_PLUS_EISA 0x0008 /* PM2012B,PM2022 */
#define ADF_SC3_ISA 0x0010 /* PM2021 */
#define ADF_SC3_EISA 0x0020 /* PM2022,PM2122, etc */
#define ADF_SC3_PCI 0x0040 /* SmartCache III PCI */
#define ADF_SC4_ISA 0x0080 /* SmartCache IV ISA */
#define ADF_SC4_EISA 0x0100 /* SmartCache IV EISA */
#define ADF_SC4_PCI 0x0200 /* SmartCache IV PCI */
#define ADF_SC5_PCI 0x0400 /* Fifth Generation I2O products */
/*
* Combinations of products
*/
#define ADF_ALL_2000 (ADF_2001|ADF_2012A)
#define ADF_ALL_PLUS (ADF_PLUS_ISA|ADF_PLUS_EISA)
#define ADF_ALL_SC3 (ADF_SC3_ISA|ADF_SC3_EISA|ADF_SC3_PCI)
#define ADF_ALL_SC4 (ADF_SC4_ISA|ADF_SC4_EISA|ADF_SC4_PCI)
#define ADF_ALL_SC5 (ADF_SC5_PCI)
#define ADF_ALL_2000 (ADF_2001|ADF_2012A)
#define ADF_ALL_PLUS (ADF_PLUS_ISA|ADF_PLUS_EISA)
#define ADF_ALL_SC3 (ADF_SC3_ISA|ADF_SC3_EISA|ADF_SC3_PCI)
#define ADF_ALL_SC4 (ADF_SC4_ISA|ADF_SC4_EISA|ADF_SC4_PCI)
#define ADF_ALL_SC5 (ADF_SC5_PCI)
/* All EATA Cacheing Products */
#define ADF_ALL_CACHE (ADF_ALL_PLUS|ADF_ALL_SC3|ADF_ALL_SC4)
#define ADF_ALL_CACHE (ADF_ALL_PLUS|ADF_ALL_SC3|ADF_ALL_SC4)
/* All EATA Bus Mastering Products */
#define ADF_ALL_MASTER (ADF_2012A|ADF_ALL_CACHE)
#define ADF_ALL_MASTER (ADF_2012A|ADF_ALL_CACHE)
/* All EATA Adapter Products */
#define ADF_ALL_EATA (ADF_2001|ADF_ALL_MASTER)
#define ADF_ALL ADF_ALL_EATA
#define ADF_ALL_EATA (ADF_2001|ADF_ALL_MASTER)
#define ADF_ALL ADF_ALL_EATA
/* Application - sigWORD dsApplication; FLAG BITS */
/* ------------------------------------------------------------------ */
#define APP_DPTMGR 0x0001 /* DPT Storage Manager */
#define APP_ENGINE 0x0002 /* DPT Engine */
#define APP_SYTOS 0x0004 /* Sytron Sytos Plus */
#define APP_CHEYENNE 0x0008 /* Cheyenne ARCServe + ARCSolo */
#define APP_MSCDEX 0x0010 /* Microsoft CD-ROM extensions */
#define APP_NOVABACK 0x0020 /* NovaStor Novaback */
#define APP_AIM 0x0040 /* Archive Information Manager */
#define APP_DPTMGR 0x0001 /* DPT Storage Manager */
#define APP_ENGINE 0x0002 /* DPT Engine */
#define APP_SYTOS 0x0004 /* Sytron Sytos Plus */
#define APP_CHEYENNE 0x0008 /* Cheyenne ARCServe + ARCSolo */
#define APP_MSCDEX 0x0010 /* Microsoft CD-ROM extensions */
#define APP_NOVABACK 0x0020 /* NovaStor Novaback */
#define APP_AIM 0x0040 /* Archive Information Manager */
/* Requirements - sigBYTE dsRequirements; FLAG BITS */
/* ------------------------------------------------------------------ */
#define REQ_SMARTROM 0x01 /* Requires SmartROM to be present */
#define REQ_DPTDDL 0x02 /* Requires DPTDDL.SYS to be loaded */
#define REQ_HBA_DRIVER 0x04 /* Requires an HBA driver to be loaded */
#define REQ_ASPI_TRAN 0x08 /* Requires an ASPI Transport Modules */
#define REQ_ENGINE 0x10 /* Requires a DPT Engine to be loaded */
#define REQ_COMM_ENG 0x20 /* Requires a DPT Communications Engine */
#define REQ_SMARTROM 0x01 /* Requires SmartROM to be present */
#define REQ_DPTDDL 0x02 /* Requires DPTDDL.SYS to be loaded */
#define REQ_HBA_DRIVER 0x04 /* Requires an HBA driver to be loaded */
#define REQ_ASPI_TRAN 0x08 /* Requires an ASPI Transport Modules */
#define REQ_ENGINE 0x10 /* Requires a DPT Engine to be loaded */
#define REQ_COMM_ENG 0x20 /* Requires a DPT Communications Engine */
/* ------------------------------------------------------------------ */
/* Requirements - sigWORD dsFirmware; FLAG BITS */
/* ------------------------------------------------------------------ */
#define dsFirmware dsApplication
#define FW_DNLDSIZE16_OLD 0x0000 /* 0..3 DownLoader Size 16K - TO SUPPORT OLD IMAGES */
#define FW_DNLDSIZE16k 0x0000 /* 0..3 DownLoader Size 16k */
#define FW_DNLDSIZE16 0x0001 /* 0..3 DownLoader Size 16K */
#define FW_DNLDSIZE32 0x0002 /* 0..3 DownLoader Size 32K */
#define FW_DNLDSIZE64 0x0004 /* 0..3 DownLoader Size 64K */
#define FW_DNLDSIZE0 0x000f /* 0..3 DownLoader Size 0K - NONE */
#define FW_DNLDSIZE_NONE 0x000F /* 0..3 DownLoader Size - NONE */
#define dsFirmware dsApplication
#define FW_DNLDSIZE16_OLD 0x0000 /* 0..3 DownLoader Size 16K - TO SUPPORT OLD IMAGES */
#define FW_DNLDSIZE16k 0x0000 /* 0..3 DownLoader Size 16k */
#define FW_DNLDSIZE16 0x0001 /* 0..3 DownLoader Size 16K */
#define FW_DNLDSIZE32 0x0002 /* 0..3 DownLoader Size 32K */
#define FW_DNLDSIZE64 0x0004 /* 0..3 DownLoader Size 64K */
#define FW_DNLDSIZE0 0x000f /* 0..3 DownLoader Size 0K - NONE */
#define FW_DNLDSIZE_NONE 0x000F /* 0..3 DownLoader Size - NONE */
/* Code Offset is position of the code within the ROM CODE Segment */
#define FW_DNLDR_TOP 0x0000 /* 12 DownLoader Position (0=Top, 1=Bottom) */
#define FW_DNLDR_BTM 0x1000 /* 12 DownLoader Position (0=Top, 1=Bottom) Dominator */
#define FW_DNLDR_TOP 0x0000 /* 12 DownLoader Position (0=Top, 1=Bottom) */
#define FW_DNLDR_BTM 0x1000 /* 12 DownLoader Position (0=Top, 1=Bottom) Dominator */
#define FW_LOAD_BTM 0x0000 /* 13 Code Offset (0=Btm, 1=Top) MIPS */
#define FW_LOAD_TOP 0x2000 /* 13 Code Offset (0=Btm, 1=Top) i960 */
#define FW_LOAD_BTM 0x0000 /* 13 Code Offset (0=Btm, 1=Top) MIPS */
#define FW_LOAD_TOP 0x2000 /* 13 Code Offset (0=Btm, 1=Top) i960 */
#define FW_SIG_VERSION1 0x0000 /* 15..14 Version Bits 0=Ver1 */
#define FW_SIG_VERSION2 0x4000 /* 15..14 Version Bits 1=Ver2 */
#define FW_SIG_VERSION1 0x0000 /* 15..14 Version Bits 0=Ver1 */
#define FW_SIG_VERSION2 0x4000 /* 15..14 Version Bits 1=Ver2 */
/*
0..3 Downloader Size (Value * 16K)
@ -338,42 +338,42 @@ typedef unsigned long sigLONG;
/* Sub System Vendor IDs - The PCI Sub system and vendor IDs for each */
/* Adaptec Raid controller */
/* ------------------------------------------------------------------ */
#define PM1554U2_SUB_ID 0xC0011044
#define PM1654U2_SUB_ID 0xC0021044
#define PM1564U3_1_SUB_ID 0xC0031044
#define PM1564U3_2_SUB_ID 0xC0041044
#define PM1554U2_NOACPI_SUB_ID 0xC0051044
#define PM2554U2_SUB_ID 0xC00A1044
#define PM2654U2_SUB_ID 0xC00B1044
#define PM2664U3_1_SUB_ID 0xC00C1044
#define PM2664U3_2_SUB_ID 0xC00D1044
#define PM2554U2_NOACPI_SUB_ID 0xC00E1044
#define PM2654U2_NOACPI_SUB_ID 0xC00F1044
#define PM3754U2_SUB_ID 0xC0141044
#define PM3755U2B_SUB_ID 0xC0151044
#define PM3755F_SUB_ID 0xC0161044
#define PM3757U2_1_SUB_ID 0xC01E1044
#define PM3757U2_2_SUB_ID 0xC01F1044
#define PM3767U3_2_SUB_ID 0xC0201044
#define PM3767U3_4_SUB_ID 0xC0211044
#define PM2865U3_1_SUB_ID 0xC0281044
#define PM2865U3_2_SUB_ID 0xC0291044
#define PM2865F_SUB_ID 0xC02A1044
#define ADPT2000S_1_SUB_ID 0xC03C1044
#define ADPT2000S_2_SUB_ID 0xC03D1044
#define ADPT2000F_SUB_ID 0xC03E1044
#define ADPT3000S_1_SUB_ID 0xC0461044
#define ADPT3000S_2_SUB_ID 0xC0471044
#define ADPT3000F_SUB_ID 0xC0481044
#define ADPT5000S_1_SUB_ID 0xC0501044
#define ADPT5000S_2_SUB_ID 0xC0511044
#define ADPT5000F_SUB_ID 0xC0521044
#define ADPT1000UDMA_SUB_ID 0xC05A1044
#define ADPT1000UDMA_DAC_SUB_ID 0xC05B1044
#define ADPTI2O_DEVICE_ID 0xa501
#define ADPTDOMINATOR_DEVICE_ID 0xa511
#define ADPTDOMINATOR_SUB_ID_START 0xC0321044
#define ADPTDOMINATOR_SUB_ID_END 0xC03b1044
#define PM1554U2_SUB_ID 0xC0011044
#define PM1654U2_SUB_ID 0xC0021044
#define PM1564U3_1_SUB_ID 0xC0031044
#define PM1564U3_2_SUB_ID 0xC0041044
#define PM1554U2_NOACPI_SUB_ID 0xC0051044
#define PM2554U2_SUB_ID 0xC00A1044
#define PM2654U2_SUB_ID 0xC00B1044
#define PM2664U3_1_SUB_ID 0xC00C1044
#define PM2664U3_2_SUB_ID 0xC00D1044
#define PM2554U2_NOACPI_SUB_ID 0xC00E1044
#define PM2654U2_NOACPI_SUB_ID 0xC00F1044
#define PM3754U2_SUB_ID 0xC0141044
#define PM3755U2B_SUB_ID 0xC0151044
#define PM3755F_SUB_ID 0xC0161044
#define PM3757U2_1_SUB_ID 0xC01E1044
#define PM3757U2_2_SUB_ID 0xC01F1044
#define PM3767U3_2_SUB_ID 0xC0201044
#define PM3767U3_4_SUB_ID 0xC0211044
#define PM2865U3_1_SUB_ID 0xC0281044
#define PM2865U3_2_SUB_ID 0xC0291044
#define PM2865F_SUB_ID 0xC02A1044
#define ADPT2000S_1_SUB_ID 0xC03C1044
#define ADPT2000S_2_SUB_ID 0xC03D1044
#define ADPT2000F_SUB_ID 0xC03E1044
#define ADPT3000S_1_SUB_ID 0xC0461044
#define ADPT3000S_2_SUB_ID 0xC0471044
#define ADPT3000F_SUB_ID 0xC0481044
#define ADPT5000S_1_SUB_ID 0xC0501044
#define ADPT5000S_2_SUB_ID 0xC0511044
#define ADPT5000F_SUB_ID 0xC0521044
#define ADPT1000UDMA_SUB_ID 0xC05A1044
#define ADPT1000UDMA_DAC_SUB_ID 0xC05B1044
#define ADPTI2O_DEVICE_ID 0xa501
#define ADPTDOMINATOR_DEVICE_ID 0xa511
#define ADPTDOMINATOR_SUB_ID_START 0xC0321044
#define ADPTDOMINATOR_SUB_ID_END 0xC03b1044
@ -417,7 +417,7 @@ typedef struct dpt_sig {
#if defined __bsdi__
#ifndef PACK
#define PACK __attribute__ ((packed))
#define PACK __attribute__ ((packed))
#endif
typedef struct dpt_sig_Packed {
char dsSignature[6] PACK; /* ALWAYS "dPtSiG" */
@ -442,7 +442,7 @@ typedef struct dpt_sig_Packed {
/* description (NULL terminated) */
char dsDescription[dsDescription_size] PACK;
} dpt_sig_S_Packed;
#define PACKED_SIG_SIZE sizeof(dpt_sig_S_Packed)
#define PACKED_SIG_SIZE sizeof(dpt_sig_S_Packed)
#endif
/* This line added at Roycroft's request */
/* Microsoft's NT compiler gets confused if you do a pack and don't */

View File

@ -81,7 +81,7 @@
****************************************************************/
#if !defined(I2O_ADPTR_HDR)
#define I2O_ADPTR_HDR
#define I2O_ADPTR_HDR
#if ((defined(KERNEL) || defined(_KERNEL)) && defined(__FreeBSD__))
# if (KERN_VERSION < 3)
@ -94,7 +94,7 @@
#endif
#define I2OADPTR_REV 1_5_1 /* Header file revision string */
#define I2OADPTR_REV 1_5_1 /* Header file revision string */
/*****************************************************************************
@ -144,10 +144,10 @@ PRAGMA_PACK_PUSH
Bus Adapter Class specific functions
*/
#define I2O_HBA_ADAPTER_RESET 0x85
#define I2O_HBA_BUS_QUIESCE 0x8b
#define I2O_HBA_BUS_RESET 0x87
#define I2O_HBA_BUS_SCAN 0x89
#define I2O_HBA_ADAPTER_RESET 0x85
#define I2O_HBA_BUS_QUIESCE 0x8b
#define I2O_HBA_BUS_RESET 0x87
#define I2O_HBA_BUS_SCAN 0x89
/*
@ -167,31 +167,31 @@ PRAGMA_PACK_PUSH
*/
#define I2O_HBA_DSC_MASK 0xFF00
#define I2O_HBA_DSC_MASK 0xFF00
#define I2O_HBA_DSC_SUCCESS 0x0000
#define I2O_HBA_DSC_ADAPTER_BUSY 0x0500
#define I2O_HBA_DSC_COMMAND_TIMEOUT 0x0B00
#define I2O_HBA_DSC_COMPLETE_WITH_ERROR 0x0400
#define I2O_HBA_DSC_FUNCTION_UNAVAILABLE 0x3A00
#define I2O_HBA_DSC_NO_ADAPTER 0x1100
#define I2O_HBA_DSC_PARITY_ERROR_FAILURE 0x0F00
#define I2O_HBA_DSC_PATH_INVALID 0x0700
#define I2O_HBA_DSC_PROVIDE_FAILURE 0x1600
#define I2O_HBA_DSC_QUEUE_FROZEN 0x4000
#define I2O_HBA_DSC_REQUEST_ABORTED 0x0200
#define I2O_HBA_DSC_REQUEST_INVALID 0x0600
#define I2O_HBA_DSC_REQUEST_LENGTH_ERROR 0x1500
#define I2O_HBA_DSC_REQUEST_TERMINATED 0x1800
#define I2O_HBA_DSC_RESOURCE_UNAVAILABLE 0x3400
#define I2O_HBA_DSC_BUS_BUSY 0x3F00
#define I2O_HBA_DSC_BUS_RESET 0x0E00
#define I2O_HBA_DSC_ID_INVALID 0x3900
#define I2O_HBA_DSC_SEQUENCE_FAILURE 0x1400
#define I2O_HBA_DSC_UNABLE_TO_ABORT 0x0300
#define I2O_HBA_DSC_UNABLE_TO_TERMINATE 0x0900
#define I2O_HBA_DSC_UNACKNOWLEDGED_EVENT 0x3500
#define I2O_HBA_DSC_UNEXPECTED_BUS_FREE 0x1300
#define I2O_HBA_DSC_SUCCESS 0x0000
#define I2O_HBA_DSC_ADAPTER_BUSY 0x0500
#define I2O_HBA_DSC_COMMAND_TIMEOUT 0x0B00
#define I2O_HBA_DSC_COMPLETE_WITH_ERROR 0x0400
#define I2O_HBA_DSC_FUNCTION_UNAVAILABLE 0x3A00
#define I2O_HBA_DSC_NO_ADAPTER 0x1100
#define I2O_HBA_DSC_PARITY_ERROR_FAILURE 0x0F00
#define I2O_HBA_DSC_PATH_INVALID 0x0700
#define I2O_HBA_DSC_PROVIDE_FAILURE 0x1600
#define I2O_HBA_DSC_QUEUE_FROZEN 0x4000
#define I2O_HBA_DSC_REQUEST_ABORTED 0x0200
#define I2O_HBA_DSC_REQUEST_INVALID 0x0600
#define I2O_HBA_DSC_REQUEST_LENGTH_ERROR 0x1500
#define I2O_HBA_DSC_REQUEST_TERMINATED 0x1800
#define I2O_HBA_DSC_RESOURCE_UNAVAILABLE 0x3400
#define I2O_HBA_DSC_BUS_BUSY 0x3F00
#define I2O_HBA_DSC_BUS_RESET 0x0E00
#define I2O_HBA_DSC_ID_INVALID 0x3900
#define I2O_HBA_DSC_SEQUENCE_FAILURE 0x1400
#define I2O_HBA_DSC_UNABLE_TO_ABORT 0x0300
#define I2O_HBA_DSC_UNABLE_TO_TERMINATE 0x0900
#define I2O_HBA_DSC_UNACKNOWLEDGED_EVENT 0x3500
#define I2O_HBA_DSC_UNEXPECTED_BUS_FREE 0x1300
@ -239,10 +239,10 @@ typedef struct _I2O_HBA_HIST_STATS_SCALAR {
/* SCSI Type */
#define I2O_SCSI_TYPE_UNKNOWN 0x00
#define I2O_SCSI_TYPE_SCSI_1 0x01
#define I2O_SCSI_TYPE_SCSI_2 0x02
#define I2O_SCSI_TYPE_SCSI_3 0x03
#define I2O_SCSI_TYPE_UNKNOWN 0x00
#define I2O_SCSI_TYPE_SCSI_1 0x01
#define I2O_SCSI_TYPE_SCSI_2 0x02
#define I2O_SCSI_TYPE_SCSI_3 0x03
/* Protection Management */
@ -314,8 +314,8 @@ typedef struct _I2O_HBA_SCSI_BUS_PORT_INFO_SCALAR {
/* SCSI Type */
#define I2O_FCA_TYPE_UNKNOWN 0x00
#define I2O_FCA_TYPE_FCAL 0x01
#define I2O_FCA_TYPE_UNKNOWN 0x00
#define I2O_FCA_TYPE_FCAL 0x01
typedef struct _I2O_HBA_FCA_CONTROLLER_INFO_SCALAR {
U8 FcaType;
@ -363,8 +363,8 @@ typedef struct _I2O_HBA_ADAPTER_RESET_MESSAGE {
typedef U32 I2O_HBQ_FLAGS;
#define I2O_HBQ_FLAG_NORMAL 0x0000
#define I2O_HBQ_FLAG_QUIESCE 0x0001
#define I2O_HBQ_FLAG_NORMAL 0x0000
#define I2O_HBQ_FLAG_QUIESCE 0x0001
typedef struct _I2O_HBA_BUS_QUIESCE_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;

View File

@ -81,7 +81,7 @@
****************************************************************/
#if !defined(I2O_BASE_SCSI_HDR)
#define I2O_BASE_SCSI_HDR
#define I2O_BASE_SCSI_HDR
#if ((defined(KERNEL) || defined(_KERNEL)) && defined(__FreeBSD__))
# if (KERN_VERSION < 3)
@ -94,7 +94,7 @@
#endif
#define I2OBSCSI_REV 1_5_1 /* Header file revision string */
#define I2OBSCSI_REV 1_5_1 /* Header file revision string */
@ -184,61 +184,61 @@ PRAGMA_PACK_PUSH
/* SCSI Device Completion Status Codes (defined by SCSI-2/3)*/
#define I2O_SCSI_DEVICE_DSC_MASK 0x00FF
#define I2O_SCSI_DEVICE_DSC_MASK 0x00FF
#define I2O_SCSI_DSC_SUCCESS 0x0000
#define I2O_SCSI_DSC_CHECK_CONDITION 0x0002
#define I2O_SCSI_DSC_BUSY 0x0008
#define I2O_SCSI_DSC_RESERVATION_CONFLICT 0x0018
#define I2O_SCSI_DSC_COMMAND_TERMINATED 0x0022
#define I2O_SCSI_DSC_TASK_SET_FULL 0x0028
#define I2O_SCSI_DSC_ACA_ACTIVE 0x0030
#define I2O_SCSI_DSC_SUCCESS 0x0000
#define I2O_SCSI_DSC_CHECK_CONDITION 0x0002
#define I2O_SCSI_DSC_BUSY 0x0008
#define I2O_SCSI_DSC_RESERVATION_CONFLICT 0x0018
#define I2O_SCSI_DSC_COMMAND_TERMINATED 0x0022
#define I2O_SCSI_DSC_TASK_SET_FULL 0x0028
#define I2O_SCSI_DSC_ACA_ACTIVE 0x0030
/* SCSI Adapter Status Codes (based on CAM-1) */
#define I2O_SCSI_HBA_DSC_MASK 0xFF00
#define I2O_SCSI_HBA_DSC_MASK 0xFF00
#define I2O_SCSI_HBA_DSC_SUCCESS 0x0000
#define I2O_SCSI_HBA_DSC_SUCCESS 0x0000
#define I2O_SCSI_HBA_DSC_REQUEST_ABORTED 0x0200
#define I2O_SCSI_HBA_DSC_UNABLE_TO_ABORT 0x0300
#define I2O_SCSI_HBA_DSC_COMPLETE_WITH_ERROR 0x0400
#define I2O_SCSI_HBA_DSC_ADAPTER_BUSY 0x0500
#define I2O_SCSI_HBA_DSC_REQUEST_INVALID 0x0600
#define I2O_SCSI_HBA_DSC_PATH_INVALID 0x0700
#define I2O_SCSI_HBA_DSC_DEVICE_NOT_PRESENT 0x0800
#define I2O_SCSI_HBA_DSC_UNABLE_TO_TERMINATE 0x0900
#define I2O_SCSI_HBA_DSC_SELECTION_TIMEOUT 0x0A00
#define I2O_SCSI_HBA_DSC_COMMAND_TIMEOUT 0x0B00
#define I2O_SCSI_HBA_DSC_REQUEST_ABORTED 0x0200
#define I2O_SCSI_HBA_DSC_UNABLE_TO_ABORT 0x0300
#define I2O_SCSI_HBA_DSC_COMPLETE_WITH_ERROR 0x0400
#define I2O_SCSI_HBA_DSC_ADAPTER_BUSY 0x0500
#define I2O_SCSI_HBA_DSC_REQUEST_INVALID 0x0600
#define I2O_SCSI_HBA_DSC_PATH_INVALID 0x0700
#define I2O_SCSI_HBA_DSC_DEVICE_NOT_PRESENT 0x0800
#define I2O_SCSI_HBA_DSC_UNABLE_TO_TERMINATE 0x0900
#define I2O_SCSI_HBA_DSC_SELECTION_TIMEOUT 0x0A00
#define I2O_SCSI_HBA_DSC_COMMAND_TIMEOUT 0x0B00
#define I2O_SCSI_HBA_DSC_MR_MESSAGE_RECEIVED 0x0D00
#define I2O_SCSI_HBA_DSC_SCSI_BUS_RESET 0x0E00
#define I2O_SCSI_HBA_DSC_PARITY_ERROR_FAILURE 0x0F00
#define I2O_SCSI_HBA_DSC_AUTOSENSE_FAILED 0x1000
#define I2O_SCSI_HBA_DSC_NO_ADAPTER 0x1100
#define I2O_SCSI_HBA_DSC_DATA_OVERRUN 0x1200
#define I2O_SCSI_HBA_DSC_UNEXPECTED_BUS_FREE 0x1300
#define I2O_SCSI_HBA_DSC_SEQUENCE_FAILURE 0x1400
#define I2O_SCSI_HBA_DSC_REQUEST_LENGTH_ERROR 0x1500
#define I2O_SCSI_HBA_DSC_PROVIDE_FAILURE 0x1600
#define I2O_SCSI_HBA_DSC_BDR_MESSAGE_SENT 0x1700
#define I2O_SCSI_HBA_DSC_REQUEST_TERMINATED 0x1800
#define I2O_SCSI_HBA_DSC_MR_MESSAGE_RECEIVED 0x0D00
#define I2O_SCSI_HBA_DSC_SCSI_BUS_RESET 0x0E00
#define I2O_SCSI_HBA_DSC_PARITY_ERROR_FAILURE 0x0F00
#define I2O_SCSI_HBA_DSC_AUTOSENSE_FAILED 0x1000
#define I2O_SCSI_HBA_DSC_NO_ADAPTER 0x1100
#define I2O_SCSI_HBA_DSC_DATA_OVERRUN 0x1200
#define I2O_SCSI_HBA_DSC_UNEXPECTED_BUS_FREE 0x1300
#define I2O_SCSI_HBA_DSC_SEQUENCE_FAILURE 0x1400
#define I2O_SCSI_HBA_DSC_REQUEST_LENGTH_ERROR 0x1500
#define I2O_SCSI_HBA_DSC_PROVIDE_FAILURE 0x1600
#define I2O_SCSI_HBA_DSC_BDR_MESSAGE_SENT 0x1700
#define I2O_SCSI_HBA_DSC_REQUEST_TERMINATED 0x1800
#define I2O_SCSI_HBA_DSC_IDE_MESSAGE_SENT 0x3300
#define I2O_SCSI_HBA_DSC_RESOURCE_UNAVAILABLE 0x3400
#define I2O_SCSI_HBA_DSC_UNACKNOWLEDGED_EVENT 0x3500
#define I2O_SCSI_HBA_DSC_MESSAGE_RECEIVED 0x3600
#define I2O_SCSI_HBA_DSC_INVALID_CDB 0x3700
#define I2O_SCSI_HBA_DSC_LUN_INVALID 0x3800
#define I2O_SCSI_HBA_DSC_SCSI_TID_INVALID 0x3900
#define I2O_SCSI_HBA_DSC_FUNCTION_UNAVAILABLE 0x3A00
#define I2O_SCSI_HBA_DSC_NO_NEXUS 0x3B00
#define I2O_SCSI_HBA_DSC_SCSI_IID_INVALID 0x3C00
#define I2O_SCSI_HBA_DSC_CDB_RECEIVED 0x3D00
#define I2O_SCSI_HBA_DSC_LUN_ALREADY_ENABLED 0x3E00
#define I2O_SCSI_HBA_DSC_BUS_BUSY 0x3F00
#define I2O_SCSI_HBA_DSC_IDE_MESSAGE_SENT 0x3300
#define I2O_SCSI_HBA_DSC_RESOURCE_UNAVAILABLE 0x3400
#define I2O_SCSI_HBA_DSC_UNACKNOWLEDGED_EVENT 0x3500
#define I2O_SCSI_HBA_DSC_MESSAGE_RECEIVED 0x3600
#define I2O_SCSI_HBA_DSC_INVALID_CDB 0x3700
#define I2O_SCSI_HBA_DSC_LUN_INVALID 0x3800
#define I2O_SCSI_HBA_DSC_SCSI_TID_INVALID 0x3900
#define I2O_SCSI_HBA_DSC_FUNCTION_UNAVAILABLE 0x3A00
#define I2O_SCSI_HBA_DSC_NO_NEXUS 0x3B00
#define I2O_SCSI_HBA_DSC_SCSI_IID_INVALID 0x3C00
#define I2O_SCSI_HBA_DSC_CDB_RECEIVED 0x3D00
#define I2O_SCSI_HBA_DSC_LUN_ALREADY_ENABLED 0x3E00
#define I2O_SCSI_HBA_DSC_BUS_BUSY 0x3F00
#define I2O_SCSI_HBA_DSC_QUEUE_FROZEN 0x4000
#define I2O_SCSI_HBA_DSC_QUEUE_FROZEN 0x4000
/****************************************************************************/
@ -259,100 +259,100 @@ PRAGMA_PACK_PUSH
/* Device Type */
#define I2O_SCSI_DEVICE_TYPE_DIRECT 0x00
#define I2O_SCSI_DEVICE_TYPE_SEQUENTIAL 0x01
#define I2O_SCSI_DEVICE_TYPE_PRINTER 0x02
#define I2O_SCSI_DEVICE_TYPE_PROCESSOR 0x03
#define I2O_SCSI_DEVICE_TYPE_WORM 0x04
#define I2O_SCSI_DEVICE_TYPE_CDROM 0x05
#define I2O_SCSI_DEVICE_TYPE_SCANNER 0x06
#define I2O_SCSI_DEVICE_TYPE_OPTICAL 0x07
#define I2O_SCSI_DEVICE_TYPE_MEDIA_CHANGER 0x08
#define I2O_SCSI_DEVICE_TYPE_COMM 0x09
#define I2O_SCSI_DEVICE_GRAPHICS_1 0x0A
#define I2O_SCSI_DEVICE_GRAPHICS_2 0x0B
#define I2O_SCSI_DEVICE_TYPE_ARRAY_CONT 0x0C
#define I2O_SCSI_DEVICE_TYPE_SES 0x0D
#define I2O_SCSI_DEVICE_TYPE_UNKNOWN 0x1F
#define I2O_SCSI_DEVICE_TYPE_DIRECT 0x00
#define I2O_SCSI_DEVICE_TYPE_SEQUENTIAL 0x01
#define I2O_SCSI_DEVICE_TYPE_PRINTER 0x02
#define I2O_SCSI_DEVICE_TYPE_PROCESSOR 0x03
#define I2O_SCSI_DEVICE_TYPE_WORM 0x04
#define I2O_SCSI_DEVICE_TYPE_CDROM 0x05
#define I2O_SCSI_DEVICE_TYPE_SCANNER 0x06
#define I2O_SCSI_DEVICE_TYPE_OPTICAL 0x07
#define I2O_SCSI_DEVICE_TYPE_MEDIA_CHANGER 0x08
#define I2O_SCSI_DEVICE_TYPE_COMM 0x09
#define I2O_SCSI_DEVICE_GRAPHICS_1 0x0A
#define I2O_SCSI_DEVICE_GRAPHICS_2 0x0B
#define I2O_SCSI_DEVICE_TYPE_ARRAY_CONT 0x0C
#define I2O_SCSI_DEVICE_TYPE_SES 0x0D
#define I2O_SCSI_DEVICE_TYPE_UNKNOWN 0x1F
/* Flags */
#define I2O_SCSI_PERIPHERAL_TYPE_FLAG 0x01
#define I2O_SCSI_PERIPHERAL_TYPE_PARALLEL 0x00
#define I2O_SCSI_PERIPHERAL_TYPE_SERIAL 0x01
#define I2O_SCSI_PERIPHERAL_TYPE_FLAG 0x01
#define I2O_SCSI_PERIPHERAL_TYPE_PARALLEL 0x00
#define I2O_SCSI_PERIPHERAL_TYPE_SERIAL 0x01
#define I2O_SCSI_RESERVED_FLAG 0x02
#define I2O_SCSI_RESERVED_FLAG 0x02
#define I2O_SCSI_DISCONNECT_FLAG 0x04
#define I2O_SCSI_DISABLE_DISCONNECT 0x00
#define I2O_SCSI_ENABLE_DISCONNECT 0x04
#define I2O_SCSI_DISCONNECT_FLAG 0x04
#define I2O_SCSI_DISABLE_DISCONNECT 0x00
#define I2O_SCSI_ENABLE_DISCONNECT 0x04
#define I2O_SCSI_MODE_MASK 0x18
#define I2O_SCSI_MODE_SET_DATA 0x00
#define I2O_SCSI_MODE_SET_DEFAULT 0x08
#define I2O_SCSI_MODE_SET_SAFEST 0x10
#define I2O_SCSI_MODE_MASK 0x18
#define I2O_SCSI_MODE_SET_DATA 0x00
#define I2O_SCSI_MODE_SET_DEFAULT 0x08
#define I2O_SCSI_MODE_SET_SAFEST 0x10
#define I2O_SCSI_DATA_WIDTH_MASK 0x60
#define I2O_SCSI_DATA_WIDTH_8 0x00
#define I2O_SCSI_DATA_WIDTH_16 0x20
#define I2O_SCSI_DATA_WIDTH_32 0x40
#define I2O_SCSI_DATA_WIDTH_MASK 0x60
#define I2O_SCSI_DATA_WIDTH_8 0x00
#define I2O_SCSI_DATA_WIDTH_16 0x20
#define I2O_SCSI_DATA_WIDTH_32 0x40
#define I2O_SCSI_SYNC_NEGOTIATION_FLAG 0x80
#define I2O_SCSI_DISABLE_SYNC_NEGOTIATION 0x00
#define I2O_SCSI_ENABLE_SYNC_NEGOTIATION 0x80
#define I2O_SCSI_SYNC_NEGOTIATION_FLAG 0x80
#define I2O_SCSI_DISABLE_SYNC_NEGOTIATION 0x00
#define I2O_SCSI_ENABLE_SYNC_NEGOTIATION 0x80
/* - 0001h - SCSI Device Bus Port Info Parameters Group defines */
/* Physical */
#define I2O_SCSI_PORT_PHYS_OTHER 0x01
#define I2O_SCSI_PORT_PHYS_UNKNOWN 0x02
#define I2O_SCSI_PORT_PHYS_PARALLEL 0x03
#define I2O_SCSI_PORT_PHYS_FIBRE_CHANNEL 0x04
#define I2O_SCSI_PORT_PHYS_SERIAL_P1394 0x05
#define I2O_SCSI_PORT_PHYS_SERIAL_SSA 0x06
#define I2O_SCSI_PORT_PHYS_OTHER 0x01
#define I2O_SCSI_PORT_PHYS_UNKNOWN 0x02
#define I2O_SCSI_PORT_PHYS_PARALLEL 0x03
#define I2O_SCSI_PORT_PHYS_FIBRE_CHANNEL 0x04
#define I2O_SCSI_PORT_PHYS_SERIAL_P1394 0x05
#define I2O_SCSI_PORT_PHYS_SERIAL_SSA 0x06
/* Electrical */
#define I2O_SCSI_PORT_ELEC_OTHER 0x01
#define I2O_SCSI_PORT_ELEC_UNKNOWN 0x02
#define I2O_SCSI_PORT_ELEC_SINGLE_ENDED 0x03
#define I2O_SCSI_PORT_ELEC_DIFFERENTIAL 0x04
#define I2O_SCSI_PORT_ELEC_LOW_VOLT_DIFF 0x05
#define I2O_SCSI_PORT_ELEC_OPTICAL 0x06
#define I2O_SCSI_PORT_ELEC_OTHER 0x01
#define I2O_SCSI_PORT_ELEC_UNKNOWN 0x02
#define I2O_SCSI_PORT_ELEC_SINGLE_ENDED 0x03
#define I2O_SCSI_PORT_ELEC_DIFFERENTIAL 0x04
#define I2O_SCSI_PORT_ELEC_LOW_VOLT_DIFF 0x05
#define I2O_SCSI_PORT_ELEC_OPTICAL 0x06
/* Isochronous */
#define I2O_SCSI_PORT_ISOC_NO 0x00
#define I2O_SCSI_PORT_ISOC_YES 0x01
#define I2O_SCSI_PORT_ISOC_UNKNOWN 0x02
#define I2O_SCSI_PORT_ISOC_NO 0x00
#define I2O_SCSI_PORT_ISOC_YES 0x01
#define I2O_SCSI_PORT_ISOC_UNKNOWN 0x02
/* Connector Type */
#define I2O_SCSI_PORT_CONN_OTHER 0x01
#define I2O_SCSI_PORT_CONN_UNKNOWN 0x02
#define I2O_SCSI_PORT_CONN_NONE 0x03
#define I2O_SCSI_PORT_CONN_SHIELDED_A_HD 0x04
#define I2O_SCSI_PORT_CONN_UNSHIELDED_A_HD 0x05
#define I2O_SCSI_PORT_CONN_SHIELDED_A_LD 0x06
#define I2O_SCSI_PORT_CONN_UNSHIELDED_A_LD 0x07
#define I2O_SCSI_PORT_CONN_SHIELDED_P_HD 0x08
#define I2O_SCSI_PORT_CONN_UNSHIELDED_P_HD 0x09
#define I2O_SCSI_PORT_CONN_SCA_I 0x0A
#define I2O_SCSI_PORT_CONN_SCA_II 0x0B
#define I2O_SCSI_PORT_CONN_FC_DB9 0x0C
#define I2O_SCSI_PORT_CONN_FC_FIBRE 0x0D
#define I2O_SCSI_PORT_CONN_FC_SCA_II_40 0x0E
#define I2O_SCSI_PORT_CONN_FC_SCA_II_20 0x0F
#define I2O_SCSI_PORT_CONN_FC_BNC 0x10
#define I2O_SCSI_PORT_CONN_OTHER 0x01
#define I2O_SCSI_PORT_CONN_UNKNOWN 0x02
#define I2O_SCSI_PORT_CONN_NONE 0x03
#define I2O_SCSI_PORT_CONN_SHIELDED_A_HD 0x04
#define I2O_SCSI_PORT_CONN_UNSHIELDED_A_HD 0x05
#define I2O_SCSI_PORT_CONN_SHIELDED_A_LD 0x06
#define I2O_SCSI_PORT_CONN_UNSHIELDED_A_LD 0x07
#define I2O_SCSI_PORT_CONN_SHIELDED_P_HD 0x08
#define I2O_SCSI_PORT_CONN_UNSHIELDED_P_HD 0x09
#define I2O_SCSI_PORT_CONN_SCA_I 0x0A
#define I2O_SCSI_PORT_CONN_SCA_II 0x0B
#define I2O_SCSI_PORT_CONN_FC_DB9 0x0C
#define I2O_SCSI_PORT_CONN_FC_FIBRE 0x0D
#define I2O_SCSI_PORT_CONN_FC_SCA_II_40 0x0E
#define I2O_SCSI_PORT_CONN_FC_SCA_II_20 0x0F
#define I2O_SCSI_PORT_CONN_FC_BNC 0x10
/* Connector Gender */
#define I2O_SCSI_PORT_CONN_GENDER_OTHER 0x01
#define I2O_SCSI_PORT_CONN_GENDER_UNKOWN 0x02
#define I2O_SCSI_PORT_CONN_GENDER_FEMALE 0x03
#define I2O_SCSI_PORT_CONN_GENDER_MALE 0x04
#define I2O_SCSI_PORT_CONN_GENDER_OTHER 0x01
#define I2O_SCSI_PORT_CONN_GENDER_UNKOWN 0x02
#define I2O_SCSI_PORT_CONN_GENDER_FEMALE 0x03
#define I2O_SCSI_PORT_CONN_GENDER_MALE 0x04
/* SCSI Device Group 0000h - Device Information Parameter Group */
@ -392,7 +392,7 @@ typedef struct _I2O_SCSI_BUS_PORT_INFO_SCALAR {
/* I2O SCSI Peripheral Event Indicator Assignment */
#define I2O_SCSI_EVENT_SCSI_SMART 0x00000010
#define I2O_SCSI_EVENT_SCSI_SMART 0x00000010
/****************************************************************************/
@ -417,9 +417,9 @@ typedef struct _I2O_SCSI_SUCCESS_REPLY_MESSAGE_FRAME {
/* I2O SCSI Peripheral Error Report Reply Message Frame */
#ifdef _WIN64
#define I2O_SCSI_SENSE_DATA_SZ 44
#define I2O_SCSI_SENSE_DATA_SZ 44
#else
#define I2O_SCSI_SENSE_DATA_SZ 40
#define I2O_SCSI_SENSE_DATA_SZ 40
#endif
typedef struct _I2O_SCSI_ERROR_REPLY_MESSAGE_FRAME {
@ -459,24 +459,24 @@ typedef struct _I2O_SCSI_SCB_ABORT_MESSAGE {
typedef U16 I2O_SCB_FLAGS;
#define I2O_SCB_FLAG_XFER_DIR_MASK 0xC000
#define I2O_SCB_FLAG_NO_DATA_XFER 0x0000
#define I2O_SCB_FLAG_XFER_FROM_DEVICE 0x4000
#define I2O_SCB_FLAG_XFER_TO_DEVICE 0x8000
#define I2O_SCB_FLAG_XFER_DIR_MASK 0xC000
#define I2O_SCB_FLAG_NO_DATA_XFER 0x0000
#define I2O_SCB_FLAG_XFER_FROM_DEVICE 0x4000
#define I2O_SCB_FLAG_XFER_TO_DEVICE 0x8000
#define I2O_SCB_FLAG_ENABLE_DISCONNECT 0x2000
#define I2O_SCB_FLAG_ENABLE_DISCONNECT 0x2000
#define I2O_SCB_FLAG_TAG_TYPE_MASK 0x0380
#define I2O_SCB_FLAG_NO_TAG_QUEUEING 0x0000
#define I2O_SCB_FLAG_SIMPLE_QUEUE_TAG 0x0080
#define I2O_SCB_FLAG_HEAD_QUEUE_TAG 0x0100
#define I2O_SCB_FLAG_ORDERED_QUEUE_TAG 0x0180
#define I2O_SCB_FLAG_ACA_QUEUE_TAG 0x0200
#define I2O_SCB_FLAG_TAG_TYPE_MASK 0x0380
#define I2O_SCB_FLAG_NO_TAG_QUEUEING 0x0000
#define I2O_SCB_FLAG_SIMPLE_QUEUE_TAG 0x0080
#define I2O_SCB_FLAG_HEAD_QUEUE_TAG 0x0100
#define I2O_SCB_FLAG_ORDERED_QUEUE_TAG 0x0180
#define I2O_SCB_FLAG_ACA_QUEUE_TAG 0x0200
#define I2O_SCB_FLAG_AUTOSENSE_MASK 0x0060
#define I2O_SCB_FLAG_DISABLE_AUTOSENSE 0x0000
#define I2O_SCB_FLAG_SENSE_DATA_IN_MESSAGE 0x0020
#define I2O_SCB_FLAG_SENSE_DATA_IN_BUFFER 0x0060
#define I2O_SCB_FLAG_AUTOSENSE_MASK 0x0060
#define I2O_SCB_FLAG_DISABLE_AUTOSENSE 0x0000
#define I2O_SCB_FLAG_SENSE_DATA_IN_MESSAGE 0x0020
#define I2O_SCB_FLAG_SENSE_DATA_IN_BUFFER 0x0060
typedef struct _I2O_SCSI_SCB_EXECUTE_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;

File diff suppressed because it is too large Load Diff

View File

@ -8,9 +8,9 @@
****************************************************************/
#if !defined(I2O_DPT_HDR)
#define I2O_DPT_HDR
#define I2O_DPT_HDR
#define DPT_ORGANIZATION_ID 0x1B /* For Private Messages */
#define DPT_ORGANIZATION_ID 0x1B /* For Private Messages */
/*
* PrivateMessageFrame.StdMessageFrame.Function = I2O_PRIVATE_MESSAGE
@ -62,10 +62,10 @@ typedef struct _PRIVATE_SCSI_SCB_EXECUTE_MESSAGE {
* Flash messages should be targeted to the Executive TID 0x000
*/
#define PRIVATE_FLASH_REGION_SIZE 0x0100
#define PRIVATE_FLASH_REGION_READ 0x0101
#define PRIVATE_FLASH_REGION_WRITE 0x0102
#define PRIVATE_FLASH_REGION_CRC 0x0103
#define PRIVATE_FLASH_REGION_SIZE 0x0100
#define PRIVATE_FLASH_REGION_READ 0x0101
#define PRIVATE_FLASH_REGION_WRITE 0x0102
#define PRIVATE_FLASH_REGION_CRC 0x0103
typedef struct _PRIVATE_FLASH_REGION_MESSAGE {
I2O_PRIVATE_MESSAGE_FRAME PrivateMessageFrame;
@ -77,10 +77,10 @@ typedef struct _PRIVATE_FLASH_REGION_MESSAGE {
/* DPT Driver Printf message */
#define PRIVATE_DRIVER_PRINTF 0x0200
#define PRIVATE_DRIVER_PRINTF 0x0200
/* FwPrintFlags */
#define FW_FIRMWARE_FLAGS_NO_HEADER_B 0x00000001 /* Remove date header */
#define FW_FIRMWARE_FLAGS_NO_HEADER_B 0x00000001 /* Remove date header */
typedef struct _PRIVATE_DRIVER_PRINTF_MESSAGE {
@ -95,7 +95,7 @@ typedef struct _PRIVATE_DRIVER_PRINTF_MESSAGE {
/* DPT Enable Diagnostics message 0x0201 */
#define PRIVATE_DIAG_ENABLE 0x0201
#define PRIVATE_DIAG_ENABLE 0x0201
typedef struct _PRIVATE_DIAG_ENABLE_MESSAGE {
I2O_PRIVATE_MESSAGE_FRAME PrivateMessageFrame;
@ -103,8 +103,8 @@ typedef struct _PRIVATE_DIAG_ENABLE_MESSAGE {
/* DPT Driver Get/Put message */
#define PRIVATE_DRIVER_GET 0x300
#define PRIVATE_DRIVER_PUT 0x301
#define PRIVATE_DRIVER_GET 0x300
#define PRIVATE_DRIVER_PUT 0x301
typedef struct _PRIVATE_DRIVER_GETPUT_MESSAGE
{
@ -128,46 +128,46 @@ typedef struct _PRIVATE_DRIVER_GETPUT_MESSAGE
/* Device Type */
#define I2O_DPT_DEVICE_TYPE_DIRECT I2O_SCSI_DEVICE_TYPE_DIRECT
#define I2O_DPT_DEVICE_TYPE_SEQUENTIAL I2O_SCSI_DEVICE_TYPE_SEQUENTIAL
#define I2O_DPT_DEVICE_TYPE_PRINTER I2O_SCSI_DEVICE_TYPE_PRINTER
#define I2O_DPT_DEVICE_TYPE_PROCESSOR I2O_SCSI_DEVICE_TYPE_PROCESSOR
#define I2O_DPT_DEVICE_TYPE_WORM I2O_SCSI_DEVICE_TYPE_WORM
#define I2O_DPT_DEVICE_TYPE_CDROM I2O_SCSI_DEVICE_TYPE_CDROM
#define I2O_DPT_DEVICE_TYPE_SCANNER I2O_SCSI_DEVICE_TYPE_SCANNER
#define I2O_DPT_DEVICE_TYPE_OPTICAL I2O_SCSI_DEVICE_TYPE_OPTICAL
#define I2O_DPT_DEVICE_TYPE_MEDIA_CHANGER I2O_SCSI_DEVICE_TYPE_MEDIA_CHANGER
#define I2O_DPT_DEVICE_TYPE_COMM I2O_SCSI_DEVICE_TYPE_COMM
#define I2O_DPT_DEVICE_GRAPHICS_1 I2O_SCSI_DEVICE_GRAPHICS_1
#define I2O_DPT_DEVICE_GRAPHICS_2 I2O_SCSI_DEVICE_GRAPHICS_2
#define I2O_DPT_DEVICE_TYPE_ARRAY_CONT I2O_SCSI_DEVICE_TYPE_ARRAY_CONT
#define I2O_DPT_DEVICE_TYPE_UNKNOWN I2O_SCSI_DEVICE_TYPE_UNKNOWN
#define I2O_DPT_DEVICE_TYPE_DIRECT I2O_SCSI_DEVICE_TYPE_DIRECT
#define I2O_DPT_DEVICE_TYPE_SEQUENTIAL I2O_SCSI_DEVICE_TYPE_SEQUENTIAL
#define I2O_DPT_DEVICE_TYPE_PRINTER I2O_SCSI_DEVICE_TYPE_PRINTER
#define I2O_DPT_DEVICE_TYPE_PROCESSOR I2O_SCSI_DEVICE_TYPE_PROCESSOR
#define I2O_DPT_DEVICE_TYPE_WORM I2O_SCSI_DEVICE_TYPE_WORM
#define I2O_DPT_DEVICE_TYPE_CDROM I2O_SCSI_DEVICE_TYPE_CDROM
#define I2O_DPT_DEVICE_TYPE_SCANNER I2O_SCSI_DEVICE_TYPE_SCANNER
#define I2O_DPT_DEVICE_TYPE_OPTICAL I2O_SCSI_DEVICE_TYPE_OPTICAL
#define I2O_DPT_DEVICE_TYPE_MEDIA_CHANGER I2O_SCSI_DEVICE_TYPE_MEDIA_CHANGER
#define I2O_DPT_DEVICE_TYPE_COMM I2O_SCSI_DEVICE_TYPE_COMM
#define I2O_DPT_DEVICE_GRAPHICS_1 I2O_SCSI_DEVICE_GRAPHICS_1
#define I2O_DPT_DEVICE_GRAPHICS_2 I2O_SCSI_DEVICE_GRAPHICS_2
#define I2O_DPT_DEVICE_TYPE_ARRAY_CONT I2O_SCSI_DEVICE_TYPE_ARRAY_CONT
#define I2O_DPT_DEVICE_TYPE_UNKNOWN I2O_SCSI_DEVICE_TYPE_UNKNOWN
/* Flags */
#define I2O_DPT_PERIPHERAL_TYPE_FLAG I2O_SCSI_PERIPHERAL_TYPE_FLAG
#define I2O_DPT_PERIPHERAL_TYPE_PARALLEL I2O_SCSI_PERIPHERAL_TYPE_PARALLEL
#define I2O_DPT_PERIPHERAL_TYPE_SERIAL I2O_SCSI_PERIPHERAL_TYPE_SERIAL
#define I2O_DPT_PERIPHERAL_TYPE_FLAG I2O_SCSI_PERIPHERAL_TYPE_FLAG
#define I2O_DPT_PERIPHERAL_TYPE_PARALLEL I2O_SCSI_PERIPHERAL_TYPE_PARALLEL
#define I2O_DPT_PERIPHERAL_TYPE_SERIAL I2O_SCSI_PERIPHERAL_TYPE_SERIAL
#define I2O_DPT_RESERVED_FLAG I2O_SCSI_RESERVED_FLAG
#define I2O_DPT_RESERVED_FLAG I2O_SCSI_RESERVED_FLAG
#define I2O_DPT_DISCONNECT_FLAG I2O_SCSI_DISCONNECT_FLAG
#define I2O_DPT_DISABLE_DISCONNECT I2O_SCSI_DISABLE_DISCONNECT
#define I2O_DPT_ENABLE_DISCONNECT I2O_SCSI_ENABLE_DISCONNECT
#define I2O_DPT_DISCONNECT_FLAG I2O_SCSI_DISCONNECT_FLAG
#define I2O_DPT_DISABLE_DISCONNECT I2O_SCSI_DISABLE_DISCONNECT
#define I2O_DPT_ENABLE_DISCONNECT I2O_SCSI_ENABLE_DISCONNECT
#define I2O_DPT_MODE_MASK I2O_SCSI_MODE_MASK
#define I2O_DPT_MODE_SET_DATA I2O_SCSI_MODE_SET_DATA
#define I2O_DPT_MODE_SET_DEFAULT I2O_SCSI_MODE_SET_DEFAULT
#define I2O_DPT_MODE_SET_SAFEST I2O_SCSI_MODE_SET_SAFEST
#define I2O_DPT_MODE_MASK I2O_SCSI_MODE_MASK
#define I2O_DPT_MODE_SET_DATA I2O_SCSI_MODE_SET_DATA
#define I2O_DPT_MODE_SET_DEFAULT I2O_SCSI_MODE_SET_DEFAULT
#define I2O_DPT_MODE_SET_SAFEST I2O_SCSI_MODE_SET_SAFEST
#define I2O_DPT_DATA_WIDTH_MASK I2O_SCSI_DATA_WIDTH_MASK
#define I2O_DPT_DATA_WIDTH_8 I2O_SCSI_DATA_WIDTH_8
#define I2O_DPT_DATA_WIDTH_16 I2O_SCSI_DATA_WIDTH_16
#define I2O_DPT_DATA_WIDTH_32 I2O_SCSI_DATA_WIDTH_32
#define I2O_DPT_DATA_WIDTH_MASK I2O_SCSI_DATA_WIDTH_MASK
#define I2O_DPT_DATA_WIDTH_8 I2O_SCSI_DATA_WIDTH_8
#define I2O_DPT_DATA_WIDTH_16 I2O_SCSI_DATA_WIDTH_16
#define I2O_DPT_DATA_WIDTH_32 I2O_SCSI_DATA_WIDTH_32
#define I2O_DPT_SYNC_NEGOTIATION_FLAG I2O_SCSI_SYNC_NEGOTIATION_FLAG
#define I2O_DPT_DISABLE_SYNC_NEGOTIATION I2O_SCSI_DISABLE_SYNC_NEGOTIATION
#define I2O_DPT_ENABLE_SYNC_NEGOTIATION I2O_SCSI_ENABLE_SYNC_NEGOTIATION
#define I2O_DPT_SYNC_NEGOTIATION_FLAG I2O_SCSI_SYNC_NEGOTIATION_FLAG
#define I2O_DPT_DISABLE_SYNC_NEGOTIATION I2O_SCSI_DISABLE_SYNC_NEGOTIATION
#define I2O_DPT_ENABLE_SYNC_NEGOTIATION I2O_SCSI_ENABLE_SYNC_NEGOTIATION
/* DPT Device Group 8000h - Device Information Parameter Group */
@ -180,7 +180,7 @@ typedef struct _I2O_DPT_DEVICE_INFO_SCALAR {
} I2O_DPT_DEVICE_INFO_SCALAR, *PI2O_DPT_DEVICE_INFO_SCALAR;
#define I2O_DPT_EXEC_IOP_BUFFERS_GROUP_NO 0x8000
#define I2O_DPT_EXEC_IOP_BUFFERS_GROUP_NO 0x8000
/* DPT Exec Iop Buffers Group 8000h */

View File

@ -88,9 +88,9 @@
**********************************************************************/
#if !defined(I2O_EXECUTIVE_HDR)
#define I2O_EXECUTIVE_HDR
#define I2O_EXECUTIVE_HDR
#define I2OEXEC_REV 1_5_4 /* I2OExec header file revision string */
#define I2OEXEC_REV 1_5_4 /* I2OExec header file revision string */
#if ((defined(KERNEL) || defined(_KERNEL)) && defined(__FreeBSD__))
# if (!defined(KERN_VERSION))
@ -930,13 +930,13 @@ typedef struct _I2O_EXEC_SYS_QUIESCE_MESSAGE {
/* ExecSysTabSet (System Table) Function Message Frame structure. */
#define I2O_EXEC_SYS_TAB_IOP_ID_LOCAL_IOP 0x000
#define I2O_EXEC_SYS_TAB_IOP_ID_LOCAL_HOST 0x001
#define I2O_EXEC_SYS_TAB_IOP_ID_UNKNOWN_IOP 0xFFF
#define I2O_EXEC_SYS_TAB_HOST_UNIT_ID_LOCAL_UNIT 0x0000
#define I2O_EXEC_SYS_TAB_HOST_UNIT_ID_UNKNOWN_UNIT 0xffff
#define I2O_EXEC_SYS_TAB_SEG_NUMBER_LOCAL_SEGMENT 0x000
#define I2O_EXEC_SYS_TAB_SEG_NUMBER_UNKNOWN_SEGMENT 0xfff
#define I2O_EXEC_SYS_TAB_IOP_ID_LOCAL_IOP 0x000
#define I2O_EXEC_SYS_TAB_IOP_ID_LOCAL_HOST 0x001
#define I2O_EXEC_SYS_TAB_IOP_ID_UNKNOWN_IOP 0xFFF
#define I2O_EXEC_SYS_TAB_HOST_UNIT_ID_LOCAL_UNIT 0x0000
#define I2O_EXEC_SYS_TAB_HOST_UNIT_ID_UNKNOWN_UNIT 0xffff
#define I2O_EXEC_SYS_TAB_SEG_NUMBER_LOCAL_SEGMENT 0x000
#define I2O_EXEC_SYS_TAB_SEG_NUMBER_UNKNOWN_SEGMENT 0xfff
typedef struct _I2O_EXEC_SYS_TAB_SET_MESSAGE {
I2O_MESSAGE_FRAME StdMessageFrame;

View File

@ -89,9 +89,9 @@
**********************************************************************/
#if !defined(I2O_MESSAGE_HDR)
#define I2O_MESSAGE_HDR
#define I2O_MESSAGE_HDR
#define I2OMSG_REV 1_5_4 /* I2OMsg header file revision string */
#define I2OMSG_REV 1_5_4 /* I2OMsg header file revision string */
/*

View File

@ -81,9 +81,9 @@
****************************************************************/
#ifndef __INCi2otypesh
#define __INCi2otypesh
#define __INCi2otypesh
#define I2OTYPES_REV 1_5_4
#define I2OTYPES_REV 1_5_4
/* include architecture/compiler dependencies */

View File

@ -88,9 +88,9 @@
**********************************************************************/
#if !defined(I2O_UTILITY_HDR)
#define I2O_UTILITY_HDR
#define I2O_UTILITY_HDR
#define I2OUTIL_REV 1_5_4 /* I2OUtil header file revision string */
#define I2OUTIL_REV 1_5_4 /* I2OUtil header file revision string */
#if ((defined(KERNEL) || defined(_KERNEL)) && defined(__FreeBSD__))
# if (KERN_VERSION < 3)

View File

@ -56,60 +56,60 @@
/* Definitions - Defines & Constants ---------------------------------------*/
#define DPT_TurnAroundKey 0x01 /* TurnAround Message Type for engine */
#define DPT_EngineKey 0x02 /* Message Que and Type for engine */
#define DPT_LoggerKey 0x03 /* Message Type For Logger */
#define DPT_CommEngineKey 0x04 /* Message Que Type Created */
#define DPT_TurnAroundKey 0x01 /* TurnAround Message Type for engine */
#define DPT_EngineKey 0x02 /* Message Que and Type for engine */
#define DPT_LoggerKey 0x03 /* Message Type For Logger */
#define DPT_CommEngineKey 0x04 /* Message Que Type Created */
#define MSG_RECEIVE 0x40000000 /* Ored Into Logger PID For Return Msg */
#define MSG_RECEIVE 0x40000000 /* Ored Into Logger PID For Return Msg */
#define ENGMSG_ECHO 0x00 /* Turnarround Echo Engine Message */
#define ENGMSG_OPEN 0x01 /* Turnarround Open Engine Message */
#define ENGMSG_CLOSE 0x02 /* Turnarround Close Engine Message */
#define ENGMSG_ECHO 0x00 /* Turnarround Echo Engine Message */
#define ENGMSG_OPEN 0x01 /* Turnarround Open Engine Message */
#define ENGMSG_CLOSE 0x02 /* Turnarround Close Engine Message */
/* Message Que Creation Flags */
#define MSG_URD 00400
#define MSG_UWR 00200
#define MSG_GRD 00040
#define MSG_GWR 00020
#define MSG_ORD 00004
#define MSG_OWR 00002
#define MSG_ALLRD 00444
#define MSG_ALLWR 00222
#define MSG_URD 00400
#define MSG_UWR 00200
#define MSG_GRD 00040
#define MSG_GWR 00020
#define MSG_ORD 00004
#define MSG_OWR 00002
#define MSG_ALLRD 00444
#define MSG_ALLWR 00222
/* Message Que Creation Flags */
#define SHM_URD 00400
#define SHM_UWR 00200
#define SHM_GRD 00040
#define SHM_GWR 00020
#define SHM_ORD 00004
#define SHM_OWR 00002
#define SHM_ALLRD 00444
#define SHM_ALLWR 00222
#define SHM_URD 00400
#define SHM_UWR 00200
#define SHM_GRD 00040
#define SHM_GWR 00020
#define SHM_ORD 00004
#define SHM_OWR 00002
#define SHM_ALLRD 00444
#define SHM_ALLWR 00222
/* Program Exit Codes */
#define ExitGoodStatus 0
#define ExitBadParameter 1
#define ExitSignalFail 3
#define ExitMsqAllocFail 5
#define ExitBuffAllocFail 6
#define ExitMsgSendFail 8
#define ExitMsgReceiveFail 9
#define ExitGoodStatus 0
#define ExitBadParameter 1
#define ExitSignalFail 3
#define ExitMsqAllocFail 5
#define ExitBuffAllocFail 6
#define ExitMsgSendFail 8
#define ExitMsgReceiveFail 9
#define ExitEngOpenFail 10
#define ExitDuplicateEngine 11
#define ExitEngOpenFail 10
#define ExitDuplicateEngine 11
#define ExitCommAllocFail 12
#define ExitDuplicateCommEng 13
#define ExitCommConnectFail 14
#define ExitCommAllocFail 12
#define ExitDuplicateCommEng 13
#define ExitCommConnectFail 14
#ifndef MAX_HAS
#define MAX_HAS 18
#define MAX_NAME 100
#define MAX_HAS 18
#define MAX_NAME 100
#endif /* ifndef MAX_HAS */
@ -148,19 +148,19 @@ typedef struct {
/* #undef _KERNEL */
#undef MSG_DISCONNECT
#define MSG_DISCONNECT 0x11L
#define MSG_DISCONNECT 0x11L
#define EATAUSRCMD 1
#define DPT_SIGNATURE 2
#define DPT_NUMCTRLS 3
#define DPT_CTRLINFO 4
#define DPT_SYSINFO 5
#define DPT_BLINKLED 6
#define I2OUSRCMD 7
#define EATAUSRCMD 1
#define DPT_SIGNATURE 2
#define DPT_NUMCTRLS 3
#define DPT_CTRLINFO 4
#define DPT_SYSINFO 5
#define DPT_BLINKLED 6
#define I2OUSRCMD 7
/* #define I2ORESCANCMD 8 */ /* Use DPT_IO_ACCESS instead */
/* #define I2ORESETCMD 9 */ /* Use DPT_IO_ACCESS instead */
#define DPT_MAX_DMA_SEGS 32 /* Max used Scatter/Gather seg */
#define DPT_MAX_DMA_SEGS 32 /* Max used Scatter/Gather seg */
struct dpt_sg {
paddr_t data_addr;
@ -187,55 +187,55 @@ typedef struct {
# define _IO(x,y) (0x0fff3900|y)
#endif
/* EATA PassThrough Command */
#define EATAUSRCMD _IOWR('D',65,EATA_CP)
#define EATAUSRCMD _IOWR('D',65,EATA_CP)
/* Get Signature Structure */
#define DPT_SIGNATURE _IOR('D',67,dpt_sig_S)
#define DPT_SIGNATURE _IOR('D',67,dpt_sig_S)
/* Get Number Of DPT Adapters */
#define DPT_NUMCTRLS _IOR('D',68,int)
#define DPT_NUMCTRLS _IOR('D',68,int)
/* Get Adapter Info Structure */
#define DPT_CTRLINFO _IOR('D',69,CtrlInfo)
#define DPT_CTRLINFO _IOR('D',69,CtrlInfo)
/* Get System Info Structure */
#define DPT_SYSINFO _IOR('D',72,sysInfo_S)
#define DPT_SYSINFO _IOR('D',72,sysInfo_S)
/* Get Blink LED Code */
#define DPT_BLINKLED _IOR('D',75,int)
#define DPT_BLINKLED _IOR('D',75,int)
/* Get Statistical information (if available) */
#define DPT_STATS_INFO _IOR('D',80,STATS_DATA)
#define DPT_STATS_INFO _IOR('D',80,STATS_DATA)
/* Clear the statistical information */
#define DPT_STATS_CLEAR _IO('D',81)
#define DPT_STATS_CLEAR _IO('D',81)
/* Send an I2O command */
#define I2OUSRCMD _IO('D',76)
#define I2OUSRCMD _IO('D',76)
/* Inform driver to re-acquire LCT information */
#define I2ORESCANCMD _IO('D',77)
#define I2ORESCANCMD _IO('D',77)
/* Inform driver to reset adapter */
#define I2ORESETCMD _IO('D',78)
#define I2ORESETCMD _IO('D',78)
#elif defined(SNI_MIPS)
/* Unix Ioctl Command definitions */
#define EATAUSRCMD (('D'<<8)|65)
#define DPT_DEBUG (('D'<<8)|66)
#define DPT_SIGNATURE (('D'<<8)|67)
#define DPT_NUMCTRLS (('D'<<8)|68)
#define DPT_CTRLINFO (('D'<<8)|69)
#define DPT_STATINFO (('D'<<8)|70)
#define DPT_CLRSTAT (('D'<<8)|71)
#define DPT_SYSINFO (('D'<<8)|72)
#define EATAUSRCMD (('D'<<8)|65)
#define DPT_DEBUG (('D'<<8)|66)
#define DPT_SIGNATURE (('D'<<8)|67)
#define DPT_NUMCTRLS (('D'<<8)|68)
#define DPT_CTRLINFO (('D'<<8)|69)
#define DPT_STATINFO (('D'<<8)|70)
#define DPT_CLRSTAT (('D'<<8)|71)
#define DPT_SYSINFO (('D'<<8)|72)
/* Set Timeout Value */
#define DPT_TIMEOUT (('D'<<8)|73)
#define DPT_TIMEOUT (('D'<<8)|73)
/* Get config Data */
#define DPT_CONFIG (('D'<<8)|74)
#define DPT_CONFIG (('D'<<8)|74)
/* Get config Data */
#define DPT_BLINKLED (('D'<<8)|75)
#define DPT_BLINKLED (('D'<<8)|75)
/* Get Statistical information (if available) */
#define DPT_STATS_INFO (('D'<<8)|80)
#define DPT_STATS_INFO (('D'<<8)|80)
/* Clear the statistical information */
#define DPT_STATS_CLEAR (('D'<<8)|81)
#define DPT_STATS_CLEAR (('D'<<8)|81)
/* Send an I2O command */
#define I2OUSRCMD (('D'<<8)|76)
#define I2OUSRCMD (('D'<<8)|76)
/* Inform driver to re-acquire LCT information */
#define I2ORESCANCMD (('D'<<8)|77)
#define I2ORESCANCMD (('D'<<8)|77)
/* Inform driver to reset adapter */
#define I2ORESETCMD (('D'<<8)|78)
#define I2ORESETCMD (('D'<<8)|78)
#else
@ -262,45 +262,45 @@ typedef struct {
# define _IO(x,y) (((x)<<8)|y)
#endif
/* EATA PassThrough Command */
#define EATAUSRCMD _IOWR('D',65,EATA_CP)
#define EATAUSRCMD _IOWR('D',65,EATA_CP)
/* Set Debug Level If Enabled */
#define DPT_DEBUG _IOW('D',66,int)
#define DPT_DEBUG _IOW('D',66,int)
/* Get Signature Structure */
#define DPT_SIGNATURE _IOR('D',67,dpt_sig_S)
#define DPT_SIGNATURE _IOR('D',67,dpt_sig_S)
#if defined __bsdi__
#define DPT_SIGNATURE_PACKED _IOR('D',67,dpt_sig_S_Packed)
#define DPT_SIGNATURE_PACKED _IOR('D',67,dpt_sig_S_Packed)
#endif
/* Get Number Of DPT Adapters */
#define DPT_NUMCTRLS _IOR('D',68,int)
#define DPT_NUMCTRLS _IOR('D',68,int)
/* Get Adapter Info Structure */
#define DPT_CTRLINFO _IOR('D',69,CtrlInfo)
#define DPT_CTRLINFO _IOR('D',69,CtrlInfo)
/* Get Statistics If Enabled */
#define DPT_STATINFO _IO('D',70)
#define DPT_STATINFO _IO('D',70)
/* Clear Stats If Enabled */
#define DPT_CLRSTAT _IO('D',71)
#define DPT_CLRSTAT _IO('D',71)
/* Get System Info Structure */
#define DPT_SYSINFO _IOR('D',72,sysInfo_S)
#define DPT_SYSINFO _IOR('D',72,sysInfo_S)
/* Set Timeout Value */
#define DPT_TIMEOUT _IO('D',73)
#define DPT_TIMEOUT _IO('D',73)
/* Get config Data */
#define DPT_CONFIG _IO('D',74)
#define DPT_CONFIG _IO('D',74)
/* Get Blink LED Code */
#define DPT_BLINKLED _IOR('D',75,int)
#define DPT_BLINKLED _IOR('D',75,int)
/* Get Statistical information (if available) */
#define DPT_STATS_INFO _IOR('D',80,STATS_DATA)
#define DPT_STATS_INFO _IOR('D',80,STATS_DATA)
/* Clear the statistical information */
#define DPT_STATS_CLEAR _IO('D',81)
#define DPT_STATS_CLEAR _IO('D',81)
/* Get Performance metrics */
#define DPT_PERF_INFO _IOR('D',82,dpt_perf_t)
#define DPT_PERF_INFO _IOR('D',82,dpt_perf_t)
/* Send an I2O command */
#define I2OUSRCMD _IO('D',76)
#define I2OUSRCMD _IO('D',76)
/* Inform driver to re-acquire LCT information */
#define I2ORESCANCMD _IO('D',77)
#define I2ORESCANCMD _IO('D',77)
/* Inform driver to reset adapter */
#define I2ORESETCMD _IO('D',78)
#define I2ORESETCMD _IO('D',78)
#if defined _DPT_LINUX
/* See if the target is mounted */
#define DPT_TARGET_BUSY _IOR('D',79, TARGET_BUSY_T)
#define DPT_TARGET_BUSY _IOR('D',79, TARGET_BUSY_T)
#endif
@ -308,17 +308,17 @@ typedef struct {
/* Adapter Flags Field Bit Definitions */
#define CTLR_INSTALLED 0x00000001 /* Adapter Was Installed */
#define CTLR_DMA 0x00000002 /* DMA Supported */
#define CTLR_OVERLAP 0x00000004 /* Overlapped Commands Support */
#define CTLR_SECONDARY 0x00000008 /* I/O Address Not 0x1f0 */
#define CTLR_BLINKLED 0x00000010 /* Adapter In Blink LED State */
#define CTLR_HBACI 0x00000020 /* Cache Inhibit Supported */
#define CTLR_CACHE 0x00000040 /* Adapter Has Cache */
#define CTLR_SANE 0x00000080 /* Adapter Functioning OK */
#define CTLR_BUS_QUIET 0x00000100 /* Bus Quite On This Adapter */
#define CTLR_ABOVE_16 0x00000200 /* Support For Mem. Above 16 MB */
#define CTLR_SCAT_GATH 0x00000400 /* Scatter Gather Supported */
#define CTLR_INSTALLED 0x00000001 /* Adapter Was Installed */
#define CTLR_DMA 0x00000002 /* DMA Supported */
#define CTLR_OVERLAP 0x00000004 /* Overlapped Commands Support */
#define CTLR_SECONDARY 0x00000008 /* I/O Address Not 0x1f0 */
#define CTLR_BLINKLED 0x00000010 /* Adapter In Blink LED State */
#define CTLR_HBACI 0x00000020 /* Cache Inhibit Supported */
#define CTLR_CACHE 0x00000040 /* Adapter Has Cache */
#define CTLR_SANE 0x00000080 /* Adapter Functioning OK */
#define CTLR_BUS_QUIET 0x00000100 /* Bus Quite On This Adapter */
#define CTLR_ABOVE_16 0x00000200 /* Support For Mem. Above 16 MB */
#define CTLR_SCAT_GATH 0x00000400 /* Scatter Gather Supported */
/* Definitions - Structure & Typedef ---------------------------------------*/
@ -335,7 +335,7 @@ typedef struct {
uLONG timeOut;
} MsgHdr;
#define MsgDataSize sizeof(MsgHdr) - 4
#define MsgDataSize sizeof(MsgHdr) - 4
#ifndef SNI_MIPS
@ -407,24 +407,24 @@ typedef struct EATACommandPacket {
/* Control Flags 1 Definitions */
#define SCSI_RESET 0x01 /* Cause a SCSI Bus reset on the cmd */
#define HBA_INIT 0x02 /* Cause Controller to reInitialize */
#define AUTO_REQ_SENSE 0x04 /* Do Auto Request Sense on errors */
#define SCATTER_GATHER 0x08 /* Data Ptr points to a SG Packet */
#define INTERPRET 0x20 /* Interpret the SCSI cdb of own use */
#define DATA_OUT 0x04 /* Data Out phase with command */
#define DATA_IN 0x08 /* Data In phase with command */
#define SCSI_RESET 0x01 /* Cause a SCSI Bus reset on the cmd */
#define HBA_INIT 0x02 /* Cause Controller to reInitialize */
#define AUTO_REQ_SENSE 0x04 /* Do Auto Request Sense on errors */
#define SCATTER_GATHER 0x08 /* Data Ptr points to a SG Packet */
#define INTERPRET 0x20 /* Interpret the SCSI cdb of own use */
#define DATA_OUT 0x04 /* Data Out phase with command */
#define DATA_IN 0x08 /* Data In phase with command */
/* Control Flags 2 Definitions */
#define FIRMWARE_NESTED 0x01
#define FIRMWARE_NESTED 0x01
/* Control Flags 3 Definitions */
#define PHYSICAL_UNIT 0x01 /* Send Command Directly To Target */
#define IAT 0x02 /* Inhibit Address Translation */
#define HBACI 0x04 /* Inhibit Caching */
#define PHYSICAL_UNIT 0x01 /* Send Command Directly To Target */
#define IAT 0x02 /* Inhibit Address Translation */
#define HBACI 0x04 /* Inhibit Caching */
/* Structure Returned From Get Controller Info */
@ -477,10 +477,10 @@ typedef struct {
/* SDI ioctl prefix for hba specific ioctl's */
#define SDI_IOC (('S'<<24)|('D'<<16)|('I'<<8))
#define SDI_IOC (('S'<<24)|('D'<<16)|('I'<<8))
#define SDI_HBANAME ((SDI_IOC)|0x14) /* Get HBA module name */
#define SDI_SEND 0x0081 /* Send a SCSI command */
#define SDI_HBANAME ((SDI_IOC)|0x14) /* Get HBA module name */
#define SDI_SEND 0x0081 /* Send a SCSI command */
#else
@ -545,8 +545,8 @@ typedef struct dpt_cfg {
#endif /* _DPT_AIX */
#define MAX_ELEMENT_COUNT 64
#define MAX_BUCKET_COUNT 10
#define MAX_ELEMENT_COUNT 64
#define MAX_BUCKET_COUNT 10
/*
* DPT statistics structure definitions

View File

@ -262,7 +262,7 @@
* We will enclose all structure *
* portability modifications inside *
* #ifdefs. When we are ready, we *
* will #define DPT_PORTABLE to begin *
* will #define DPT_PORTABLE to begin *
* using the modifications. *
*-------------------------------------*/
uLONG netSwap4(uLONG val);
@ -272,11 +272,11 @@ uLONG netSwap4(uLONG val);
/* for big-endian we need to swap */
#ifndef NET_SWAP_2
#define NET_SWAP_2(x) (((x) >> 8) | ((x) << 8))
#define NET_SWAP_2(x) (((x) >> 8) | ((x) << 8))
#endif /* NET_SWAP_2 */
#ifndef NET_SWAP_4
#define NET_SWAP_4(x) netSwap4((x))
#define NET_SWAP_4(x) netSwap4((x))
#endif /* NET_SWAP_4 */
#else
@ -284,11 +284,11 @@ uLONG netSwap4(uLONG val);
/* for little-endian we don't need to do anything */
#ifndef NET_SWAP_2
#define NET_SWAP_2(x) (x)
#define NET_SWAP_2(x) (x)
#endif /* NET_SWAP_2 */
#ifndef NET_SWAP_4
#define NET_SWAP_4(x) (x)
#define NET_SWAP_4(x) (x)
#endif /* NET_SWAP_4 */
#endif /* big endian */
@ -352,9 +352,9 @@ void osdWakeThread(uLONG);
/* osd sleep for x miliseconds */
void osdSleep(uLONG);
#define DPT_THREAD_PRIORITY_LOWEST 0x00
#define DPT_THREAD_PRIORITY_NORMAL 0x01
#define DPT_THREAD_PRIORITY_HIGHEST 0x02
#define DPT_THREAD_PRIORITY_LOWEST 0x00
#define DPT_THREAD_PRIORITY_NORMAL 0x01
#define DPT_THREAD_PRIORITY_HIGHEST 0x02
uCHAR osdSetThreadPriority(uLONG tid, uCHAR priority);

View File

@ -119,24 +119,24 @@
*---------------------------------------------------------------------------*/
/*flags - bit definitions */
#define SI_CMOS_Valid 0x0001
#define SI_NumDrivesValid 0x0002
#define SI_ProcessorValid 0x0004
#define SI_MemorySizeValid 0x0008
#define SI_DriveParamsValid 0x0010
#define SI_SmartROMverValid 0x0020
#define SI_OSversionValid 0x0040
#define SI_OSspecificValid 0x0080 /* 1 if OS structure returned */
#define SI_BusTypeValid 0x0100
#define SI_CMOS_Valid 0x0001
#define SI_NumDrivesValid 0x0002
#define SI_ProcessorValid 0x0004
#define SI_MemorySizeValid 0x0008
#define SI_DriveParamsValid 0x0010
#define SI_SmartROMverValid 0x0020
#define SI_OSversionValid 0x0040
#define SI_OSspecificValid 0x0080 /* 1 if OS structure returned */
#define SI_BusTypeValid 0x0100
#define SI_ALL_VALID 0x0FFF /* All Std SysInfo is valid */
#define SI_NO_SmartROM 0x8000
#define SI_ALL_VALID 0x0FFF /* All Std SysInfo is valid */
#define SI_NO_SmartROM 0x8000
/*busType - definitions */
#define SI_ISA_BUS 0x00
#define SI_MCA_BUS 0x01
#define SI_EISA_BUS 0x02
#define SI_PCI_BUS 0x04
#define SI_ISA_BUS 0x00
#define SI_MCA_BUS 0x01
#define SI_EISA_BUS 0x02
#define SI_PCI_BUS 0x04
#ifdef __cplusplus
struct sysInfo_S {
@ -197,8 +197,8 @@
*---------------------------------------------------------------------------*/
/*flags - bit definitions */
#define DI_DOS_HIGH 0x01 /* DOS is loaded high */
#define DI_DPMI_VALID 0x02 /* DPMI version is valid */
#define DI_DOS_HIGH 0x01 /* DOS is loaded high */
#define DI_DPMI_VALID 0x02 /* DPMI version is valid */
#ifdef __cplusplus
struct DOS_Info_S {
@ -463,16 +463,16 @@ typedef struct dpt_metrics {
u_int32_t write_by_size_max_time[10];
struct timeval write_by_size_total_time[10];
#define SIZE_512 0
#define SIZE_1K 1
#define SIZE_2K 2
#define SIZE_4K 3
#define SIZE_8K 4
#define SIZE_16K 5
#define SIZE_32K 6
#define SIZE_64K 7
#define SIZE_BIGGER 8
#define SIZE_OTHER 9
#define SIZE_512 0
#define SIZE_1K 1
#define SIZE_2K 2
#define SIZE_4K 3
#define SIZE_8K 4
#define SIZE_16K 5
#define SIZE_32K 6
#define SIZE_64K 7
#define SIZE_BIGGER 8
#define SIZE_OTHER 9
struct timeval intr_started;
} dpt_perf_t;