blob: e682d2e6b387f70633b931becc00fe74ff67f1b6 [file] [log] [blame]
Stephen M. Cameronedd16362009-12-08 14:09:11 -08001/*
2 * Disk Array driver for HP Smart Array SAS controllers
3 * Copyright 2000, 2009 Hewlett-Packard Development Company, L.P.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
12 * NON INFRINGEMENT. See the GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 *
18 * Questions/Comments/Bugfixes to iss_storagedev@hp.com
19 *
20 */
21#ifndef HPSA_CMD_H
22#define HPSA_CMD_H
23
24/* general boundary defintions */
25#define SENSEINFOBYTES 32 /* may vary between hbas */
Stephen M. Camerond66ae082012-01-19 14:00:48 -060026#define SG_ENTRIES_IN_CMD 32 /* Max SG entries excluding chain blocks */
Stephen M. Cameron33a2ffc2010-02-25 14:03:27 -060027#define HPSA_SG_CHAIN 0x80000000
Matt Gatese1d9cbf2014-02-18 13:55:12 -060028#define HPSA_SG_LAST 0x40000000
Stephen M. Cameronedd16362009-12-08 14:09:11 -080029#define MAXREPLYQS 256
30
31/* Command Status value */
32#define CMD_SUCCESS 0x0000
33#define CMD_TARGET_STATUS 0x0001
34#define CMD_DATA_UNDERRUN 0x0002
35#define CMD_DATA_OVERRUN 0x0003
36#define CMD_INVALID 0x0004
37#define CMD_PROTOCOL_ERR 0x0005
38#define CMD_HARDWARE_ERR 0x0006
39#define CMD_CONNECTION_LOST 0x0007
40#define CMD_ABORTED 0x0008
41#define CMD_ABORT_FAILED 0x0009
42#define CMD_UNSOLICITED_ABORT 0x000A
43#define CMD_TIMEOUT 0x000B
44#define CMD_UNABORTABLE 0x000C
45
46/* Unit Attentions ASC's as defined for the MSA2012sa */
47#define POWER_OR_RESET 0x29
48#define STATE_CHANGED 0x2a
49#define UNIT_ATTENTION_CLEARED 0x2f
50#define LUN_FAILED 0x3e
51#define REPORT_LUNS_CHANGED 0x3f
52
53/* Unit Attentions ASCQ's as defined for the MSA2012sa */
54
55 /* These ASCQ's defined for ASC = POWER_OR_RESET */
56#define POWER_ON_RESET 0x00
57#define POWER_ON_REBOOT 0x01
58#define SCSI_BUS_RESET 0x02
59#define MSA_TARGET_RESET 0x03
60#define CONTROLLER_FAILOVER 0x04
61#define TRANSCEIVER_SE 0x05
62#define TRANSCEIVER_LVD 0x06
63
64 /* These ASCQ's defined for ASC = STATE_CHANGED */
65#define RESERVATION_PREEMPTED 0x03
66#define ASYM_ACCESS_CHANGED 0x06
67#define LUN_CAPACITY_CHANGED 0x09
68
69/* transfer direction */
70#define XFER_NONE 0x00
71#define XFER_WRITE 0x01
72#define XFER_READ 0x02
73#define XFER_RSVD 0x03
74
75/* task attribute */
76#define ATTR_UNTAGGED 0x00
77#define ATTR_SIMPLE 0x04
78#define ATTR_HEADOFQUEUE 0x05
79#define ATTR_ORDERED 0x06
80#define ATTR_ACA 0x07
81
82/* cdb type */
83#define TYPE_CMD 0x00
84#define TYPE_MSG 0x01
85
Stephen M. Cameron75167d22012-05-01 11:42:51 -050086/* Message Types */
87#define HPSA_TASK_MANAGEMENT 0x00
88#define HPSA_RESET 0x01
89#define HPSA_SCAN 0x02
90#define HPSA_NOOP 0x03
91
92#define HPSA_CTLR_RESET_TYPE 0x00
93#define HPSA_BUS_RESET_TYPE 0x01
94#define HPSA_TARGET_RESET_TYPE 0x03
95#define HPSA_LUN_RESET_TYPE 0x04
96#define HPSA_NEXUS_RESET_TYPE 0x05
97
98/* Task Management Functions */
99#define HPSA_TMF_ABORT_TASK 0x00
100#define HPSA_TMF_ABORT_TASK_SET 0x01
101#define HPSA_TMF_CLEAR_ACA 0x02
102#define HPSA_TMF_CLEAR_TASK_SET 0x03
103#define HPSA_TMF_QUERY_TASK 0x04
104#define HPSA_TMF_QUERY_TASK_SET 0x05
105#define HPSA_TMF_QUERY_ASYNCEVENT 0x06
106
107
108
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800109/* config space register offsets */
110#define CFG_VENDORID 0x00
111#define CFG_DEVICEID 0x02
112#define CFG_I2OBAR 0x10
113#define CFG_MEM1BAR 0x14
114
115/* i2o space register offsets */
116#define I2O_IBDB_SET 0x20
117#define I2O_IBDB_CLEAR 0x70
118#define I2O_INT_STATUS 0x30
119#define I2O_INT_MASK 0x34
120#define I2O_IBPOST_Q 0x40
121#define I2O_OBPOST_Q 0x44
122#define I2O_DMA1_CFG 0x214
123
124/* Configuration Table */
125#define CFGTBL_ChangeReq 0x00000001l
126#define CFGTBL_AccCmds 0x00000001l
Stephen M. Cameron1df85522010-06-16 13:51:40 -0500127#define DOORBELL_CTLR_RESET 0x00000004l
Stephen M. Cameroncf0b08d2011-05-03 14:59:46 -0500128#define DOORBELL_CTLR_RESET2 0x00000020l
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800129
130#define CFGTBL_Trans_Simple 0x00000002l
Don Brace303932f2010-02-04 08:42:40 -0600131#define CFGTBL_Trans_Performant 0x00000004l
Matt Gatese1f7de02014-02-18 13:55:17 -0600132#define CFGTBL_Trans_io_accel1 0x00000080l
Stephen M. Cameron960a30e2011-02-15 15:33:03 -0600133#define CFGTBL_Trans_use_short_tags 0x20000000l
Matt Gates254f7962012-05-01 11:43:06 -0500134#define CFGTBL_Trans_enable_directed_msix (1 << 30)
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800135
136#define CFGTBL_BusType_Ultra2 0x00000001l
137#define CFGTBL_BusType_Ultra3 0x00000002l
138#define CFGTBL_BusType_Fibre1G 0x00000100l
139#define CFGTBL_BusType_Fibre2G 0x00000200l
140struct vals32 {
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600141 u32 lower;
142 u32 upper;
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800143};
144
145union u64bit {
146 struct vals32 val32;
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600147 u64 val;
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800148};
149
150/* FIXME this is a per controller value (barf!) */
Scott Teelb7ec0212011-10-26 16:21:12 -0500151#define HPSA_MAX_LUN 1024
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800152#define HPSA_MAX_PHYS_LUN 1024
Scott Teelaca4a522012-01-19 14:01:19 -0600153#define MAX_EXT_TARGETS 32
Scott Teelb7ec0212011-10-26 16:21:12 -0500154#define HPSA_MAX_DEVICES (HPSA_MAX_PHYS_LUN + HPSA_MAX_LUN + \
Scott Teelaca4a522012-01-19 14:01:19 -0600155 MAX_EXT_TARGETS + 1) /* + 1 is for the controller itself */
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800156
157/* SCSI-3 Commands */
158#pragma pack(1)
159
160#define HPSA_INQUIRY 0x12
161struct InquiryData {
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600162 u8 data_byte[36];
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800163};
164
165#define HPSA_REPORT_LOG 0xc2 /* Report Logical LUNs */
166#define HPSA_REPORT_PHYS 0xc3 /* Report Physical LUNs */
Matt Gatesa93aa1f2014-02-18 13:55:07 -0600167#define HPSA_REPORT_PHYS_EXTENDED 0x02
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800168struct ReportLUNdata {
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600169 u8 LUNListLength[4];
170 u32 reserved;
171 u8 LUN[HPSA_MAX_LUN][8];
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800172};
173
174struct ReportExtendedLUNdata {
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600175 u8 LUNListLength[4];
176 u8 extended_response_flag;
177 u8 reserved[3];
178 u8 LUN[HPSA_MAX_LUN][24];
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800179};
180
181struct SenseSubsystem_info {
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600182 u8 reserved[36];
183 u8 portname[8];
184 u8 reserved1[1108];
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800185};
186
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800187/* BMIC commands */
188#define BMIC_READ 0x26
189#define BMIC_WRITE 0x27
190#define BMIC_CACHE_FLUSH 0xc2
191#define HPSA_CACHE_FLUSH 0x01 /* C2 was already being used by HPSA */
Stephen M. Camerone85c5972012-05-01 11:43:42 -0500192#define BMIC_FLASH_FIRMWARE 0xF7
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800193
194/* Command List Structure */
195union SCSI3Addr {
196 struct {
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600197 u8 Dev;
198 u8 Bus:6;
199 u8 Mode:2; /* b00 */
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800200 } PeripDev;
201 struct {
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600202 u8 DevLSB;
203 u8 DevMSB:6;
204 u8 Mode:2; /* b01 */
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800205 } LogDev;
206 struct {
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600207 u8 Dev:5;
208 u8 Bus:3;
209 u8 Targ:6;
210 u8 Mode:2; /* b10 */
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800211 } LogUnit;
212};
213
214struct PhysDevAddr {
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600215 u32 TargetId:24;
216 u32 Bus:6;
217 u32 Mode:2;
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800218 /* 2 level target device addr */
219 union SCSI3Addr Target[2];
220};
221
222struct LogDevAddr {
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600223 u32 VolId:30;
224 u32 Mode:2;
225 u8 reserved[4];
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800226};
227
228union LUNAddr {
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600229 u8 LunAddrBytes[8];
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800230 union SCSI3Addr SCSI3Lun[4];
231 struct PhysDevAddr PhysDev;
232 struct LogDevAddr LogDev;
233};
234
235struct CommandListHeader {
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600236 u8 ReplyQueue;
237 u8 SGList;
238 u16 SGTotal;
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800239 struct vals32 Tag;
240 union LUNAddr LUN;
241};
242
243struct RequestBlock {
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600244 u8 CDBLen;
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800245 struct {
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600246 u8 Type:3;
247 u8 Attribute:3;
248 u8 Direction:2;
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800249 } Type;
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600250 u16 Timeout;
251 u8 CDB[16];
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800252};
253
254struct ErrDescriptor {
255 struct vals32 Addr;
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600256 u32 Len;
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800257};
258
259struct SGDescriptor {
260 struct vals32 Addr;
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600261 u32 Len;
262 u32 Ext;
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800263};
264
265union MoreErrInfo {
266 struct {
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600267 u8 Reserved[3];
268 u8 Type;
269 u32 ErrorInfo;
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800270 } Common_Info;
271 struct {
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600272 u8 Reserved[2];
273 u8 offense_size; /* size of offending entry */
274 u8 offense_num; /* byte # of offense 0-base */
275 u32 offense_value;
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800276 } Invalid_Cmd;
277};
278struct ErrorInfo {
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600279 u8 ScsiStatus;
280 u8 SenseLen;
281 u16 CommandStatus;
282 u32 ResidualCnt;
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800283 union MoreErrInfo MoreErrInfo;
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600284 u8 SenseInfo[SENSEINFOBYTES];
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800285};
286/* Command types */
287#define CMD_IOCTL_PEND 0x01
288#define CMD_SCSI 0x03
Matt Gatese1f7de02014-02-18 13:55:17 -0600289#define CMD_IOACCEL1 0x04
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800290
Don Brace303932f2010-02-04 08:42:40 -0600291#define DIRECT_LOOKUP_SHIFT 5
292#define DIRECT_LOOKUP_BIT 0x10
Stephen M. Camerond896f3f2011-01-06 14:47:53 -0600293#define DIRECT_LOOKUP_MASK (~((1 << DIRECT_LOOKUP_SHIFT) - 1))
Don Brace303932f2010-02-04 08:42:40 -0600294
295#define HPSA_ERROR_BIT 0x02
296struct ctlr_info; /* defined in hpsa.h */
297/* The size of this structure needs to be divisible by 32
298 * on all architectures because low 5 bits of the addresses
299 * are used as follows:
300 *
301 * bit 0: to device, used to indicate "performant mode" command
302 * from device, indidcates error status.
303 * bit 1-3: to device, indicates block fetch table entry for
304 * reducing DMA in fetching commands from host memory.
305 * bit 4: used to indicate whether tag is "direct lookup" (index),
306 * or a bus address.
307 */
308
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800309struct CommandList {
310 struct CommandListHeader Header;
311 struct RequestBlock Request;
312 struct ErrDescriptor ErrDesc;
Stephen M. Camerond66ae082012-01-19 14:00:48 -0600313 struct SGDescriptor SG[SG_ENTRIES_IN_CMD];
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800314 /* information associated with the command */
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600315 u32 busaddr; /* physical addr of this record */
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800316 struct ErrorInfo *err_info; /* pointer to the allocated mem */
317 struct ctlr_info *h;
318 int cmd_type;
319 long cmdindex;
Stephen M. Cameron9e0fc762011-02-15 15:32:48 -0600320 struct list_head list;
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800321 struct request *rq;
322 struct completion *waiting;
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800323 void *scsi_cmd;
Don Brace303932f2010-02-04 08:42:40 -0600324
325/* on 64 bit architectures, to get this to be 32-byte-aligned
Stephen M. Camerondb61bfc2010-02-25 14:03:22 -0600326 * it so happens we need PAD_64 bytes of padding, on 32 bit systems,
327 * we need PAD_32 bytes of padding (see below). This does that.
328 * If it happens that 64 bit and 32 bit systems need different
329 * padding, PAD_32 and PAD_64 can be set independently, and.
330 * the code below will do the right thing.
Don Brace303932f2010-02-04 08:42:40 -0600331 */
Stephen M. Camerondb61bfc2010-02-25 14:03:22 -0600332#define IS_32_BIT ((8 - sizeof(long))/4)
333#define IS_64_BIT (!IS_32_BIT)
Stephen M. Cameron43aebfa2010-02-25 14:03:32 -0600334#define PAD_32 (4)
335#define PAD_64 (4)
Stephen M. Camerondb61bfc2010-02-25 14:03:22 -0600336#define COMMANDLIST_PAD (IS_32_BIT * PAD_32 + IS_64_BIT * PAD_64)
Don Brace303932f2010-02-04 08:42:40 -0600337 u8 pad[COMMANDLIST_PAD];
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800338};
339
Matt Gatese1f7de02014-02-18 13:55:17 -0600340/* Max S/G elements in I/O accelerator command */
341#define IOACCEL1_MAXSGENTRIES 24
342
343/*
344 * Structure for I/O accelerator (mode 1) commands.
345 * Note that this structure must be 128-byte aligned in size.
346 */
347struct io_accel1_cmd {
348 u16 dev_handle; /* 0x00 - 0x01 */
349 u8 reserved1; /* 0x02 */
350 u8 function; /* 0x03 */
351 u8 reserved2[8]; /* 0x04 - 0x0B */
352 u32 err_info; /* 0x0C - 0x0F */
353 u8 reserved3[2]; /* 0x10 - 0x11 */
354 u8 err_info_len; /* 0x12 */
355 u8 reserved4; /* 0x13 */
356 u8 sgl_offset; /* 0x14 */
357 u8 reserved5[7]; /* 0x15 - 0x1B */
358 u32 transfer_len; /* 0x1C - 0x1F */
359 u8 reserved6[4]; /* 0x20 - 0x23 */
360 u16 io_flags; /* 0x24 - 0x25 */
361 u8 reserved7[14]; /* 0x26 - 0x33 */
362 u8 LUN[8]; /* 0x34 - 0x3B */
363 u32 control; /* 0x3C - 0x3F */
364 u8 CDB[16]; /* 0x40 - 0x4F */
365 u8 reserved8[16]; /* 0x50 - 0x5F */
366 u16 host_context_flags; /* 0x60 - 0x61 */
367 u16 timeout_sec; /* 0x62 - 0x63 */
368 u8 ReplyQueue; /* 0x64 */
369 u8 reserved9[3]; /* 0x65 - 0x67 */
370 struct vals32 Tag; /* 0x68 - 0x6F */
371 struct vals32 host_addr; /* 0x70 - 0x77 */
372 u8 CISS_LUN[8]; /* 0x78 - 0x7F */
373 struct SGDescriptor SG[IOACCEL1_MAXSGENTRIES];
374};
375
376#define IOACCEL1_FUNCTION_SCSIIO 0x00
377#define IOACCEL1_SGLOFFSET 32
378
379#define IOACCEL1_IOFLAGS_IO_REQ 0x4000
380#define IOACCEL1_IOFLAGS_CDBLEN_MASK 0x001F
381#define IOACCEL1_IOFLAGS_CDBLEN_MAX 16
382
383#define IOACCEL1_CONTROL_NODATAXFER 0x00000000
384#define IOACCEL1_CONTROL_DATA_OUT 0x01000000
385#define IOACCEL1_CONTROL_DATA_IN 0x02000000
386#define IOACCEL1_CONTROL_TASKPRIO_MASK 0x00007800
387#define IOACCEL1_CONTROL_TASKPRIO_SHIFT 11
388#define IOACCEL1_CONTROL_SIMPLEQUEUE 0x00000000
389#define IOACCEL1_CONTROL_HEADOFQUEUE 0x00000100
390#define IOACCEL1_CONTROL_ORDEREDQUEUE 0x00000200
391#define IOACCEL1_CONTROL_ACA 0x00000400
392
393#define IOACCEL1_HCFLAGS_CISS_FORMAT 0x0013
394
395#define IOACCEL1_BUSADDR_CMDTYPE 0x00000060
396
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800397/* Configuration Table Structure */
398struct HostWrite {
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600399 u32 TransportRequest;
400 u32 Reserved;
401 u32 CoalIntDelay;
402 u32 CoalIntCount;
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800403};
404
Don Brace303932f2010-02-04 08:42:40 -0600405#define SIMPLE_MODE 0x02
406#define PERFORMANT_MODE 0x04
407#define MEMQ_MODE 0x08
Matt Gatese1f7de02014-02-18 13:55:17 -0600408#define IOACCEL_MODE_1 0x80
Don Brace303932f2010-02-04 08:42:40 -0600409
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800410struct CfgTable {
Don Brace303932f2010-02-04 08:42:40 -0600411 u8 Signature[4];
412 u32 SpecValence;
413 u32 TransportSupport;
414 u32 TransportActive;
415 struct HostWrite HostWrite;
416 u32 CmdsOutMax;
417 u32 BusTypes;
418 u32 TransMethodOffset;
419 u8 ServerName[16];
420 u32 HeartBeat;
Stephen M. Cameron97a5e982013-12-04 17:10:16 -0600421 u32 driver_support;
422#define ENABLE_SCSI_PREFETCH 0x100
Stephen M. Cameron28e13442013-12-04 17:10:21 -0600423#define ENABLE_UNIT_ATTN 0x01
Don Brace303932f2010-02-04 08:42:40 -0600424 u32 MaxScatterGatherElements;
425 u32 MaxLogicalUnits;
426 u32 MaxPhysicalDevices;
427 u32 MaxPhysicalDrivesPerLogicalUnit;
428 u32 MaxPerformantModeCommands;
Stephen M. Cameron75167d22012-05-01 11:42:51 -0500429 u32 MaxBlockFetch;
430 u32 PowerConservationSupport;
431 u32 PowerConservationEnable;
432 u32 TMFSupportFlags;
433 u8 TMFTagMask[8];
434 u8 reserved[0x78 - 0x70];
Stephen M. Cameron1df85522010-06-16 13:51:40 -0500435 u32 misc_fw_support; /* offset 0x78 */
436#define MISC_FW_DOORBELL_RESET (0x02)
Stephen M. Cameroncf0b08d2011-05-03 14:59:46 -0500437#define MISC_FW_DOORBELL_RESET2 (0x010)
Stephen M. Cameron580ada32011-05-03 14:59:10 -0500438 u8 driver_version[32];
Stephen M. Cameron75167d22012-05-01 11:42:51 -0500439
Don Brace303932f2010-02-04 08:42:40 -0600440};
441
442#define NUM_BLOCKFETCH_ENTRIES 8
443struct TransTable_struct {
444 u32 BlockFetch[NUM_BLOCKFETCH_ENTRIES];
445 u32 RepQSize;
446 u32 RepQCount;
447 u32 RepQCtrAddrLow32;
448 u32 RepQCtrAddrHigh32;
Matt Gates254f7962012-05-01 11:43:06 -0500449#define MAX_REPLY_QUEUES 8
450 struct vals32 RepQAddr[MAX_REPLY_QUEUES];
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800451};
452
453struct hpsa_pci_info {
454 unsigned char bus;
455 unsigned char dev_fn;
456 unsigned short domain;
Stephen M. Cameron01a02ff2010-02-04 08:41:33 -0600457 u32 board_id;
Stephen M. Cameronedd16362009-12-08 14:09:11 -0800458};
459
460#pragma pack()
461#endif /* HPSA_CMD_H */