bfa: Brocade BFA FC SCSI driver (bfa part-1)
Subsystems (2)
PATCH 2/14 bfa: Brocade BFA FC SCSI driver (bfa part-1)
From: Jing Huang <[email protected]>
This patch contains code to access Brocade Fibre channel HBA firmware/hardware, part-1
--- bfa_aen.c | 53 + bfa_callback_priv.h | 57 + bfa_cb_ioim_macros.h | 213 ++++++ bfa_cee.c | 492 +++++++++++++++ bfa_core.c | 402 ++++++++++++ bfa_csdebug.c | 58 + bfa_fcpim.c | 175 +++++ bfa_fcpim_priv.h | 188 +++++ bfa_fcport.c | 1672 +++++++++++++++++++++++++++++++++++++++++++++++++++ bfa_fcxp.c | 782 +++++++++++++++++++++++ bfa_fcxp_priv.h | 138 ++++ bfa_fwimg_priv.h | 31 bfa_hw_cb.c | 142 ++++ bfa_hw_ct.c | 162 ++++ bfa_intr.c | 218 ++++++ bfa_intr_priv.h | 115 +++ 16 files changed, 4898 insertions(+)
drivers/scsi/bfa/bfa_aen.c +53 -0
@@ -0,0 +1,53 @@ +/* +* 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. +*/ + +#include "bfad_drv.h" + +static inline u8 +n2b (u8 n) +{ +if (n <=0x09 ) +return (n +'0' ); +else +return (n -0x0a +'a' ); +} + +char * +wwn2str (char *buf,int bufsize,u64 wwn) +{ +char *ptr; +union { +wwn_t wwn; +u8 byte[sizeof (wwn_t)]; + } w; +int i =sizeof (wwn_t); + + ptr = buf + bufsize; + *--ptr ='\0' ; + bufsize--; + + w.wwn = wwn; +while (i >0 ) { + i--; + *--ptr =n2b (w.byte[i] &0x0f ); + *--ptr =n2b ((w.byte[i] >>4 ) &0x0f ); +if (i >0 ) + *--ptr =':' ; + } + +return ptr; +}
drivers/scsi/bfa/bfa_callback_priv.h +57 -0
57 lines not on this page · raw message
drivers/scsi/bfa/bfa_cb_ioim_macros.h +213 -0
213 lines not on this page · raw message
drivers/scsi/bfa/bfa_cee.c +492 -0
492 lines not on this page · raw message
drivers/scsi/bfa/bfa_core.c +402 -0
402 lines not on this page · raw message
drivers/scsi/bfa/bfa_csdebug.c +58 -0
58 lines not on this page · raw message
drivers/scsi/bfa/bfa_fcpim.c +175 -0
175 lines not on this page · raw message
drivers/scsi/bfa/bfa_fcpim_priv.h +188 -0
188 lines not on this page · raw message
drivers/scsi/bfa/bfa_fcport.c +1672 -0
1,362 lines not on this page · raw message
drivers/scsi/bfa/bfa_fcxp.c +782 -0
782 lines not on this page · raw message
drivers/scsi/bfa/bfa_fcxp_priv.h +138 -0
138 lines not on this page · raw message
drivers/scsi/bfa/bfa_hw_cb.c +142 -0
142 lines not on this page · raw message
drivers/scsi/bfa/bfa_hw_ct.c +162 -0
162 lines not on this page · raw message
drivers/scsi/bfa/bfa_intr.c +218 -0
218 lines not on this page · raw message
drivers/scsi/bfa/bfa_intr_priv.h +115 -0
115 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.