diff options
author | Jing Huang <huangj@brocade.com> | 2009-09-23 20:46:15 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-10-02 10:47:40 -0400 |
commit | 7725ccfda59715ecf8f99e3b520a0b84cc2ea79e (patch) | |
tree | df76910891c6b92bf23c06c84955bf600c9d7573 /drivers/scsi/bfa/bfa_module.c | |
parent | 5415907af1f5ef80c95147bacbd321b0d4236dd5 (diff) |
[SCSI] bfa: Brocade BFA FC SCSI driver
Add new driver for Brocade Hardware
Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfa_module.c')
-rw-r--r-- | drivers/scsi/bfa/bfa_module.c | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/bfa_module.c b/drivers/scsi/bfa/bfa_module.c new file mode 100644 index 00000000000..32eda8e1ec6 --- /dev/null +++ b/drivers/scsi/bfa/bfa_module.c | |||
@@ -0,0 +1,90 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2005-2009 Brocade Communications Systems, Inc. | ||
3 | * All rights reserved | ||
4 | * www.brocade.com | ||
5 | * | ||
6 | * Linux driver for Brocade Fibre Channel Host Bus Adapter. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify it | ||
9 | * under the terms of the GNU General Public License (GPL) Version 2 as | ||
10 | * published by the Free Software Foundation | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, but | ||
13 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
15 | * General Public License for more details. | ||
16 | */ | ||
17 | #include <bfa.h> | ||
18 | #include <defs/bfa_defs_pci.h> | ||
19 | #include <cs/bfa_debug.h> | ||
20 | #include <bfa_iocfc.h> | ||
21 | |||
22 | /** | ||
23 | * BFA module list terminated by NULL | ||
24 | */ | ||
25 | struct bfa_module_s *hal_mods[] = { | ||
26 | &hal_mod_sgpg, | ||
27 | &hal_mod_pport, | ||
28 | &hal_mod_fcxp, | ||
29 | &hal_mod_lps, | ||
30 | &hal_mod_uf, | ||
31 | &hal_mod_rport, | ||
32 | &hal_mod_fcpim, | ||
33 | #ifdef BFA_CFG_PBIND | ||
34 | &hal_mod_pbind, | ||
35 | #endif | ||
36 | NULL | ||
37 | }; | ||
38 | |||
39 | /** | ||
40 | * Message handlers for various modules. | ||
41 | */ | ||
42 | bfa_isr_func_t bfa_isrs[BFI_MC_MAX] = { | ||
43 | bfa_isr_unhandled, /* NONE */ | ||
44 | bfa_isr_unhandled, /* BFI_MC_IOC */ | ||
45 | bfa_isr_unhandled, /* BFI_MC_DIAG */ | ||
46 | bfa_isr_unhandled, /* BFI_MC_FLASH */ | ||
47 | bfa_isr_unhandled, /* BFI_MC_CEE */ | ||
48 | bfa_pport_isr, /* BFI_MC_PORT */ | ||
49 | bfa_isr_unhandled, /* BFI_MC_IOCFC */ | ||
50 | bfa_isr_unhandled, /* BFI_MC_LL */ | ||
51 | bfa_uf_isr, /* BFI_MC_UF */ | ||
52 | bfa_fcxp_isr, /* BFI_MC_FCXP */ | ||
53 | bfa_lps_isr, /* BFI_MC_LPS */ | ||
54 | bfa_rport_isr, /* BFI_MC_RPORT */ | ||
55 | bfa_itnim_isr, /* BFI_MC_ITNIM */ | ||
56 | bfa_isr_unhandled, /* BFI_MC_IOIM_READ */ | ||
57 | bfa_isr_unhandled, /* BFI_MC_IOIM_WRITE */ | ||
58 | bfa_isr_unhandled, /* BFI_MC_IOIM_IO */ | ||
59 | bfa_ioim_isr, /* BFI_MC_IOIM */ | ||
60 | bfa_ioim_good_comp_isr, /* BFI_MC_IOIM_IOCOM */ | ||
61 | bfa_tskim_isr, /* BFI_MC_TSKIM */ | ||
62 | bfa_isr_unhandled, /* BFI_MC_SBOOT */ | ||
63 | bfa_isr_unhandled, /* BFI_MC_IPFC */ | ||
64 | bfa_isr_unhandled, /* BFI_MC_PORT */ | ||
65 | bfa_isr_unhandled, /* --------- */ | ||
66 | bfa_isr_unhandled, /* --------- */ | ||
67 | bfa_isr_unhandled, /* --------- */ | ||
68 | bfa_isr_unhandled, /* --------- */ | ||
69 | bfa_isr_unhandled, /* --------- */ | ||
70 | bfa_isr_unhandled, /* --------- */ | ||
71 | bfa_isr_unhandled, /* --------- */ | ||
72 | bfa_isr_unhandled, /* --------- */ | ||
73 | bfa_isr_unhandled, /* --------- */ | ||
74 | bfa_isr_unhandled, /* --------- */ | ||
75 | }; | ||
76 | |||
77 | /** | ||
78 | * Message handlers for mailbox command classes | ||
79 | */ | ||
80 | bfa_ioc_mbox_mcfunc_t bfa_mbox_isrs[BFI_MC_MAX] = { | ||
81 | NULL, | ||
82 | NULL, /* BFI_MC_IOC */ | ||
83 | NULL, /* BFI_MC_DIAG */ | ||
84 | NULL, /* BFI_MC_FLASH */ | ||
85 | NULL, /* BFI_MC_CEE */ | ||
86 | NULL, /* BFI_MC_PORT */ | ||
87 | bfa_iocfc_isr, /* BFI_MC_IOCFC */ | ||
88 | NULL, | ||
89 | }; | ||
90 | |||