diff options
author | Mike Miller <mikem@beardog.cce.hp.com> | 2014-02-18 14:56:04 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2014-03-15 13:19:04 -0400 |
commit | b66cc250ee700ba019ae6801726588b8bf6d9144 (patch) | |
tree | 52a2100fec4844aeccb02413086bee39b505d183 /drivers/scsi/hpsa.c | |
parent | 0e7a7fcea03bc527310183c11f4b871c3416d488 (diff) |
[SCSI] hpsa: add ioaccel mode 2 structure definitions
Signed-off-by: Mike Miller <michael.miller@canonical.com>
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/hpsa.c')
-rw-r--r-- | drivers/scsi/hpsa.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 9fdcb189b024..e55e787f5092 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c | |||
@@ -6134,6 +6134,28 @@ static void __exit hpsa_cleanup(void) | |||
6134 | static void __attribute__((unused)) verify_offsets(void) | 6134 | static void __attribute__((unused)) verify_offsets(void) |
6135 | { | 6135 | { |
6136 | #define VERIFY_OFFSET(member, offset) \ | 6136 | #define VERIFY_OFFSET(member, offset) \ |
6137 | BUILD_BUG_ON(offsetof(struct io_accel2_cmd, member) != offset) | ||
6138 | |||
6139 | VERIFY_OFFSET(IU_type, 0); | ||
6140 | VERIFY_OFFSET(direction, 1); | ||
6141 | VERIFY_OFFSET(reply_queue, 2); | ||
6142 | /* VERIFY_OFFSET(reserved1, 3); */ | ||
6143 | VERIFY_OFFSET(scsi_nexus, 4); | ||
6144 | VERIFY_OFFSET(Tag, 8); | ||
6145 | VERIFY_OFFSET(cdb, 16); | ||
6146 | VERIFY_OFFSET(cciss_lun, 32); | ||
6147 | VERIFY_OFFSET(data_len, 40); | ||
6148 | VERIFY_OFFSET(cmd_priority_task_attr, 44); | ||
6149 | VERIFY_OFFSET(sg_count, 45); | ||
6150 | /* VERIFY_OFFSET(reserved3 */ | ||
6151 | VERIFY_OFFSET(err_ptr, 48); | ||
6152 | VERIFY_OFFSET(err_len, 56); | ||
6153 | /* VERIFY_OFFSET(reserved4 */ | ||
6154 | VERIFY_OFFSET(sg, 64); | ||
6155 | |||
6156 | #undef VERIFY_OFFSET | ||
6157 | |||
6158 | #define VERIFY_OFFSET(member, offset) \ | ||
6137 | BUILD_BUG_ON(offsetof(struct io_accel1_cmd, member) != offset) | 6159 | BUILD_BUG_ON(offsetof(struct io_accel1_cmd, member) != offset) |
6138 | 6160 | ||
6139 | VERIFY_OFFSET(dev_handle, 0x00); | 6161 | VERIFY_OFFSET(dev_handle, 0x00); |