2 * QLogic ISP6312 device driver for Linux 2.6.x
3 * Copyright (C) 2003-2004 QLogic Corporation (www.qlogic.com)
5 * Released under GPL v2.
8 #include <linux/init.h>
9 #include <linux/module.h>
10 #include <linux/pci.h>
14 static char qla_driver_name[] = "qla6312";
16 extern unsigned char fw2300flx_version[];
17 extern unsigned char fw2300flx_version_str[];
18 extern unsigned short fw2300flx_addr01;
19 extern unsigned short fw2300flx_code01[];
20 extern unsigned short fw2300flx_length01;
22 static struct qla_fw_info qla_fw_tbl[] = {
24 .addressing = FW_INFO_ADDR_NORMAL,
25 .fwcode = &fw2300flx_code01[0],
26 .fwlen = &fw2300flx_length01,
27 .fwstart = &fw2300flx_addr01,
29 { FW_INFO_ADDR_NOMORE, },
32 static struct qla_board_info qla_board_tbl[] = {
34 .drv_name = qla_driver_name,
35 .isp_name = "ISP6312",
36 .fw_info = qla_fw_tbl,
40 static struct pci_device_id qla6312_pci_tbl[] = {
42 .vendor = PCI_VENDOR_ID_QLOGIC,
43 .device = PCI_DEVICE_ID_QLOGIC_ISP6312,
44 .subvendor = PCI_ANY_ID,
45 .subdevice = PCI_ANY_ID,
46 .driver_data = (unsigned long)&qla_board_tbl[0],
50 MODULE_DEVICE_TABLE(pci, qla6312_pci_tbl);
53 qla6312_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
55 return qla2x00_probe_one(pdev,
56 (struct qla_board_info *)id->driver_data);
60 qla6312_remove_one(struct pci_dev *pdev)
62 qla2x00_remove_one(pdev);
65 static struct pci_driver qla6312_pci_driver = {
67 .id_table = qla6312_pci_tbl,
68 .probe = qla6312_probe_one,
69 .remove = __devexit_p(qla6312_remove_one),
75 return pci_module_init(&qla6312_pci_driver);
81 pci_unregister_driver(&qla6312_pci_driver);
84 module_init(qla6312_init);
85 module_exit(qla6312_exit);
87 MODULE_AUTHOR("QLogic Corporation");
88 MODULE_DESCRIPTION("QLogic ISP6312 FC-SCSI Host Bus Adapter driver");
89 MODULE_LICENSE("GPL");
90 MODULE_VERSION(QLA2XXX_VERSION);