diff options
author | Joe Carnuccio <joe.carnuccio@qlogic.com> | 2009-03-24 12:08:06 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-04-03 10:22:48 -0400 |
commit | 1d2874de809a14e6780246b99a18bbc0fc0a8f2a (patch) | |
tree | 0f9dc305dc6f802c27bcef6edc607832864b7687 /drivers/scsi/qla2xxx/qla_def.h | |
parent | b9978769877c6c90c8d6777df13b9ae427af40b7 (diff) |
[SCSI] qla2xxx: Add Flash-Access-Control support for recent ISPs.
Given the low-level interface varies from one flash-part
manufacturer to the next, the Flash-Access-Control (FAC) mailbox
command makes the specific flash type transparent to the driver
by encapsulating a basic set of accessor and update routines.
Use these new routines where applicable by querying FAC opcode
get-sector-size at init-time.
Additional cleanups and
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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index 261c869dda22..bca572f93bcc 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h | |||
@@ -2260,7 +2260,7 @@ struct qla_hw_data { | |||
2260 | uint32_t vsan_enabled :1; | 2260 | uint32_t vsan_enabled :1; |
2261 | uint32_t npiv_supported :1; | 2261 | uint32_t npiv_supported :1; |
2262 | uint32_t fce_enabled :1; | 2262 | uint32_t fce_enabled :1; |
2263 | uint32_t hw_event_marker_found:1; | 2263 | uint32_t fac_supported :1; |
2264 | } flags; | 2264 | } flags; |
2265 | 2265 | ||
2266 | /* This spinlock is used to protect "io transactions", you must | 2266 | /* This spinlock is used to protect "io transactions", you must |
@@ -2382,6 +2382,7 @@ struct qla_hw_data { | |||
2382 | IS_QLA25XX(ha) || IS_QLA81XX(ha)) | 2382 | IS_QLA25XX(ha) || IS_QLA81XX(ha)) |
2383 | #define IS_NOPOLLING_TYPE(ha) ((IS_QLA25XX(ha) || IS_QLA81XX(ha)) && \ | 2383 | #define IS_NOPOLLING_TYPE(ha) ((IS_QLA25XX(ha) || IS_QLA81XX(ha)) && \ |
2384 | (ha)->flags.msix_enabled) | 2384 | (ha)->flags.msix_enabled) |
2385 | #define IS_FAC_REQUIRED(ha) (IS_QLA81XX(ha)) | ||
2385 | 2386 | ||
2386 | #define IS_IIDMA_CAPABLE(ha) ((ha)->device_type & DT_IIDMA) | 2387 | #define IS_IIDMA_CAPABLE(ha) ((ha)->device_type & DT_IIDMA) |
2387 | #define IS_FWI2_CAPABLE(ha) ((ha)->device_type & DT_FWI2) | 2388 | #define IS_FWI2_CAPABLE(ha) ((ha)->device_type & DT_FWI2) |