diff options
Diffstat (limited to 'drivers/scsi/ipr.h')
-rw-r--r-- | drivers/scsi/ipr.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h index 13f425fb8851..f93f8637c5a1 100644 --- a/drivers/scsi/ipr.h +++ b/drivers/scsi/ipr.h | |||
@@ -38,8 +38,8 @@ | |||
38 | /* | 38 | /* |
39 | * Literals | 39 | * Literals |
40 | */ | 40 | */ |
41 | #define IPR_DRIVER_VERSION "2.5.1" | 41 | #define IPR_DRIVER_VERSION "2.5.2" |
42 | #define IPR_DRIVER_DATE "(August 10, 2010)" | 42 | #define IPR_DRIVER_DATE "(April 27, 2011)" |
43 | 43 | ||
44 | /* | 44 | /* |
45 | * IPR_MAX_CMD_PER_LUN: This defines the maximum number of outstanding | 45 | * IPR_MAX_CMD_PER_LUN: This defines the maximum number of outstanding |
@@ -217,7 +217,8 @@ | |||
217 | #define IPR_CHECK_FOR_RESET_TIMEOUT (HZ / 10) | 217 | #define IPR_CHECK_FOR_RESET_TIMEOUT (HZ / 10) |
218 | #define IPR_WAIT_FOR_BIST_TIMEOUT (2 * HZ) | 218 | #define IPR_WAIT_FOR_BIST_TIMEOUT (2 * HZ) |
219 | #define IPR_PCI_RESET_TIMEOUT (HZ / 2) | 219 | #define IPR_PCI_RESET_TIMEOUT (HZ / 2) |
220 | #define IPR_DUMP_TIMEOUT (15 * HZ) | 220 | #define IPR_SIS32_DUMP_TIMEOUT (15 * HZ) |
221 | #define IPR_SIS64_DUMP_TIMEOUT (40 * HZ) | ||
221 | #define IPR_DUMP_DELAY_SECONDS 4 | 222 | #define IPR_DUMP_DELAY_SECONDS 4 |
222 | #define IPR_DUMP_DELAY_TIMEOUT (IPR_DUMP_DELAY_SECONDS * HZ) | 223 | #define IPR_DUMP_DELAY_TIMEOUT (IPR_DUMP_DELAY_SECONDS * HZ) |
223 | 224 | ||
@@ -285,9 +286,12 @@ IPR_PCII_NO_HOST_RRQ | IPR_PCII_IOARRIN_LOST | IPR_PCII_MMIO_ERROR) | |||
285 | /* | 286 | /* |
286 | * Dump literals | 287 | * Dump literals |
287 | */ | 288 | */ |
288 | #define IPR_MAX_IOA_DUMP_SIZE (4 * 1024 * 1024) | 289 | #define IPR_FMT2_MAX_IOA_DUMP_SIZE (4 * 1024 * 1024) |
289 | #define IPR_NUM_SDT_ENTRIES 511 | 290 | #define IPR_FMT3_MAX_IOA_DUMP_SIZE (32 * 1024 * 1024) |
290 | #define IPR_MAX_NUM_DUMP_PAGES ((IPR_MAX_IOA_DUMP_SIZE / PAGE_SIZE) + 1) | 291 | #define IPR_FMT2_NUM_SDT_ENTRIES 511 |
292 | #define IPR_FMT3_NUM_SDT_ENTRIES 0xFFF | ||
293 | #define IPR_FMT2_MAX_NUM_DUMP_PAGES ((IPR_FMT2_MAX_IOA_DUMP_SIZE / PAGE_SIZE) + 1) | ||
294 | #define IPR_FMT3_MAX_NUM_DUMP_PAGES ((IPR_FMT3_MAX_IOA_DUMP_SIZE / PAGE_SIZE) + 1) | ||
291 | 295 | ||
292 | /* | 296 | /* |
293 | * Misc literals | 297 | * Misc literals |
@@ -474,7 +478,7 @@ struct ipr_cmd_pkt { | |||
474 | 478 | ||
475 | u8 flags_lo; | 479 | u8 flags_lo; |
476 | #define IPR_FLAGS_LO_ALIGNED_BFR 0x20 | 480 | #define IPR_FLAGS_LO_ALIGNED_BFR 0x20 |
477 | #define IPR_FLAGS_LO_DELAY_AFTER_RST 0x10 | 481 | #define IPR_FLAGS_LO_DELAY_AFTER_RST 0x10 |
478 | #define IPR_FLAGS_LO_UNTAGGED_TASK 0x00 | 482 | #define IPR_FLAGS_LO_UNTAGGED_TASK 0x00 |
479 | #define IPR_FLAGS_LO_SIMPLE_TASK 0x02 | 483 | #define IPR_FLAGS_LO_SIMPLE_TASK 0x02 |
480 | #define IPR_FLAGS_LO_ORDERED_TASK 0x04 | 484 | #define IPR_FLAGS_LO_ORDERED_TASK 0x04 |
@@ -1164,7 +1168,7 @@ struct ipr_sdt_header { | |||
1164 | 1168 | ||
1165 | struct ipr_sdt { | 1169 | struct ipr_sdt { |
1166 | struct ipr_sdt_header hdr; | 1170 | struct ipr_sdt_header hdr; |
1167 | struct ipr_sdt_entry entry[IPR_NUM_SDT_ENTRIES]; | 1171 | struct ipr_sdt_entry entry[IPR_FMT3_NUM_SDT_ENTRIES]; |
1168 | }__attribute__((packed, aligned (4))); | 1172 | }__attribute__((packed, aligned (4))); |
1169 | 1173 | ||
1170 | struct ipr_uc_sdt { | 1174 | struct ipr_uc_sdt { |
@@ -1608,7 +1612,7 @@ struct ipr_driver_dump { | |||
1608 | struct ipr_ioa_dump { | 1612 | struct ipr_ioa_dump { |
1609 | struct ipr_dump_entry_header hdr; | 1613 | struct ipr_dump_entry_header hdr; |
1610 | struct ipr_sdt sdt; | 1614 | struct ipr_sdt sdt; |
1611 | __be32 *ioa_data[IPR_MAX_NUM_DUMP_PAGES]; | 1615 | __be32 **ioa_data; |
1612 | u32 reserved; | 1616 | u32 reserved; |
1613 | u32 next_page_index; | 1617 | u32 next_page_index; |
1614 | u32 page_offset; | 1618 | u32 page_offset; |