2 * QLogic ISP2300 device driver for Linux 2.6.x
3 * Copyright (C) 2003 Christoph Hellwig.
4 * Copyright (C) 2003-2005 QLogic Corporation (www.qlogic.com)
6 * Released under GPL v2.
9 #include <linux/init.h>
10 #include <linux/module.h>
11 #include <linux/pci.h>
15 static char qla_driver_name[] = "qla2300";
17 extern unsigned char fw2300ipx_version[];
18 extern unsigned char fw2300ipx_version_str[];
19 extern unsigned short fw2300ipx_addr01;
20 extern unsigned short fw2300ipx_code01[];
21 extern unsigned short fw2300ipx_length01;
23 static struct qla_fw_info qla_fw_tbl[] = {
25 .addressing = FW_INFO_ADDR_NORMAL,
26 .fwcode = &fw2300ipx_code01[0],
27 .fwlen = &fw2300ipx_length01,
28 .fwstart = &fw2300ipx_addr01,
30 { FW_INFO_ADDR_NOMORE, },
33 static struct qla_board_info qla_board_tbl[] = {
35 .drv_name = qla_driver_name,
36 .isp_name = "ISP2300",
37 .fw_info = qla_fw_tbl,
40 .drv_name = qla_driver_name,
41 .isp_name = "ISP2312",
42 .fw_info = qla_fw_tbl,
46 static struct pci_device_id qla2300_pci_tbl[] = {
48 .vendor = PCI_VENDOR_ID_QLOGIC,
49 .device = PCI_DEVICE_ID_QLOGIC_ISP2300,
50 .subvendor = PCI_ANY_ID,
51 .subdevice = PCI_ANY_ID,
52 .driver_data = (unsigned long)&qla_board_tbl[0],
55 .vendor = PCI_VENDOR_ID_QLOGIC,
56 .device = PCI_DEVICE_ID_QLOGIC_ISP2312,
57 .subvendor = PCI_ANY_ID,
58 .subdevice = PCI_ANY_ID,
59 .driver_data = (unsigned long)&qla_board_tbl[1],
63 MODULE_DEVICE_TABLE(pci, qla2300_pci_tbl);
66 qla2300_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
68 return qla2x00_probe_one(pdev,
69 (struct qla_board_info *)id->driver_data);
73 qla2300_remove_one(struct pci_dev *pdev)
75 qla2x00_remove_one(pdev);
78 static struct pci_driver qla2300_pci_driver = {
80 .id_table = qla2300_pci_tbl,
81 .probe = qla2300_probe_one,
82 .remove = __devexit_p(qla2300_remove_one),
88 return pci_module_init(&qla2300_pci_driver);
94 pci_unregister_driver(&qla2300_pci_driver);
97 module_init(qla2300_init);
98 module_exit(qla2300_exit);
100 MODULE_AUTHOR("QLogic Corporation");
101 MODULE_DESCRIPTION("QLogic ISP23xx FC-SCSI Host Bus Adapter driver");
102 MODULE_LICENSE("GPL");
103 MODULE_VERSION(QLA2XXX_VERSION);