aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/ql2322.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/scsi/qla2xxx/ql2322.c
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'drivers/scsi/qla2xxx/ql2322.c')
-rw-r--r--drivers/scsi/qla2xxx/ql2322.c108
1 files changed, 108 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/ql2322.c b/drivers/scsi/qla2xxx/ql2322.c
new file mode 100644
index 000000000000..70b6d75ed634
--- /dev/null
+++ b/drivers/scsi/qla2xxx/ql2322.c
@@ -0,0 +1,108 @@
1/*
2 * QLogic ISP2322 device driver for Linux 2.6.x
3 * Copyright (C) 2003-2004 QLogic Corporation (www.qlogic.com)
4 *
5 * Released under GPL v2.
6 */
7
8#include <linux/init.h>
9#include <linux/module.h>
10#include <linux/pci.h>
11
12#include "qla_def.h"
13
14static char qla_driver_name[] = "qla2322";
15
16extern unsigned char fw2322ipx_version[];
17extern unsigned char fw2322ipx_version_str[];
18extern unsigned short fw2322ipx_addr01;
19extern unsigned short fw2322ipx_code01[];
20extern unsigned short fw2322ipx_length01;
21extern unsigned long rseqipx_code_addr01;
22extern unsigned short rseqipx_code01[];
23extern unsigned short rseqipx_code_length01;
24extern unsigned long xseqipx_code_addr01;
25extern unsigned short xseqipx_code01[];
26extern unsigned short xseqipx_code_length01;
27
28static struct qla_fw_info qla_fw_tbl[] = {
29 {
30 .addressing = FW_INFO_ADDR_NORMAL,
31 .fwcode = &fw2322ipx_code01[0],
32 .fwlen = &fw2322ipx_length01,
33 .fwstart = &fw2322ipx_addr01,
34 },
35 {
36 .addressing = FW_INFO_ADDR_EXTENDED,
37 .fwcode = &rseqipx_code01[0],
38 .fwlen = &rseqipx_code_length01,
39 .lfwstart = &rseqipx_code_addr01,
40 },
41 {
42 .addressing = FW_INFO_ADDR_EXTENDED,
43 .fwcode = &xseqipx_code01[0],
44 .fwlen = &xseqipx_code_length01,
45 .lfwstart = &xseqipx_code_addr01,
46 },
47 { FW_INFO_ADDR_NOMORE, },
48};
49
50static struct qla_board_info qla_board_tbl[] = {
51 {
52 .drv_name = qla_driver_name,
53 .isp_name = "ISP2322",
54 .fw_info = qla_fw_tbl,
55 },
56};
57
58static struct pci_device_id qla2322_pci_tbl[] = {
59 {
60 .vendor = PCI_VENDOR_ID_QLOGIC,
61 .device = PCI_DEVICE_ID_QLOGIC_ISP2322,
62 .subvendor = PCI_ANY_ID,
63 .subdevice = PCI_ANY_ID,
64 .driver_data = (unsigned long)&qla_board_tbl[0],
65 },
66 {0, 0},
67};
68MODULE_DEVICE_TABLE(pci, qla2322_pci_tbl);
69
70static int __devinit
71qla2322_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
72{
73 return qla2x00_probe_one(pdev,
74 (struct qla_board_info *)id->driver_data);
75}
76
77static void __devexit
78qla2322_remove_one(struct pci_dev *pdev)
79{
80 qla2x00_remove_one(pdev);
81}
82
83static struct pci_driver qla2322_pci_driver = {
84 .name = "qla2322",
85 .id_table = qla2322_pci_tbl,
86 .probe = qla2322_probe_one,
87 .remove = __devexit_p(qla2322_remove_one),
88};
89
90static int __init
91qla2322_init(void)
92{
93 return pci_module_init(&qla2322_pci_driver);
94}
95
96static void __exit
97qla2322_exit(void)
98{
99 pci_unregister_driver(&qla2322_pci_driver);
100}
101
102module_init(qla2322_init);
103module_exit(qla2322_exit);
104
105MODULE_AUTHOR("QLogic Corporation");
106MODULE_DESCRIPTION("QLogic ISP2322 FC-SCSI Host Bus Adapter driver");
107MODULE_LICENSE("GPL");
108MODULE_VERSION(QLA2XXX_VERSION);