aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_os.c
diff options
context:
space:
mode:
authorAndrew Vasquez <andrew.vasquez@qlogic.com>2007-07-19 18:05:56 -0400
committerJames Bottomley <jejb@mulgrave.localdomain>2007-07-20 09:59:09 -0400
commite428924ccdf4644c58e23c2314ab970ff3afc607 (patch)
treed46654e03de740a6fdb2be998edf592ad7002d63 /drivers/scsi/qla2xxx/qla_os.c
parent80ed71ce1a3369521c693ebf30abb9cfe1dc7e66 (diff)
[SCSI] qla2xxx: Generalize FW-Interface-2 support.
In preparation for new ISP 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.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index b5a77b0c0deb..e246f944957d 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -1238,19 +1238,23 @@ qla2x00_set_isp_flags(scsi_qla_host_t *ha)
1238 case PCI_DEVICE_ID_QLOGIC_ISP2422: 1238 case PCI_DEVICE_ID_QLOGIC_ISP2422:
1239 ha->device_type |= DT_ISP2422; 1239 ha->device_type |= DT_ISP2422;
1240 ha->device_type |= DT_ZIO_SUPPORTED; 1240 ha->device_type |= DT_ZIO_SUPPORTED;
1241 ha->device_type |= DT_FWI2;
1241 ha->fw_srisc_address = RISC_START_ADDRESS_2400; 1242 ha->fw_srisc_address = RISC_START_ADDRESS_2400;
1242 break; 1243 break;
1243 case PCI_DEVICE_ID_QLOGIC_ISP2432: 1244 case PCI_DEVICE_ID_QLOGIC_ISP2432:
1244 ha->device_type |= DT_ISP2432; 1245 ha->device_type |= DT_ISP2432;
1245 ha->device_type |= DT_ZIO_SUPPORTED; 1246 ha->device_type |= DT_ZIO_SUPPORTED;
1247 ha->device_type |= DT_FWI2;
1246 ha->fw_srisc_address = RISC_START_ADDRESS_2400; 1248 ha->fw_srisc_address = RISC_START_ADDRESS_2400;
1247 break; 1249 break;
1248 case PCI_DEVICE_ID_QLOGIC_ISP5422: 1250 case PCI_DEVICE_ID_QLOGIC_ISP5422:
1249 ha->device_type |= DT_ISP5422; 1251 ha->device_type |= DT_ISP5422;
1252 ha->device_type |= DT_FWI2;
1250 ha->fw_srisc_address = RISC_START_ADDRESS_2400; 1253 ha->fw_srisc_address = RISC_START_ADDRESS_2400;
1251 break; 1254 break;
1252 case PCI_DEVICE_ID_QLOGIC_ISP5432: 1255 case PCI_DEVICE_ID_QLOGIC_ISP5432:
1253 ha->device_type |= DT_ISP5432; 1256 ha->device_type |= DT_ISP5432;
1257 ha->device_type |= DT_FWI2;
1254 ha->fw_srisc_address = RISC_START_ADDRESS_2400; 1258 ha->fw_srisc_address = RISC_START_ADDRESS_2400;
1255 break; 1259 break;
1256 } 1260 }
@@ -1632,7 +1636,7 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
1632 1636
1633 spin_lock_irqsave(&ha->hardware_lock, flags); 1637 spin_lock_irqsave(&ha->hardware_lock, flags);
1634 reg = ha->iobase; 1638 reg = ha->iobase;
1635 if (IS_QLA24XX(ha) || IS_QLA54XX(ha)) { 1639 if (IS_FWI2_CAPABLE(ha)) {
1636 WRT_REG_DWORD(&reg->isp24.hccr, HCCRX_CLR_HOST_INT); 1640 WRT_REG_DWORD(&reg->isp24.hccr, HCCRX_CLR_HOST_INT);
1637 WRT_REG_DWORD(&reg->isp24.hccr, HCCRX_CLR_RISC_INT); 1641 WRT_REG_DWORD(&reg->isp24.hccr, HCCRX_CLR_RISC_INT);
1638 } else { 1642 } else {
@@ -2025,7 +2029,7 @@ qla2x00_mem_alloc(scsi_qla_host_t *ha)
2025 } 2029 }
2026 memset(ha->ct_sns, 0, sizeof(struct ct_sns_pkt)); 2030 memset(ha->ct_sns, 0, sizeof(struct ct_sns_pkt));
2027 2031
2028 if (IS_QLA24XX(ha) || IS_QLA54XX(ha)) { 2032 if (IS_FWI2_CAPABLE(ha)) {
2029 /* 2033 /*
2030 * Get consistent memory allocated for SFP 2034 * Get consistent memory allocated for SFP
2031 * block. 2035 * block.