bfa: Brocade BFA FC SCSI driver (bfa part4)
Subsystems (2)
PATCH 5/14 bfa: Brocade BFA FC SCSI driver (bfa part4)
From: Jing Huang <[email protected]>
This patch contains code to access Brocade Fibre channel HBA firmware/hardware, part-4
--- bfa_lps_priv.h | 38 ++ bfa_module.c | 90 +++++ bfa_modules_priv.h | 43 ++ bfa_os_inc.h | 196 +++++++++++ bfa_port.c | 460 ++++++++++++++++++++++++++ bfa_port_priv.h | 90 +++++ bfa_priv.h | 113 ++++++ bfa_rport.c | 911 +++++++++++++++++++++++++++++++++++++++++++++++++++++ bfa_rport_priv.h | 45 ++ bfa_sgpg.c | 231 +++++++++++++ bfa_sgpg_priv.h | 79 ++++ bfa_sm.c | 38 ++ bfa_timer.c | 90 +++++ bfa_trcmod_priv.h | 66 +++ bfa_tskim.c | 689 ++++++++++++++++++++++++++++++++++++++++ bfa_uf.c | 345 ++++++++++++++++++++ bfa_uf_priv.h | 47 ++ 17 files changed, 3571 insertions(+)
drivers/scsi/bfa/bfa_lps_priv.h +38 -0
@@ -0,0 +1,38 @@ +/* +* Copyright (c) 2005-2008 Brocade Communications Systems, Inc. +* All rights reserved +* www.brocade.com +* +* Linux driver for Brocade Fibre Channel Host Bus Adapter. +* +* This program is free software; you can redistribute it and/or modify it +* under the terms of the GNU General Public License (GPL) Version 2 as +* published by the Free Software Foundation +* +* This program is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* General Public License for more details. +*/ + +#ifndef __BFA_LPS_PRIV_H__ +#define __BFA_LPS_PRIV_H__ + +#include <bfa_svc.h> + +struct bfa_lps_mod_s { +struct list_head lps_free_q; +struct list_head lps_active_q; +struct bfa_lps_s *lps_arr; +int num_lps; +}; + +#define BFA_LPS_MOD (__bfa) (&(__bfa)->modules.lps_mod) +#define BFA_LPS_FROM_TAG (__mod, __tag) (&(__mod)->lps_arr[__tag]) + +/* +* external functions +*/ +void bfa_lps_isr (struct bfa_s *bfa,struct bfi_msg_s *msg); + +#endif /* __BFA_LPS_PRIV_H__ */
drivers/scsi/bfa/bfa_module.c +90 -0
90 lines not on this page · raw message
drivers/scsi/bfa/bfa_modules_priv.h +43 -0
43 lines not on this page · raw message
drivers/scsi/bfa/bfa_os_inc.h +196 -0
196 lines not on this page · raw message
drivers/scsi/bfa/bfa_port.c +460 -0
460 lines not on this page · raw message
drivers/scsi/bfa/bfa_port_priv.h +90 -0
90 lines not on this page · raw message
drivers/scsi/bfa/bfa_priv.h +113 -0
113 lines not on this page · raw message
drivers/scsi/bfa/bfa_rport.c +911 -0
911 lines not on this page · raw message
drivers/scsi/bfa/bfa_rport_priv.h +45 -0
45 lines not on this page · raw message
drivers/scsi/bfa/bfa_sgpg.c +231 -0
231 lines not on this page · raw message
drivers/scsi/bfa/bfa_sgpg_priv.h +79 -0
79 lines not on this page · raw message
drivers/scsi/bfa/bfa_sm.c +38 -0
@@ -0,0 +1,38 @@ +/* +* Copyright (c) 2005-2008 Brocade Communications Systems, Inc. +* All rights reserved +* www.brocade.com +* +* Linux driver for Brocade Fibre Channel Host Bus Adapter. +* +* This program is free software; you can redistribute it and/or modify it +* under the terms of the GNU General Public License (GPL) Version 2 as +* published by the Free Software Foundation +* +* This program is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* General Public License for more details. +*/ + +/** +* bfasm.c BFA State machine utility functions +*/ + +#include <cs/bfa_sm.h> + +/** +* cs_sm_api +*/ + +int +bfa_sm_to_state (struct bfa_sm_table_s *smt,bfa_sm_t sm) +{ +int i =0 ; + +while (smt[i].sm && smt[i].sm != sm) + i++; +return smt[i].state; +} + +
drivers/scsi/bfa/bfa_timer.c +90 -0
90 lines not on this page · raw message
drivers/scsi/bfa/bfa_trcmod_priv.h +66 -0
66 lines not on this page · raw message
drivers/scsi/bfa/bfa_tskim.c +689 -0
510 lines not on this page · raw message
drivers/scsi/bfa/bfa_uf.c +345 -0
345 lines not on this page · raw message
drivers/scsi/bfa/bfa_uf_priv.h +47 -0
47 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.