diff options
author | andrew.vasquez@qlogic.com <andrew.vasquez@qlogic.com> | 2006-03-09 17:27:18 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-03-12 10:38:22 -0500 |
commit | 48c02fde949f15920c0018d33d285fd39730d24b (patch) | |
tree | aded9282ed2e45b0d0c9e73c95cfd60cfbadfba7 /drivers/scsi/qla2xxx/qla_os.c | |
parent | 044cc6c8ec311c4ddeebfcc31c53dea282de70b7 (diff) |
[SCSI] qla2xxx: Consolidate ISP63xx handling.
As new 23xx firmware will accomidate ISP63xx types.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 131614751196..4dc08d94ebec 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -2596,13 +2596,12 @@ qla2x00_down_timeout(struct semaphore *sema, unsigned long timeout) | |||
2596 | 2596 | ||
2597 | /* Firmware interface routines. */ | 2597 | /* Firmware interface routines. */ |
2598 | 2598 | ||
2599 | #define FW_BLOBS 6 | 2599 | #define FW_BLOBS 5 |
2600 | #define FW_ISP21XX 0 | 2600 | #define FW_ISP21XX 0 |
2601 | #define FW_ISP22XX 1 | 2601 | #define FW_ISP22XX 1 |
2602 | #define FW_ISP2300 2 | 2602 | #define FW_ISP2300 2 |
2603 | #define FW_ISP2322 3 | 2603 | #define FW_ISP2322 3 |
2604 | #define FW_ISP63XX 4 | 2604 | #define FW_ISP24XX 4 |
2605 | #define FW_ISP24XX 5 | ||
2606 | 2605 | ||
2607 | static DECLARE_MUTEX(qla_fw_lock); | 2606 | static DECLARE_MUTEX(qla_fw_lock); |
2608 | 2607 | ||
@@ -2611,7 +2610,6 @@ static struct fw_blob qla_fw_blobs[FW_BLOBS] = { | |||
2611 | { .name = "ql2200_fw.bin", .segs = { 0x1000, 0 }, }, | 2610 | { .name = "ql2200_fw.bin", .segs = { 0x1000, 0 }, }, |
2612 | { .name = "ql2300_fw.bin", .segs = { 0x800, 0 }, }, | 2611 | { .name = "ql2300_fw.bin", .segs = { 0x800, 0 }, }, |
2613 | { .name = "ql2322_fw.bin", .segs = { 0x800, 0x1c000, 0x1e000, 0 }, }, | 2612 | { .name = "ql2322_fw.bin", .segs = { 0x800, 0x1c000, 0x1e000, 0 }, }, |
2614 | { .name = "ql6312_fw.bin", .segs = { 0x800, 0 }, }, | ||
2615 | { .name = "ql2400_fw.bin", }, | 2613 | { .name = "ql2400_fw.bin", }, |
2616 | }; | 2614 | }; |
2617 | 2615 | ||
@@ -2625,12 +2623,10 @@ qla2x00_request_firmware(scsi_qla_host_t *ha) | |||
2625 | blob = &qla_fw_blobs[FW_ISP21XX]; | 2623 | blob = &qla_fw_blobs[FW_ISP21XX]; |
2626 | } else if (IS_QLA2200(ha)) { | 2624 | } else if (IS_QLA2200(ha)) { |
2627 | blob = &qla_fw_blobs[FW_ISP22XX]; | 2625 | blob = &qla_fw_blobs[FW_ISP22XX]; |
2628 | } else if (IS_QLA2300(ha) || IS_QLA2312(ha)) { | 2626 | } else if (IS_QLA2300(ha) || IS_QLA2312(ha) || IS_QLA6312(ha)) { |
2629 | blob = &qla_fw_blobs[FW_ISP2300]; | 2627 | blob = &qla_fw_blobs[FW_ISP2300]; |
2630 | } else if (IS_QLA2322(ha)) { | 2628 | } else if (IS_QLA2322(ha) || IS_QLA6322(ha)) { |
2631 | blob = &qla_fw_blobs[FW_ISP2322]; | 2629 | blob = &qla_fw_blobs[FW_ISP2322]; |
2632 | } else if (IS_QLA6312(ha) || IS_QLA6322(ha)) { | ||
2633 | blob = &qla_fw_blobs[FW_ISP63XX]; | ||
2634 | } else if (IS_QLA24XX(ha) || IS_QLA54XX(ha)) { | 2630 | } else if (IS_QLA24XX(ha) || IS_QLA54XX(ha)) { |
2635 | blob = &qla_fw_blobs[FW_ISP24XX]; | 2631 | blob = &qla_fw_blobs[FW_ISP24XX]; |
2636 | } | 2632 | } |