ReactOS  0.4.15-dev-1152-g6c94e4f
isapnphw.h
Go to the documentation of this file.
1 #pragma once
2 
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6 
7 #define ISAPNP_ADDRESS 0x279
8 #define ISAPNP_WRITE_DATA 0xA79
9 
10 #define ISAPNP_READ_PORT_MIN 0x203
11 #define ISAPNP_READ_PORT_START 0x213
12 #define ISAPNP_READ_PORT_MAX 0x3FF
13 #define ISAPNP_READ_PORT_STEP 0x10
14 
15 #define ISAPNP_CSN_MIN 0x01
16 #define ISAPNP_CSN_MAX 0x0F
17 
18 #define ISAPNP_READPORT 0x00
19 #define ISAPNP_SERIALISOLATION 0x01
20 #define ISAPNP_CONFIGCONTROL 0x02
21 #define ISAPNP_WAKE 0x03
22 #define ISAPNP_RESOURCEDATA 0x04
23 #define ISAPNP_STATUS 0x05
24 #define ISAPNP_CARDSELECTNUMBER 0x06
25 #define ISAPNP_LOGICALDEVICENUMBER 0x07
26 
27 #define ISAPNP_ACTIVATE 0x30
28 #define ISAPNP_IORANGECHECK 0x31
29 
30 #define ISAPNP_IOBASE(n) (0x60 + ((n)*2))
31 #define ISAPNP_IRQNO(n) (0x70 + ((n)*2))
32 #define ISAPNP_IRQTYPE(n) (0x71 + ((n) * 2))
33 #define ISAPNP_DMACHANNEL(n) (0x74 + (n))
34 
35 #define ISAPNP_CONFIG_RESET (1 << 0)
36 #define ISAPNP_CONFIG_WAIT_FOR_KEY (1 << 1)
37 #define ISAPNP_CONFIG_RESET_CSN (1 << 2)
38 
39 #define ISAPNP_LFSR_SEED 0x6A
40 
41 #define ISAPNP_IS_SMALL_TAG(t) (!((t) & 0x80))
42 #define ISAPNP_SMALL_TAG_NAME(t) (((t) >> 3) & 0xF)
43 #define ISAPNP_SMALL_TAG_LEN(t) (((t) & 0x7))
44 #define ISAPNP_TAG_PNPVERNO 0x01
45 #define ISAPNP_TAG_LOGDEVID 0x02
46 #define ISAPNP_TAG_COMPATDEVID 0x03
47 #define ISAPNP_TAG_IRQ 0x04
48 #define ISAPNP_TAG_DMA 0x05
49 #define ISAPNP_TAG_STARTDEP 0x06
50 #define ISAPNP_TAG_ENDDEP 0x07
51 #define ISAPNP_TAG_IOPORT 0x08
52 #define ISAPNP_TAG_FIXEDIO 0x09
53 #define ISAPNP_TAG_RSVDSHORTA 0x0A
54 #define ISAPNP_TAG_RSVDSHORTB 0x0B
55 #define ISAPNP_TAG_RSVDSHORTC 0x0C
56 #define ISAPNP_TAG_RSVDSHORTD 0x0D
57 #define ISAPNP_TAG_VENDORSHORT 0x0E
58 #define ISAPNP_TAG_END 0x0F
59 
60 #define ISAPNP_IS_LARGE_TAG(t) (((t) & 0x80))
61 #define ISAPNP_LARGE_TAG_NAME(t) (t)
62 #define ISAPNP_TAG_MEMRANGE 0x81
63 #define ISAPNP_TAG_ANSISTR 0x82
64 #define ISAPNP_TAG_UNICODESTR 0x83
65 #define ISAPNP_TAG_VENDORLONG 0x84
66 #define ISAPNP_TAG_MEM32RANGE 0x85
67 #define ISAPNP_TAG_FIXEDMEM32RANGE 0x86
68 #define ISAPNP_TAG_RSVDLONG0 0xF0
69 #define ISAPNP_TAG_RSVDLONG1 0xF1
70 #define ISAPNP_TAG_RSVDLONG2 0xF2
71 #define ISAPNP_TAG_RSVDLONG3 0xF3
72 #define ISAPNP_TAG_RSVDLONG4 0xF4
73 #define ISAPNP_TAG_RSVDLONG5 0xF5
74 #define ISAPNP_TAG_RSVDLONG6 0xF6
75 #define ISAPNP_TAG_RSVDLONG7 0xF7
76 #define ISAPNP_TAG_RSVDLONG8 0xF8
77 #define ISAPNP_TAG_RSVDLONG9 0xF9
78 #define ISAPNP_TAG_RSVDLONGA 0xFA
79 #define ISAPNP_TAG_RSVDLONGB 0xFB
80 #define ISAPNP_TAG_RSVDLONGC 0xFC
81 #define ISAPNP_TAG_RSVDLONGD 0xFD
82 #define ISAPNP_TAG_RSVDLONGE 0xFE
83 #define ISAPNP_TAG_RSVDLONGF 0xFF
84 #define ISAPNP_TAG_PSEUDO_NEWBOARD 0x100
85 
86 typedef struct _ISAPNP_IDENTIFIER {
92 
93 typedef struct _ISAPNP_LOGDEVID {
98 
99 typedef struct _ISAPNP_DEVICEID {
104 
105 #include <pshpack1.h>
106 
107 typedef struct _ISAPNP_IO_DESCRIPTION {
114 
115 typedef struct _ISAPNP_IRQ_DESCRIPTION {
119 
120 typedef struct _ISAPNP_DMA_DESCRIPTION {
124 
125 #include <poppack.h>
126 
127 #ifdef __cplusplus
128 }
129 #endif
struct _ISAPNP_LOGDEVID * PISAPNP_LOGDEVID
char CHAR
Definition: xmlstorage.h:175
USHORT Flags
Definition: isapnphw.h:96
USHORT ProdId
Definition: isapnphw.h:95
USHORT VendorId
Definition: isapnphw.h:94
struct _ISAPNP_DMA_DESCRIPTION ISAPNP_DMA_DESCRIPTION
unsigned char UCHAR
Definition: xmlstorage.h:181
USHORT VendorId
Definition: isapnphw.h:101
struct _ISAPNP_LOGDEVID ISAPNP_LOGDEVID
struct _ISAPNP_IDENTIFIER ISAPNP_IDENTIFIER
struct _ISAPNP_IRQ_DESCRIPTION ISAPNP_IRQ_DESCRIPTION
struct _ISAPNP_DEVICEID ISAPNP_DEVICEID
unsigned short USHORT
Definition: pedump.c:61
struct _ISAPNP_IO_DESCRIPTION ISAPNP_IO_DESCRIPTION
unsigned int ULONG
Definition: retypes.h:1
struct _ISAPNP_IDENTIFIER * PISAPNP_IDENTIFIER
struct _ISAPNP_DEVICEID * PISAPNP_DEVICEID