[PATCH] W1: w1_netlink: New init/fini netlink callbacks.
[linux-2.6/verdex.git] / drivers / scsi / qla2xxx / ql2200.c
blob5b5ee73744b2888c7592b60ccae543de7db5b45e
1 /*
2 * QLogic ISP2200 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.
7 */
9 #include <linux/init.h>
10 #include <linux/module.h>
11 #include <linux/pci.h>
13 #include "qla_def.h"
15 static char qla_driver_name[] = "qla2200";
17 extern unsigned char fw2200tp_version[];
18 extern unsigned char fw2200tp_version_str[];
19 extern unsigned short fw2200tp_addr01;
20 extern unsigned short fw2200tp_code01[];
21 extern unsigned short fw2200tp_length01;
23 static struct qla_fw_info qla_fw_tbl[] = {
25 .addressing = FW_INFO_ADDR_NORMAL,
26 .fwcode = &fw2200tp_code01[0],
27 .fwlen = &fw2200tp_length01,
28 .fwstart = &fw2200tp_addr01,
31 { FW_INFO_ADDR_NOMORE, },
34 static struct qla_board_info qla_board_tbl = {
35 .drv_name = qla_driver_name,
37 .isp_name = "ISP2200",
38 .fw_info = qla_fw_tbl,
41 static struct pci_device_id qla2200_pci_tbl[] = {
43 .vendor = PCI_VENDOR_ID_QLOGIC,
44 .device = PCI_DEVICE_ID_QLOGIC_ISP2200,
45 .subvendor = PCI_ANY_ID,
46 .subdevice = PCI_ANY_ID,
47 .driver_data = (unsigned long)&qla_board_tbl,
50 {0, 0},
52 MODULE_DEVICE_TABLE(pci, qla2200_pci_tbl);
54 static int __devinit
55 qla2200_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
57 return qla2x00_probe_one(pdev,
58 (struct qla_board_info *)id->driver_data);
61 static void __devexit
62 qla2200_remove_one(struct pci_dev *pdev)
64 qla2x00_remove_one(pdev);
67 static struct pci_driver qla2200_pci_driver = {
68 .name = "qla2200",
69 .id_table = qla2200_pci_tbl,
70 .probe = qla2200_probe_one,
71 .remove = __devexit_p(qla2200_remove_one),
74 static int __init
75 qla2200_init(void)
77 return pci_module_init(&qla2200_pci_driver);
80 static void __exit
81 qla2200_exit(void)
83 pci_unregister_driver(&qla2200_pci_driver);
86 module_init(qla2200_init);
87 module_exit(qla2200_exit);
89 MODULE_AUTHOR("QLogic Corporation");
90 MODULE_DESCRIPTION("QLogic ISP22xx FC-SCSI Host Bus Adapter driver");
91 MODULE_LICENSE("GPL");
92 MODULE_VERSION(QLA2XXX_VERSION);