[CPUFREQ] Fix the p4-clockmod N60 errata workaround.
[linux-2.6/mini2440.git] / drivers / scsi / qla2xxx / ql2300.c
blobfd2f4b795a8a6cb71fcb88abfdd17987fad652a3
1 /*
2 * QLogic Fibre Channel HBA Driver
3 * Copyright (C) 2003 Christoph Hellwig.
4 * Copyright (c) 2003-2005 QLogic Corporation
6 * See LICENSE.qla2xxx for copyright and licensing details.
7 */
8 #include <linux/init.h>
9 #include <linux/module.h>
10 #include <linux/pci.h>
12 #include "qla_def.h"
14 static char qla_driver_name[] = "qla2300";
16 extern unsigned char fw2300ipx_version[];
17 extern unsigned char fw2300ipx_version_str[];
18 extern unsigned short fw2300ipx_addr01;
19 extern unsigned short fw2300ipx_code01[];
20 extern unsigned short fw2300ipx_length01;
22 static struct qla_fw_info qla_fw_tbl[] = {
24 .addressing = FW_INFO_ADDR_NORMAL,
25 .fwcode = &fw2300ipx_code01[0],
26 .fwlen = &fw2300ipx_length01,
27 .fwstart = &fw2300ipx_addr01,
29 { FW_INFO_ADDR_NOMORE, },
32 static struct qla_board_info qla_board_tbl[] = {
34 .drv_name = qla_driver_name,
35 .isp_name = "ISP2300",
36 .fw_info = qla_fw_tbl,
39 .drv_name = qla_driver_name,
40 .isp_name = "ISP2312",
41 .fw_info = qla_fw_tbl,
45 static struct pci_device_id qla2300_pci_tbl[] = {
47 .vendor = PCI_VENDOR_ID_QLOGIC,
48 .device = PCI_DEVICE_ID_QLOGIC_ISP2300,
49 .subvendor = PCI_ANY_ID,
50 .subdevice = PCI_ANY_ID,
51 .driver_data = (unsigned long)&qla_board_tbl[0],
54 .vendor = PCI_VENDOR_ID_QLOGIC,
55 .device = PCI_DEVICE_ID_QLOGIC_ISP2312,
56 .subvendor = PCI_ANY_ID,
57 .subdevice = PCI_ANY_ID,
58 .driver_data = (unsigned long)&qla_board_tbl[1],
60 {0, 0},
62 MODULE_DEVICE_TABLE(pci, qla2300_pci_tbl);
64 static int __devinit
65 qla2300_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
67 return qla2x00_probe_one(pdev,
68 (struct qla_board_info *)id->driver_data);
71 static void __devexit
72 qla2300_remove_one(struct pci_dev *pdev)
74 qla2x00_remove_one(pdev);
77 static struct pci_driver qla2300_pci_driver = {
78 .name = "qla2300",
79 .id_table = qla2300_pci_tbl,
80 .probe = qla2300_probe_one,
81 .remove = __devexit_p(qla2300_remove_one),
84 static int __init
85 qla2300_init(void)
87 return pci_module_init(&qla2300_pci_driver);
90 static void __exit
91 qla2300_exit(void)
93 pci_unregister_driver(&qla2300_pci_driver);
96 module_init(qla2300_init);
97 module_exit(qla2300_exit);
99 MODULE_AUTHOR("QLogic Corporation");
100 MODULE_DESCRIPTION("QLogic ISP23xx FC-SCSI Host Bus Adapter driver");
101 MODULE_LICENSE("GPL");
102 MODULE_VERSION(QLA2XXX_VERSION);