[SCSI] qla2xxx: Update license.
[usb.git] / drivers / scsi / qla2xxx / ql2100.c
blobf5db2235e432edf2bd6a6e559fad4cece04533b5
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[] = "qla2100";
16 extern unsigned char fw2100tp_version[];
17 extern unsigned char fw2100tp_version_str[];
18 extern unsigned short fw2100tp_addr01;
19 extern unsigned short fw2100tp_code01[];
20 extern unsigned short fw2100tp_length01;
22 static struct qla_fw_info qla_fw_tbl[] = {
24 .addressing = FW_INFO_ADDR_NORMAL,
25 .fwcode = &fw2100tp_code01[0],
26 .fwlen = &fw2100tp_length01,
27 .fwstart = &fw2100tp_addr01,
30 { FW_INFO_ADDR_NOMORE, },
33 static struct qla_board_info qla_board_tbl = {
34 .drv_name = qla_driver_name,
36 .isp_name = "ISP2100",
37 .fw_info = qla_fw_tbl,
40 static struct pci_device_id qla2100_pci_tbl[] = {
42 .vendor = PCI_VENDOR_ID_QLOGIC,
43 .device = PCI_DEVICE_ID_QLOGIC_ISP2100,
44 .subvendor = PCI_ANY_ID,
45 .subdevice = PCI_ANY_ID,
46 .driver_data = (unsigned long)&qla_board_tbl,
49 {0, 0},
51 MODULE_DEVICE_TABLE(pci, qla2100_pci_tbl);
53 static int __devinit
54 qla2100_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
56 return qla2x00_probe_one(pdev,
57 (struct qla_board_info *)id->driver_data);
60 static void __devexit
61 qla2100_remove_one(struct pci_dev *pdev)
63 qla2x00_remove_one(pdev);
66 static struct pci_driver qla2100_pci_driver = {
67 .name = "qla2100",
68 .id_table = qla2100_pci_tbl,
69 .probe = qla2100_probe_one,
70 .remove = __devexit_p(qla2100_remove_one),
73 static int __init
74 qla2100_init(void)
76 return pci_module_init(&qla2100_pci_driver);
79 static void __exit
80 qla2100_exit(void)
82 pci_unregister_driver(&qla2100_pci_driver);
85 module_init(qla2100_init);
86 module_exit(qla2100_exit);
88 MODULE_AUTHOR("QLogic Corporation");
89 MODULE_DESCRIPTION("QLogic ISP21xx FC-SCSI Host Bus Adapter driver");
90 MODULE_LICENSE("GPL");
91 MODULE_VERSION(QLA2XXX_VERSION);