Go to the documentation of this file.
25 #define SENSEINFOBYTES 32
26 #define SG_ENTRIES_IN_CMD 32
27 #define HPSA_SG_CHAIN 0x80000000
28 #define MAXREPLYQS 256
31 #define CMD_SUCCESS 0x0000
32 #define CMD_TARGET_STATUS 0x0001
33 #define CMD_DATA_UNDERRUN 0x0002
34 #define CMD_DATA_OVERRUN 0x0003
35 #define CMD_INVALID 0x0004
36 #define CMD_PROTOCOL_ERR 0x0005
37 #define CMD_HARDWARE_ERR 0x0006
38 #define CMD_CONNECTION_LOST 0x0007
39 #define CMD_ABORTED 0x0008
40 #define CMD_ABORT_FAILED 0x0009
41 #define CMD_UNSOLICITED_ABORT 0x000A
42 #define CMD_TIMEOUT 0x000B
43 #define CMD_UNABORTABLE 0x000C
46 #define POWER_OR_RESET 0x29
47 #define STATE_CHANGED 0x2a
48 #define UNIT_ATTENTION_CLEARED 0x2f
49 #define LUN_FAILED 0x3e
50 #define REPORT_LUNS_CHANGED 0x3f
55 #define POWER_ON_RESET 0x00
56 #define POWER_ON_REBOOT 0x01
57 #define SCSI_BUS_RESET 0x02
58 #define MSA_TARGET_RESET 0x03
59 #define CONTROLLER_FAILOVER 0x04
60 #define TRANSCEIVER_SE 0x05
61 #define TRANSCEIVER_LVD 0x06
64 #define RESERVATION_PREEMPTED 0x03
65 #define ASYM_ACCESS_CHANGED 0x06
66 #define LUN_CAPACITY_CHANGED 0x09
69 #define XFER_NONE 0x00
70 #define XFER_WRITE 0x01
71 #define XFER_READ 0x02
72 #define XFER_RSVD 0x03
75 #define ATTR_UNTAGGED 0x00
76 #define ATTR_SIMPLE 0x04
77 #define ATTR_HEADOFQUEUE 0x05
78 #define ATTR_ORDERED 0x06
86 #define HPSA_TASK_MANAGEMENT 0x00
87 #define HPSA_RESET 0x01
88 #define HPSA_SCAN 0x02
89 #define HPSA_NOOP 0x03
91 #define HPSA_CTLR_RESET_TYPE 0x00
92 #define HPSA_BUS_RESET_TYPE 0x01
93 #define HPSA_TARGET_RESET_TYPE 0x03
94 #define HPSA_LUN_RESET_TYPE 0x04
95 #define HPSA_NEXUS_RESET_TYPE 0x05
98 #define HPSA_TMF_ABORT_TASK 0x00
99 #define HPSA_TMF_ABORT_TASK_SET 0x01
100 #define HPSA_TMF_CLEAR_ACA 0x02
101 #define HPSA_TMF_CLEAR_TASK_SET 0x03
102 #define HPSA_TMF_QUERY_TASK 0x04
103 #define HPSA_TMF_QUERY_TASK_SET 0x05
104 #define HPSA_TMF_QUERY_ASYNCEVENT 0x06
109 #define CFG_VENDORID 0x00
110 #define CFG_DEVICEID 0x02
111 #define CFG_I2OBAR 0x10
112 #define CFG_MEM1BAR 0x14
115 #define I2O_IBDB_SET 0x20
116 #define I2O_IBDB_CLEAR 0x70
117 #define I2O_INT_STATUS 0x30
118 #define I2O_INT_MASK 0x34
119 #define I2O_IBPOST_Q 0x40
120 #define I2O_OBPOST_Q 0x44
121 #define I2O_DMA1_CFG 0x214
124 #define CFGTBL_ChangeReq 0x00000001l
125 #define CFGTBL_AccCmds 0x00000001l
126 #define DOORBELL_CTLR_RESET 0x00000004l
127 #define DOORBELL_CTLR_RESET2 0x00000020l
129 #define CFGTBL_Trans_Simple 0x00000002l
130 #define CFGTBL_Trans_Performant 0x00000004l
131 #define CFGTBL_Trans_use_short_tags 0x20000000l
132 #define CFGTBL_Trans_enable_directed_msix (1 << 30)
134 #define CFGTBL_BusType_Ultra2 0x00000001l
135 #define CFGTBL_BusType_Ultra3 0x00000002l
136 #define CFGTBL_BusType_Fibre1G 0x00000100l
137 #define CFGTBL_BusType_Fibre2G 0x00000200l
149 #define HPSA_MAX_LUN 1024
150 #define HPSA_MAX_PHYS_LUN 1024
151 #define MAX_EXT_TARGETS 32
152 #define HPSA_MAX_DEVICES (HPSA_MAX_PHYS_LUN + HPSA_MAX_LUN + \
158 #define HPSA_INQUIRY 0x12
163 #define HPSA_REPORT_LOG 0xc2
164 #define HPSA_REPORT_PHYS 0xc3
185 #define BMIC_READ 0x26
186 #define BMIC_WRITE 0x27
187 #define BMIC_CACHE_FLUSH 0xc2
188 #define HPSA_CACHE_FLUSH 0x01
189 #define BMIC_FLASH_FIRMWARE 0xF7
284 #define CMD_IOCTL_PEND 0x01
285 #define CMD_SCSI 0x03
287 #define DIRECT_LOOKUP_SHIFT 5
288 #define DIRECT_LOOKUP_BIT 0x10
289 #define DIRECT_LOOKUP_MASK (~((1 << DIRECT_LOOKUP_SHIFT) - 1))
291 #define HPSA_ERROR_BIT 0x02
328 #define IS_32_BIT ((8 - sizeof(long))/4)
329 #define IS_64_BIT (!IS_32_BIT)
332 #define COMMANDLIST_PAD (IS_32_BIT * PAD_32 + IS_64_BIT * PAD_64)
344 #define SIMPLE_MODE 0x02
345 #define PERFORMANT_MODE 0x04
346 #define MEMQ_MODE 0x08
372 #define MISC_FW_DOORBELL_RESET (0x02)
373 #define MISC_FW_DOORBELL_RESET2 (0x010)
378 #define NUM_BLOCKFETCH_ENTRIES 8
385 #define MAX_REPLY_QUEUES 8