Go to the documentation of this file.
12 #ifndef _EATA_GENERIC_H
13 #define _EATA_GENERIC_H
21 #define R_LIMIT 0x20000
34 #define BROKEN_INQUIRY 1
36 #define BUSMASTER 0xff
39 #define EATA_SIGNATURE 0x45415441
53 #define EATA_CP_SIZE 44
55 #define MAX_PCI_DEVICES 32
56 #define MAX_METHOD_2 16
57 #define MAX_PCI_BUS 16
60 #define SG_SIZE_BIG 252
62 #define UPPER_DEVICE_QUEUE_LIMIT 64
68 #define TYPE_DISK_QUEUE 16
69 #define TYPE_TAPE_QUEUE 4
70 #define TYPE_ROM_QUEUE 4
71 #define TYPE_OTHER_QUEUE 2
86 #define HD(cmd) ((hostdata *)&(cmd->device->host->hostdata))
87 #define CD(cmd) ((struct eata_ccb *)(cmd->host_scribble))
88 #define SD(host) ((hostdata *)&(host->hostdata))
93 #define PCI_REG_DPTconfig 0x40
94 #define PCI_REG_PumpModeAddress 0x44
95 #define PCI_REG_PumpModeData 0x48
96 #define PCI_REG_ConfigParam1 0x50
97 #define PCI_REG_ConfigParam2 0x54
100 #define EATA_CMD_PIO_SETUPTEST 0xc6
101 #define EATA_CMD_PIO_READ_CONFIG 0xf0
102 #define EATA_CMD_PIO_SET_CONFIG 0xf1
103 #define EATA_CMD_PIO_SEND_CP 0xf2
104 #define EATA_CMD_PIO_RECEIVE_SP 0xf3
105 #define EATA_CMD_PIO_TRUNC 0xf4
107 #define EATA_CMD_RESET 0xf9
108 #define EATA_CMD_IMMEDIATE 0xfa
110 #define EATA_CMD_DMA_READ_CONFIG 0xfd
111 #define EATA_CMD_DMA_SET_CONFIG 0xfe
112 #define EATA_CMD_DMA_SEND_CP 0xff
114 #define ECS_EMULATE_SENSE 0xd4
116 #define EATA_GENERIC_ABORT 0x00
117 #define EATA_SPECIFIC_RESET 0x01
118 #define EATA_BUS_RESET 0x02
119 #define EATA_SPECIFIC_ABORT 0x03
120 #define EATA_QUIET_INTR 0x04
121 #define EATA_COLD_BOOT_HBA 0x06
122 #define EATA_FORCE_IO 0x07
124 #define HA_CTRLREG 0x206
125 #define HA_CTRL_DISINT 0x02
126 #define HA_CTRL_RESCPU 0x04
127 #define HA_CTRL_8HEADS 0x08
130 #define HA_WCOMMAND 0x07
132 #define HA_WCODE 0x05
133 #define HA_WCODE2 0x04
134 #define HA_WDMAADDR 0x02
135 #define HA_RAUXSTAT 0x08
136 #define HA_RSTATUS 0x07
137 #define HA_RDATA 0x00
138 #define HA_WDATA 0x00
140 #define HA_ABUSY 0x01
142 #define HA_SERROR 0x01
143 #define HA_SMORE 0x02
144 #define HA_SCORR 0x04
147 #define HA_SFAULT 0x20
148 #define HA_SREADY 0x40
149 #define HA_SBUSY 0x80
150 #define HA_SDRDY HA_SSC+HA_SREADY+HA_SDRQ
156 #define HA_NO_ERROR 0x00
157 #define HA_ERR_SEL_TO 0x01
158 #define HA_ERR_CMD_TO 0x02
159 #define HA_BUS_RESET 0x03
160 #define HA_INIT_POWERUP 0x04
161 #define HA_UNX_BUSPHASE 0x05
162 #define HA_UNX_BUS_FREE 0x06
163 #define HA_BUS_PARITY 0x07
164 #define HA_SCSI_HUNG 0x08
165 #define HA_UNX_MSGRJCT 0x09
166 #define HA_RESET_STUCK 0x0a
167 #define HA_RSENSE_FAIL 0x0b
168 #define HA_PARITY_ERR 0x0c
169 #define HA_CP_ABORT_NA 0x0d
170 #define HA_CP_ABORTED 0x0e
171 #define HA_CP_RESET_NA 0x0f
172 #define HA_CP_RESET 0x10
173 #define HA_ECC_ERR 0x11
174 #define HA_PCI_PARITY 0x12
175 #define HA_PCI_MABORT 0x13
176 #define HA_PCI_TABORT 0x14
177 #define HA_PCI_STABORT 0x15