diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2008-04-03 16:13:19 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-04-07 13:19:13 -0400 |
commit | cb8dacbf1110d8bd39413f3116ff1720f757854e (patch) | |
tree | 8d58f215c7a1091f7e760359c56d1316d9c80f7d /drivers/scsi/qla2xxx/qla_def.h | |
parent | 0971de7f56f809f40edae6fd372745e429e970e9 (diff) |
[SCSI] qla2xxx: Add hardware trace-logging support.
Recent ISPs have a region within FLASH which acts as a repository
for the logging of serious hardware and software failures.
Currently, the region is large enough to support up to 255
entries.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_def.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_def.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index 35c730a3f0da..13ffedaf8cba 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h | |||
@@ -2118,6 +2118,7 @@ struct qla_msix_entry { | |||
2118 | /* Work events. */ | 2118 | /* Work events. */ |
2119 | enum qla_work_type { | 2119 | enum qla_work_type { |
2120 | QLA_EVT_AEN, | 2120 | QLA_EVT_AEN, |
2121 | QLA_EVT_HWE_LOG, | ||
2121 | }; | 2122 | }; |
2122 | 2123 | ||
2123 | 2124 | ||
@@ -2132,6 +2133,10 @@ struct qla_work_evt { | |||
2132 | enum fc_host_event_code code; | 2133 | enum fc_host_event_code code; |
2133 | u32 data; | 2134 | u32 data; |
2134 | } aen; | 2135 | } aen; |
2136 | struct { | ||
2137 | uint16_t code; | ||
2138 | uint16_t d1, d2, d3; | ||
2139 | } hwe; | ||
2135 | } u; | 2140 | } u; |
2136 | }; | 2141 | }; |
2137 | 2142 | ||
@@ -2173,6 +2178,7 @@ typedef struct scsi_qla_host { | |||
2173 | uint32_t vsan_enabled :1; | 2178 | uint32_t vsan_enabled :1; |
2174 | uint32_t npiv_supported :1; | 2179 | uint32_t npiv_supported :1; |
2175 | uint32_t fce_enabled :1; | 2180 | uint32_t fce_enabled :1; |
2181 | uint32_t hw_event_marker_found :1; | ||
2176 | } flags; | 2182 | } flags; |
2177 | 2183 | ||
2178 | atomic_t loop_state; | 2184 | atomic_t loop_state; |
@@ -2478,6 +2484,10 @@ typedef struct scsi_qla_host { | |||
2478 | uint64_t fce_wr, fce_rd; | 2484 | uint64_t fce_wr, fce_rd; |
2479 | struct mutex fce_mutex; | 2485 | struct mutex fce_mutex; |
2480 | 2486 | ||
2487 | uint32_t hw_event_start; | ||
2488 | uint32_t hw_event_ptr; | ||
2489 | uint32_t hw_event_pause_errors; | ||
2490 | |||
2481 | uint8_t host_str[16]; | 2491 | uint8_t host_str[16]; |
2482 | uint32_t pci_attr; | 2492 | uint32_t pci_attr; |
2483 | uint16_t chip_revision; | 2493 | uint16_t chip_revision; |