Skip to contentSkip to conversation

bfa: Brocade BFA FC SCSI driver (include part1)

PATCH In review Jing Huang 1 participant 1 message Aug 20, 2009

Subsystems (2)
lore
Share & tools
lore

Jing Huang

author
#0 lore raw

PATCH 10/14 bfa: Brocade BFA FC SCSI driver (include part1)

From: Jing Huang <[email protected]>

This patch contains common header files for linux driver, hardware/firmeare interface, and FC state machines. part-1

---
 aen/bfa_aen.h             |   94 +++++++
 aen/bfa_aen_adapter.h     |   31 ++
 aen/bfa_aen_audit.h       |   31 ++
 aen/bfa_aen_ethport.h     |   35 ++
 aen/bfa_aen_ioc.h         |   37 ++
 aen/bfa_aen_itnim.h       |   33 ++
 aen/bfa_aen_lport.h       |   51 +++
 aen/bfa_aen_port.h        |   57 ++++
 aen/bfa_aen_rport.h       |   37 ++
 bfa.h                     |  177 +++++++++++++
 bfa_fcpim.h               |  159 +++++++++++
 bfa_fcptm.h               |   47 +++
 bfa_svc.h                 |  324 ++++++++++++++++++++++++
 bfa_timer.h               |   53 +++
 bfi/bfi.h                 |  174 +++++++++++++
 bfi/bfi_boot.h            |   34 ++
 bfi/bfi_cbreg.h           |  305 ++++++++++++++++++++++
 bfi/bfi_cee.h             |  119 ++++++++
 bfi/bfi_ctreg.h           |  611 ++++++++++++++++++++++++++++++++++++++++++++++
 bfi/bfi_fabric.h          |   92 ++++++
 bfi/bfi_fcpim.h           |  301 ++++++++++++++++++++++
 bfi/bfi_fcxp.h            |   71 +++++
 bfi/bfi_ioc.h             |  202 +++++++++++++++
 bfi/bfi_iocfc.h           |  177 +++++++++++++
 bfi/bfi_lport.h           |   89 ++++++
 bfi/bfi_lps.h             |   96 +++++++
 bfi/bfi_port.h            |  115 ++++++++
 bfi/bfi_pport.h           |  184 +++++++++++++
 bfi/bfi_rport.h           |  104 +++++++
 bfi/bfi_uf.h              |   52 +++
 cna/bfa_cna_trcmod.h      |   36 ++
 cna/cee/bfa_cee.h         |   77 +++++
 cna/port/bfa_port.h       |   69 +++++
 cna/pstats/ethport_defs.h |   36 ++
 cna/pstats/phyport_defs.h |  218 ++++++++++++++++
 35 files changed, 4328 insertions(+)
drivers/scsi/bfa/include/aen/bfa_aen_adapter.h +31 -0
diff -urpN orig/drivers/scsi/bfa/include/aen/bfa_aen_adapter.h patch/drivers/scsi/bfa/include/aen/bfa_aen_adapter.h
@@ -0,0 +1,31 @@
+/*
+ * 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.
+ */
+
+/* messages define for BFA_AEN_CAT_ADAPTER Module */
+#ifndef	__bfa_aen_adapter_h__
+#define	__bfa_aen_adapter_h__
+
+#include  <cs/bfa_log.h>
+#include  <defs/bfa_defs_aen.h>
+
+#define BFA_AEN_ADAPTER_ADD \
+	BFA_LOG_CREATE_ID(BFA_AEN_CAT_ADAPTER, BFA_ADAPTER_AEN_ADD)
+#define BFA_AEN_ADAPTER_REMOVE \
+	BFA_LOG_CREATE_ID(BFA_AEN_CAT_ADAPTER, BFA_ADAPTER_AEN_REMOVE)
+
+#endif
+
drivers/scsi/bfa/include/aen/bfa_aen_audit.h +31 -0
diff -urpN orig/drivers/scsi/bfa/include/aen/bfa_aen_audit.h patch/drivers/scsi/bfa/include/aen/bfa_aen_audit.h
@@ -0,0 +1,31 @@
+/*
+ * 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.
+ */
+
+/* messages define for BFA_AEN_CAT_AUDIT Module */
+#ifndef	__bfa_aen_audit_h__
+#define	__bfa_aen_audit_h__
+
+#include  <cs/bfa_log.h>
+#include  <defs/bfa_defs_aen.h>
+
+#define BFA_AEN_AUDIT_AUTH_ENABLE \
+	BFA_LOG_CREATE_ID(BFA_AEN_CAT_AUDIT, BFA_AUDIT_AEN_AUTH_ENABLE)
+#define BFA_AEN_AUDIT_AUTH_DISABLE \
+	BFA_LOG_CREATE_ID(BFA_AEN_CAT_AUDIT, BFA_AUDIT_AEN_AUTH_DISABLE)
+
+#endif
+
drivers/scsi/bfa/include/aen/bfa_aen_ethport.h +35 -0
diff -urpN orig/drivers/scsi/bfa/include/aen/bfa_aen_ethport.h patch/drivers/scsi/bfa/include/aen/bfa_aen_ethport.h
@@ -0,0 +1,35 @@
+/*
+ * 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.
+ */
+
+/* messages define for BFA_AEN_CAT_ETHPORT Module */
+#ifndef	__bfa_aen_ethport_h__
+#define	__bfa_aen_ethport_h__
+
+#include  <cs/bfa_log.h>
+#include  <defs/bfa_defs_aen.h>
+
+#define BFA_AEN_ETHPORT_LINKUP \
+	BFA_LOG_CREATE_ID(BFA_AEN_CAT_ETHPORT, BFA_ETHPORT_AEN_LINKUP)
+#define BFA_AEN_ETHPORT_LINKDOWN \
+	BFA_LOG_CREATE_ID(BFA_AEN_CAT_ETHPORT, BFA_ETHPORT_AEN_LINKDOWN)
+#define BFA_AEN_ETHPORT_ENABLE \
+	BFA_LOG_CREATE_ID(BFA_AEN_CAT_ETHPORT, BFA_ETHPORT_AEN_ENABLE)
+#define BFA_AEN_ETHPORT_DISABLE \
+	BFA_LOG_CREATE_ID(BFA_AEN_CAT_ETHPORT, BFA_ETHPORT_AEN_DISABLE)
+
+#endif
+
drivers/scsi/bfa/include/aen/bfa_aen.h +94 -0

94 lines not on this page · raw message

drivers/scsi/bfa/include/aen/bfa_aen_ioc.h +37 -0
diff -urpN orig/drivers/scsi/bfa/include/aen/bfa_aen_ioc.h patch/drivers/scsi/bfa/include/aen/bfa_aen_ioc.h
@@ -0,0 +1,37 @@
+/*
+ * 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.
+ */
+
+/* messages define for BFA_AEN_CAT_IOC Module */
+#ifndef	__bfa_aen_ioc_h__
+#define	__bfa_aen_ioc_h__
+
+#include  <cs/bfa_log.h>
+#include  <defs/bfa_defs_aen.h>
+
+#define BFA_AEN_IOC_HBGOOD \
+	BFA_LOG_CREATE_ID(BFA_AEN_CAT_IOC, BFA_IOC_AEN_HBGOOD)
+#define BFA_AEN_IOC_HBFAIL \
+	BFA_LOG_CREATE_ID(BFA_AEN_CAT_IOC, BFA_IOC_AEN_HBFAIL)
+#define BFA_AEN_IOC_ENABLE \
+	BFA_LOG_CREATE_ID(BFA_AEN_CAT_IOC, BFA_IOC_AEN_ENABLE)
+#define BFA_AEN_IOC_DISABLE \
+	BFA_LOG_CREATE_ID(BFA_AEN_CAT_IOC, BFA_IOC_AEN_DISABLE)
+#define BFA_AEN_IOC_FWMISMATCH \
+	BFA_LOG_CREATE_ID(BFA_AEN_CAT_IOC, BFA_IOC_AEN_FWMISMATCH)
+
+#endif
+
drivers/scsi/bfa/include/aen/bfa_aen_itnim.h +33 -0
diff -urpN orig/drivers/scsi/bfa/include/aen/bfa_aen_itnim.h patch/drivers/scsi/bfa/include/aen/bfa_aen_itnim.h
@@ -0,0 +1,33 @@
+/*
+ * 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.
+ */
+
+/* messages define for BFA_AEN_CAT_ITNIM Module */
+#ifndef	__bfa_aen_itnim_h__
+#define	__bfa_aen_itnim_h__
+
+#include  <cs/bfa_log.h>
+#include  <defs/bfa_defs_aen.h>
+
+#define BFA_AEN_ITNIM_ONLINE \
+	BFA_LOG_CREATE_ID(BFA_AEN_CAT_ITNIM, BFA_ITNIM_AEN_ONLINE)
+#define BFA_AEN_ITNIM_OFFLINE \
+	BFA_LOG_CREATE_ID(BFA_AEN_CAT_ITNIM, BFA_ITNIM_AEN_OFFLINE)
+#define BFA_AEN_ITNIM_DISCONNECT \
+	BFA_LOG_CREATE_ID(BFA_AEN_CAT_ITNIM, BFA_ITNIM_AEN_DISCONNECT)
+
+#endif
+
drivers/scsi/bfa/include/aen/bfa_aen_lport.h +51 -0

51 lines not on this page · raw message

drivers/scsi/bfa/include/aen/bfa_aen_port.h +57 -0

57 lines not on this page · raw message

drivers/scsi/bfa/include/aen/bfa_aen_rport.h +37 -0
diff -urpN orig/drivers/scsi/bfa/include/aen/bfa_aen_rport.h patch/drivers/scsi/bfa/include/aen/bfa_aen_rport.h
@@ -0,0 +1,37 @@
+/*
+ * 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.
+ */
+
+/* messages define for BFA_AEN_CAT_RPORT Module */
+#ifndef	__bfa_aen_rport_h__
+#define	__bfa_aen_rport_h__
+
+#include  <cs/bfa_log.h>
+#include  <defs/bfa_defs_aen.h>
+
+#define BFA_AEN_RPORT_ONLINE \
+	BFA_LOG_CREATE_ID(BFA_AEN_CAT_RPORT, BFA_RPORT_AEN_ONLINE)
+#define BFA_AEN_RPORT_OFFLINE \
+	BFA_LOG_CREATE_ID(BFA_AEN_CAT_RPORT, BFA_RPORT_AEN_OFFLINE)
+#define BFA_AEN_RPORT_DISCONNECT \
+	BFA_LOG_CREATE_ID(BFA_AEN_CAT_RPORT, BFA_RPORT_AEN_DISCONNECT)
+#define BFA_AEN_RPORT_QOS_PRIO \
+	BFA_LOG_CREATE_ID(BFA_AEN_CAT_RPORT, BFA_RPORT_AEN_QOS_PRIO)
+#define BFA_AEN_RPORT_QOS_FLOWID \
+	BFA_LOG_CREATE_ID(BFA_AEN_CAT_RPORT, BFA_RPORT_AEN_QOS_FLOWID)
+
+#endif
+
drivers/scsi/bfa/include/bfa_fcpim.h +159 -0

159 lines not on this page · raw message

drivers/scsi/bfa/include/bfa_fcptm.h +47 -0

47 lines not on this page · raw message

drivers/scsi/bfa/include/bfa.h +177 -0

177 lines not on this page · raw message

drivers/scsi/bfa/include/bfa_svc.h +324 -0

324 lines not on this page · raw message

drivers/scsi/bfa/include/bfa_timer.h +53 -0

53 lines not on this page · raw message

drivers/scsi/bfa/include/bfi/bfi_boot.h +34 -0
diff -urpN orig/drivers/scsi/bfa/include/bfi/bfi_boot.h patch/drivers/scsi/bfa/include/bfi/bfi_boot.h
@@ -0,0 +1,34 @@
+/*
+ * 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.
+ */
+/*
+ * bfi_boot.h
+ */
+
+#ifndef __BFI_BOOT_H__
+#define __BFI_BOOT_H__
+
+#define BFI_BOOT_TYPE_OFF		8
+#define BFI_BOOT_PARAM_OFF		12
+
+#define BFI_BOOT_TYPE_NORMAL 		0	/* param is device id */
+#define	BFI_BOOT_TYPE_FLASH		1
+#define	BFI_BOOT_TYPE_MEMTEST		2
+
+#define BFI_BOOT_MEMTEST_RES_ADDR   0x900
+#define BFI_BOOT_MEMTEST_RES_SIG    0xA0A1A2A3
+
+#endif
drivers/scsi/bfa/include/bfi/bfi_cbreg.h +305 -0

305 lines not on this page · raw message

drivers/scsi/bfa/include/bfi/bfi_cee.h +119 -0

119 lines not on this page · raw message

drivers/scsi/bfa/include/bfi/bfi_ctreg.h +611 -0

611 lines not on this page · raw message

drivers/scsi/bfa/include/bfi/bfi_fabric.h +92 -0

92 lines not on this page · raw message

drivers/scsi/bfa/include/bfi/bfi_fcpim.h +301 -0

301 lines not on this page · raw message

drivers/scsi/bfa/include/bfi/bfi_fcxp.h +71 -0

71 lines not on this page · raw message

drivers/scsi/bfa/include/bfi/bfi.h +174 -0

174 lines not on this page · raw message

drivers/scsi/bfa/include/bfi/bfi_iocfc.h +177 -0

127 lines not on this page · raw message

drivers/scsi/bfa/include/bfi/bfi_ioc.h +202 -0

202 lines not on this page · raw message

drivers/scsi/bfa/include/bfi/bfi_lport.h +89 -0

89 lines not on this page · raw message

drivers/scsi/bfa/include/bfi/bfi_lps.h +96 -0

96 lines not on this page · raw message

drivers/scsi/bfa/include/bfi/bfi_port.h +115 -0

115 lines not on this page · raw message

drivers/scsi/bfa/include/bfi/bfi_pport.h +184 -0

184 lines not on this page · raw message

drivers/scsi/bfa/include/bfi/bfi_rport.h +104 -0

104 lines not on this page · raw message

drivers/scsi/bfa/include/bfi/bfi_uf.h +52 -0

52 lines not on this page · raw message

drivers/scsi/bfa/include/cna/bfa_cna_trcmod.h +36 -0
diff -urpN orig/drivers/scsi/bfa/include/cna/bfa_cna_trcmod.h patch/drivers/scsi/bfa/include/cna/bfa_cna_trcmod.h

Lines of this file are not shown. View the raw message.

drivers/scsi/bfa/include/cna/cee/bfa_cee.h +77 -0

77 lines not on this page · raw message

drivers/scsi/bfa/include/cna/port/bfa_port.h +69 -0

69 lines not on this page · raw message

drivers/scsi/bfa/include/cna/pstats/ethport_defs.h +36 -0
diff -urpN orig/drivers/scsi/bfa/include/cna/pstats/ethport_defs.h patch/drivers/scsi/bfa/include/cna/pstats/ethport_defs.h

Lines of this file are not shown. View the raw message.

drivers/scsi/bfa/include/cna/pstats/phyport_defs.h +218 -0

218 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.