Go to the documentation of this file.
7 #define CISS_VERSION "1.00"
10 #define MAXSGENTRIES 32
11 #define CCISS_SG_CHAIN 0x80000000
12 #define MAXREPLYQS 256
15 #define POWER_OR_RESET 0x29
16 #define STATE_CHANGED 0x2a
17 #define UNIT_ATTENTION_CLEARED 0x2f
18 #define LUN_FAILED 0x3e
19 #define REPORT_LUNS_CHANGED 0x3f
24 #define POWER_ON_RESET 0x00
25 #define POWER_ON_REBOOT 0x01
26 #define SCSI_BUS_RESET 0x02
27 #define MSA_TARGET_RESET 0x03
28 #define CONTROLLER_FAILOVER 0x04
29 #define TRANSCEIVER_SE 0x05
30 #define TRANSCEIVER_LVD 0x06
33 #define RESERVATION_PREEMPTED 0x03
34 #define ASYM_ACCESS_CHANGED 0x06
35 #define LUN_CAPACITY_CHANGED 0x09
38 #define CFG_VENDORID 0x00
39 #define CFG_DEVICEID 0x02
40 #define CFG_I2OBAR 0x10
41 #define CFG_MEM1BAR 0x14
44 #define I2O_IBDB_SET 0x20
45 #define I2O_IBDB_CLEAR 0x70
46 #define I2O_INT_STATUS 0x30
47 #define I2O_INT_MASK 0x34
48 #define I2O_IBPOST_Q 0x40
49 #define I2O_OBPOST_Q 0x44
50 #define I2O_DMA1_CFG 0x214
53 #define CFGTBL_ChangeReq 0x00000001l
54 #define CFGTBL_AccCmds 0x00000001l
55 #define DOORBELL_CTLR_RESET 0x00000004l
56 #define DOORBELL_CTLR_RESET2 0x00000020l
58 #define CFGTBL_Trans_Simple 0x00000002l
59 #define CFGTBL_Trans_Performant 0x00000004l
60 #define CFGTBL_Trans_use_short_tags 0x20000000l
62 #define CFGTBL_BusType_Ultra2 0x00000001l
63 #define CFGTBL_BusType_Ultra3 0x00000002l
64 #define CFGTBL_BusType_Fibre1G 0x00000100l
65 #define CFGTBL_BusType_Fibre2G 0x00000200l
82 #define CISS_MAX_PHYS_LUN 1024
87 #define CISS_INQUIRY 0x12
94 #define CISS_REPORT_LOG 0xc2
95 #define CISS_REPORT_PHYS 0xc3
104 #define CCISS_READ_CAPACITY 0x25
111 #define CCISS_READ_CAPACITY_16 0x9e
116 #define CCISS_READ_CAPACITY_16_SERVICE_ACT 0x10
130 #define CCISS_READ_10 0x28
131 #define CCISS_WRITE_10 0x2a
132 #define CCISS_READ_16 0x88
133 #define CCISS_WRITE_16 0x8a
141 #define BMIC_READ 0x26
142 #define BMIC_WRITE 0x27
143 #define BMIC_CACHE_FLUSH 0xc2
144 #define CCISS_CACHE_FLUSH 0x01
146 #define CCISS_ABORT_MSG 0x00
147 #define CCISS_RESET_MSG 0x01
148 #define CCISS_RESET_TYPE_CONTROLLER 0x00
149 #define CCISS_RESET_TYPE_BUS 0x01
150 #define CCISS_RESET_TYPE_TARGET 0x03
151 #define CCISS_RESET_TYPE_LUN 0x04
152 #define CCISS_NOOP_MSG 0x03
155 #define CTLR_LUNID "\0\0\0\0\0\0\0\0"
175 #define CMD_RWREQ 0x00
176 #define CMD_IOCTL_PEND 0x01
177 #define CMD_SCSI 0x03
178 #define CMD_MSG_DONE 0x04
179 #define CMD_MSG_TIMEOUT 0x05
180 #define CMD_MSG_STALE 0xff
188 #define COMMANDLIST_ALIGNMENT (32)
189 #define IS_64_BIT ((sizeof(long) - 4)/4)
190 #define IS_32_BIT (!IS_64_BIT)
193 #define PADSIZE (IS_32_BIT * PAD_32 + IS_64_BIT * PAD_64)
194 #define DIRECT_LOOKUP_BIT 0x10
195 #define DIRECT_LOOKUP_SHIFT 5
227 #define SIMPLE_MODE 0x02
228 #define PERFORMANT_MODE 0x04
229 #define MEMQ_MODE 0x08
246 #define MISC_FW_DOORBELL_RESET (0x02)
247 #define MISC_FW_DOORBELL_RESET2 (0x10)