aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_os.c
diff options
context:
space:
mode:
authorAndrew Vasquez <andrew.vasquez@qlogic.com>2006-05-17 18:09:34 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-05-20 10:49:13 -0400
commit441d1072040823feb4950a21094860bfddd310c0 (patch)
tree590e90b78af52ab69530cec945f980d7290b844e /drivers/scsi/qla2xxx/qla_os.c
parent4971cd221ad3f1266b87aa0e996d082d91bac2a6 (diff)
[SCSI] qla2xxx: Remove obsolete firmware-loader-module support.
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.c54
1 files changed, 17 insertions, 37 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index 22e8714a91fd..ea8239dcbbbf 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -54,13 +54,6 @@ module_param(ql2xloginretrycount, int, S_IRUGO|S_IRUSR);
54MODULE_PARM_DESC(ql2xloginretrycount, 54MODULE_PARM_DESC(ql2xloginretrycount,
55 "Specify an alternate value for the NVRAM login retry count."); 55 "Specify an alternate value for the NVRAM login retry count.");
56 56
57#if defined(CONFIG_SCSI_QLA2XXX_EMBEDDED_FIRMWARE)
58int ql2xfwloadflash;
59module_param(ql2xfwloadflash, int, S_IRUGO|S_IRUSR);
60MODULE_PARM_DESC(ql2xfwloadflash,
61 "Load ISP24xx firmware image from FLASH (onboard memory).");
62#endif
63
64static void qla2x00_free_device(scsi_qla_host_t *); 57static void qla2x00_free_device(scsi_qla_host_t *);
65 58
66static void qla2x00_config_dma_addressing(scsi_qla_host_t *ha); 59static void qla2x00_config_dma_addressing(scsi_qla_host_t *ha);
@@ -1150,18 +1143,22 @@ qla2x00_set_isp_flags(scsi_qla_host_t *ha)
1150 case PCI_DEVICE_ID_QLOGIC_ISP2100: 1143 case PCI_DEVICE_ID_QLOGIC_ISP2100:
1151 ha->device_type |= DT_ISP2100; 1144 ha->device_type |= DT_ISP2100;
1152 ha->device_type &= ~DT_EXTENDED_IDS; 1145 ha->device_type &= ~DT_EXTENDED_IDS;
1146 ha->fw_srisc_address = RISC_START_ADDRESS_2100;
1153 break; 1147 break;
1154 case PCI_DEVICE_ID_QLOGIC_ISP2200: 1148 case PCI_DEVICE_ID_QLOGIC_ISP2200:
1155 ha->device_type |= DT_ISP2200; 1149 ha->device_type |= DT_ISP2200;
1156 ha->device_type &= ~DT_EXTENDED_IDS; 1150 ha->device_type &= ~DT_EXTENDED_IDS;
1151 ha->fw_srisc_address = RISC_START_ADDRESS_2100;
1157 break; 1152 break;
1158 case PCI_DEVICE_ID_QLOGIC_ISP2300: 1153 case PCI_DEVICE_ID_QLOGIC_ISP2300:
1159 ha->device_type |= DT_ISP2300; 1154 ha->device_type |= DT_ISP2300;
1160 ha->device_type |= DT_ZIO_SUPPORTED; 1155 ha->device_type |= DT_ZIO_SUPPORTED;
1156 ha->fw_srisc_address = RISC_START_ADDRESS_2300;
1161 break; 1157 break;
1162 case PCI_DEVICE_ID_QLOGIC_ISP2312: 1158 case PCI_DEVICE_ID_QLOGIC_ISP2312:
1163 ha->device_type |= DT_ISP2312; 1159 ha->device_type |= DT_ISP2312;
1164 ha->device_type |= DT_ZIO_SUPPORTED; 1160 ha->device_type |= DT_ZIO_SUPPORTED;
1161 ha->fw_srisc_address = RISC_START_ADDRESS_2300;
1165 break; 1162 break;
1166 case PCI_DEVICE_ID_QLOGIC_ISP2322: 1163 case PCI_DEVICE_ID_QLOGIC_ISP2322:
1167 ha->device_type |= DT_ISP2322; 1164 ha->device_type |= DT_ISP2322;
@@ -1169,26 +1166,33 @@ qla2x00_set_isp_flags(scsi_qla_host_t *ha)
1169 if (ha->pdev->subsystem_vendor == 0x1028 && 1166 if (ha->pdev->subsystem_vendor == 0x1028 &&
1170 ha->pdev->subsystem_device == 0x0170) 1167 ha->pdev->subsystem_device == 0x0170)
1171 ha->device_type |= DT_OEM_001; 1168 ha->device_type |= DT_OEM_001;
1169 ha->fw_srisc_address = RISC_START_ADDRESS_2300;
1172 break; 1170 break;
1173 case PCI_DEVICE_ID_QLOGIC_ISP6312: 1171 case PCI_DEVICE_ID_QLOGIC_ISP6312:
1174 ha->device_type |= DT_ISP6312; 1172 ha->device_type |= DT_ISP6312;
1173 ha->fw_srisc_address = RISC_START_ADDRESS_2300;
1175 break; 1174 break;
1176 case PCI_DEVICE_ID_QLOGIC_ISP6322: 1175 case PCI_DEVICE_ID_QLOGIC_ISP6322:
1177 ha->device_type |= DT_ISP6322; 1176 ha->device_type |= DT_ISP6322;
1177 ha->fw_srisc_address = RISC_START_ADDRESS_2300;
1178 break; 1178 break;
1179 case PCI_DEVICE_ID_QLOGIC_ISP2422: 1179 case PCI_DEVICE_ID_QLOGIC_ISP2422:
1180 ha->device_type |= DT_ISP2422; 1180 ha->device_type |= DT_ISP2422;
1181 ha->device_type |= DT_ZIO_SUPPORTED; 1181 ha->device_type |= DT_ZIO_SUPPORTED;
1182 ha->fw_srisc_address = RISC_START_ADDRESS_2400;
1182 break; 1183 break;
1183 case PCI_DEVICE_ID_QLOGIC_ISP2432: 1184 case PCI_DEVICE_ID_QLOGIC_ISP2432:
1184 ha->device_type |= DT_ISP2432; 1185 ha->device_type |= DT_ISP2432;
1185 ha->device_type |= DT_ZIO_SUPPORTED; 1186 ha->device_type |= DT_ZIO_SUPPORTED;
1187 ha->fw_srisc_address = RISC_START_ADDRESS_2400;
1186 break; 1188 break;
1187 case PCI_DEVICE_ID_QLOGIC_ISP5422: 1189 case PCI_DEVICE_ID_QLOGIC_ISP5422:
1188 ha->device_type |= DT_ISP5422; 1190 ha->device_type |= DT_ISP5422;
1191 ha->fw_srisc_address = RISC_START_ADDRESS_2400;
1189 break; 1192 break;
1190 case PCI_DEVICE_ID_QLOGIC_ISP5432: 1193 case PCI_DEVICE_ID_QLOGIC_ISP5432:
1191 ha->device_type |= DT_ISP5432; 1194 ha->device_type |= DT_ISP5432;
1195 ha->fw_srisc_address = RISC_START_ADDRESS_2400;
1192 break; 1196 break;
1193 } 1197 }
1194} 1198}
@@ -1235,7 +1239,7 @@ qla2x00_iospace_config(scsi_qla_host_t *ha)
1235 goto iospace_error_exit; 1239 goto iospace_error_exit;
1236 } 1240 }
1237 1241
1238 if (pci_request_regions(ha->pdev, ha->brd_info->drv_name)) { 1242 if (pci_request_regions(ha->pdev, "qla2xxx")) {
1239 qla_printk(KERN_WARNING, ha, 1243 qla_printk(KERN_WARNING, ha,
1240 "Failed to reserve PIO/MMIO regions (%s)\n", 1244 "Failed to reserve PIO/MMIO regions (%s)\n",
1241 pci_name(ha->pdev)); 1245 pci_name(ha->pdev));
@@ -1317,7 +1321,7 @@ qla24xx_disable_intrs(scsi_qla_host_t *ha)
1317/* 1321/*
1318 * PCI driver interface 1322 * PCI driver interface
1319 */ 1323 */
1320int qla2x00_probe_one(struct pci_dev *pdev, struct qla_board_info *brd_info) 1324static int qla2x00_probe_one(struct pci_dev *pdev)
1321{ 1325{
1322 int ret = -ENODEV; 1326 int ret = -ENODEV;
1323 device_reg_t __iomem *reg; 1327 device_reg_t __iomem *reg;
@@ -1351,8 +1355,7 @@ int qla2x00_probe_one(struct pci_dev *pdev, struct qla_board_info *brd_info)
1351 ha->pdev = pdev; 1355 ha->pdev = pdev;
1352 ha->host = host; 1356 ha->host = host;
1353 ha->host_no = host->host_no; 1357 ha->host_no = host->host_no;
1354 ha->brd_info = brd_info; 1358 sprintf(ha->host_str, "qla2xxx_%ld", ha->host_no);
1355 sprintf(ha->host_str, "%s_%ld", ha->brd_info->drv_name, ha->host_no);
1356 1359
1357 /* Set ISP-type information. */ 1360 /* Set ISP-type information. */
1358 qla2x00_set_isp_flags(ha); 1361 qla2x00_set_isp_flags(ha);
@@ -1449,10 +1452,6 @@ int qla2x00_probe_one(struct pci_dev *pdev, struct qla_board_info *brd_info)
1449 ha->isp_ops.nvram_config = qla24xx_nvram_config; 1452 ha->isp_ops.nvram_config = qla24xx_nvram_config;
1450 ha->isp_ops.update_fw_options = qla24xx_update_fw_options; 1453 ha->isp_ops.update_fw_options = qla24xx_update_fw_options;
1451 ha->isp_ops.load_risc = qla24xx_load_risc; 1454 ha->isp_ops.load_risc = qla24xx_load_risc;
1452#if defined(CONFIG_SCSI_QLA2XXX_EMBEDDED_FIRMWARE)
1453 if (ql2xfwloadflash)
1454 ha->isp_ops.load_risc = qla24xx_load_risc_flash;
1455#endif
1456 ha->isp_ops.pci_info_str = qla24xx_pci_info_str; 1455 ha->isp_ops.pci_info_str = qla24xx_pci_info_str;
1457 ha->isp_ops.fw_version_str = qla24xx_fw_version_str; 1456 ha->isp_ops.fw_version_str = qla24xx_fw_version_str;
1458 ha->isp_ops.intr_handler = qla24xx_intr_handler; 1457 ha->isp_ops.intr_handler = qla24xx_intr_handler;
@@ -1539,7 +1538,7 @@ int qla2x00_probe_one(struct pci_dev *pdev, struct qla_board_info *brd_info)
1539 host->transportt = qla2xxx_transport_template; 1538 host->transportt = qla2xxx_transport_template;
1540 1539
1541 ret = request_irq(pdev->irq, ha->isp_ops.intr_handler, 1540 ret = request_irq(pdev->irq, ha->isp_ops.intr_handler,
1542 SA_INTERRUPT|SA_SHIRQ, ha->brd_info->drv_name, ha); 1541 SA_INTERRUPT|SA_SHIRQ, "qla2xxx", ha);
1543 if (ret) { 1542 if (ret) {
1544 qla_printk(KERN_WARNING, ha, 1543 qla_printk(KERN_WARNING, ha,
1545 "Failed to reserve interrupt %d already in use.\n", 1544 "Failed to reserve interrupt %d already in use.\n",
@@ -1637,9 +1636,8 @@ probe_disable_device:
1637probe_out: 1636probe_out:
1638 return ret; 1637 return ret;
1639} 1638}
1640EXPORT_SYMBOL_GPL(qla2x00_probe_one);
1641 1639
1642void qla2x00_remove_one(struct pci_dev *pdev) 1640static void qla2x00_remove_one(struct pci_dev *pdev)
1643{ 1641{
1644 scsi_qla_host_t *ha; 1642 scsi_qla_host_t *ha;
1645 1643
@@ -1657,7 +1655,6 @@ void qla2x00_remove_one(struct pci_dev *pdev)
1657 1655
1658 pci_set_drvdata(pdev, NULL); 1656 pci_set_drvdata(pdev, NULL);
1659} 1657}
1660EXPORT_SYMBOL_GPL(qla2x00_remove_one);
1661 1658
1662static void 1659static void
1663qla2x00_free_device(scsi_qla_host_t *ha) 1660qla2x00_free_device(scsi_qla_host_t *ha)
@@ -2539,14 +2536,6 @@ qla2x00_down_timeout(struct semaphore *sema, unsigned long timeout)
2539 return -ETIMEDOUT; 2536 return -ETIMEDOUT;
2540} 2537}
2541 2538
2542#if defined(CONFIG_SCSI_QLA2XXX_EMBEDDED_FIRMWARE)
2543
2544#define qla2x00_release_firmware() do { } while (0)
2545#define qla2x00_pci_module_init() (0)
2546#define qla2x00_pci_module_exit() do { } while (0)
2547
2548#else /* !defined(CONFIG_SCSI_QLA2XXX_EMBEDDED_FIRMWARE) */
2549
2550/* Firmware interface routines. */ 2539/* Firmware interface routines. */
2551 2540
2552#define FW_BLOBS 5 2541#define FW_BLOBS 5
@@ -2613,10 +2602,6 @@ qla2x00_release_firmware(void)
2613 up(&qla_fw_lock); 2602 up(&qla_fw_lock);
2614} 2603}
2615 2604
2616static struct qla_board_info qla_board_tbl = {
2617 .drv_name = "qla2xxx",
2618};
2619
2620static struct pci_device_id qla2xxx_pci_tbl[] = { 2605static struct pci_device_id qla2xxx_pci_tbl[] = {
2621 { PCI_VENDOR_ID_QLOGIC, PCI_DEVICE_ID_QLOGIC_ISP2100, 2606 { PCI_VENDOR_ID_QLOGIC, PCI_DEVICE_ID_QLOGIC_ISP2100,
2622 PCI_ANY_ID, PCI_ANY_ID, }, 2607 PCI_ANY_ID, PCI_ANY_ID, },
@@ -2647,7 +2632,7 @@ MODULE_DEVICE_TABLE(pci, qla2xxx_pci_tbl);
2647static int __devinit 2632static int __devinit
2648qla2xxx_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) 2633qla2xxx_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
2649{ 2634{
2650 return qla2x00_probe_one(pdev, &qla_board_tbl); 2635 return qla2x00_probe_one(pdev);
2651} 2636}
2652 2637
2653static void __devexit 2638static void __devexit
@@ -2678,8 +2663,6 @@ qla2x00_pci_module_exit(void)
2678 pci_unregister_driver(&qla2xxx_pci_driver); 2663 pci_unregister_driver(&qla2xxx_pci_driver);
2679} 2664}
2680 2665
2681#endif
2682
2683/** 2666/**
2684 * qla2x00_module_init - Module initialization. 2667 * qla2x00_module_init - Module initialization.
2685 **/ 2668 **/
@@ -2699,9 +2682,6 @@ qla2x00_module_init(void)
2699 2682
2700 /* Derive version string. */ 2683 /* Derive version string. */
2701 strcpy(qla2x00_version_str, QLA2XXX_VERSION); 2684 strcpy(qla2x00_version_str, QLA2XXX_VERSION);
2702#if defined(CONFIG_SCSI_QLA2XXX_EMBEDDED_FIRMWARE)
2703 strcat(qla2x00_version_str, "-fw");
2704#endif
2705#if DEBUG_QLA2100 2685#if DEBUG_QLA2100
2706 strcat(qla2x00_version_str, "-debug"); 2686 strcat(qla2x00_version_str, "-debug");
2707#endif 2687#endif