Skip to contentSkip to conversation

BE NIC driver - f/w header files

PATCH In review Subbu Seetharaman 1 participant 1 message Jun 3, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 11/12 BE NIC driver - f/w header files

---
 drivers/message/beclib/fw/be_gen_id_ranges.h       |  217 ++++++
 drivers/message/beclib/fw/bmap/be_common_bmap.h    |   56 ++
 drivers/message/beclib/fw/bmap/fwcmd_common_bmap.h |  691 ++++++++++++++++++++
 drivers/message/beclib/fw/bmap/fwcmd_eth_bmap.h    |  309 +++++++++
 drivers/message/beclib/fw/bmap/fwcmd_hdr_bmap.h    |   54 ++
 drivers/message/beclib/fw/bmap/fwcmd_top_bmap.h    |   26 +
 drivers/message/beclib/fw/bmap/fwcmd_types_bmap.h  |   29 +
 7 files changed, 1382 insertions(+), 0 deletions(-)
 create mode 100755 drivers/message/beclib/fw/be_gen_id_ranges.h
 create mode 100644 drivers/message/beclib/fw/bmap/be_common_bmap.h
 create mode 100644 drivers/message/beclib/fw/bmap/fwcmd_common_bmap.h
 create mode 100644 drivers/message/beclib/fw/bmap/fwcmd_eth_bmap.h
 create mode 100644 drivers/message/beclib/fw/bmap/fwcmd_hdr_bmap.h
 create mode 100644 drivers/message/beclib/fw/bmap/fwcmd_top_bmap.h
 create mode 100644 drivers/message/beclib/fw/bmap/fwcmd_types_bmap.h
drivers/message/beclib/fw/be_gen_id_ranges.h new file +217 -0
new file mode 100755
index 0000000..6413872
@@ -0,0 +1,217 @@
+/*
+ * Copyright (C) 2005 - 2008 ServerEngines
+ * All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License version 2
+ * as published by the Free Software Foundation.  The full GNU General
+ * Public License is included in this distribution in the file called COPYING.
+ *
+ * Contact Information:
+ * [email protected]
+ *
+ * ServerEngines
+ * 209 N. Fair Oaks Ave
+ * Sunnyvale, CA 94085
+ */
+/*
+@file
+    be_gen_id_ranges.h
+
+@brief
+    Provides ID ranges and conversion macros between the types of ID numbers.
+
+*/
+#ifndef __be_gen_id_ranges_h__
+#define __be_gen_id_ranges_h__
+
+#ifndef BE_CONFIG
+#pragma message("WARNING: configuration not defined. Assuming BE_CONFIG=0"
+		" by default.")
+#define BE_CONFIG 0
+#endif
+
+/*/////////////////////////////////////////////////////////////////////// */
+/*
+ * For each BE_CONFIG value, define the CID ranges for the ULP protocol
+ * firmware.
+ *
+ * The BE_CONFIG definitions must match the description of the
+ * configuration under the fw\config\readme.txt file.
+ * The MAX_* literals must all be multiples of 32!!! This is an implementation
+ * restriction in the software that makes use of these literals for bitvector
+ * classes. Having a non-32 multiple MAX_* literal will cause an compile-time
+ * assert! At some point in the future this restriction may be removed (along
+ * with this comment blurb). Note: if the desired range is not an even multiple
+ * of 32, the developer must ensure the extra/invalid bits are not used.
+ */
+/*//////////////////////////////////////////////////////////////////// */
+
+#if (BE_CONFIG == 0)
+
+/* --- CID_START_ENUM --- */
+#define ISCSI_CID_START                 (0)     /* Start of connection
+							ID range for ISCSI */
+#define DEFPDU_CID_START                (0)     /* Start of connection
+							ID range for iSCSI
+							default pdu queue */
+#define ETX_CID_START                   (1024)  /* Start of connection
+							ID range for ETX */
+#define RDMA_CID_START                  (0)     /* Start of connection
+						       ID range for RDMA */
+
+/* --- MAX_CIDS_ENUM --- */
+#define MAX_DEFPDU_CIDS                 (32)    /* Maximum number of
+						       iSCSI DEF pdu cids */
+#define MAX_ETX_CIDS                    (64)    /* Maximum number of ETX
+						       connections */
+#define MAX_ISCSI_CIDS                  (512)   /* Maximum number of
+						       ISCSI connections */
+#define MAX_ISCSI_CIDS_CT               (512)   /* Maximum number of
+						       ISCSI connections
+						       per chute */
+#define MAX_RDMA_CIDS                   (0)     /* Maximum number of
+						       RDMA connections */
+
+#elif (BE_CONFIG == 1)
+
+/* --- CID_START_ENUM --- */
+#define ISCSI_CID_START                 (0)     /* Start of connection
+						       ID range for ISCSI */
+#define DEFPDU_CID_START                (0)     /* Start of connection
+						       ID range for iSCSI
+						       default pdu queue */
+#define RDMA_CID_START                  (64)    /* Start of connection
+						       ID range for RDMA */
+#define ETX_CID_START                   (1024)  /* Start of connection
+						       ID range for ETX */
+
+/* --- MAX_CIDS_ENUM --- */
+#define MAX_DEFPDU_CIDS                 (32)    /* Maximum number of
+						       iSCSI DEF pdu cids */
+#define MAX_ISCSI_CIDS                  (64)    /* Maximum number
+						       of ISCSI connections */
+#define MAX_ISCSI_CIDS_CT               (64)    /* Maximum number
+						       of ISCSI connections
+						       per chute */
+#define MAX_ETX_CIDS                    (64)    /* Maximum number of
+						       ETX connections */
+#define MAX_RDMA_CIDS                   (512)   /* Maximum number
+						       of RDMA connections */
+
+#elif (BE_CONFIG == 2)
+
+/* --- CID_START_ENUM --- */
+#define DEFPDU_CID_START                (0)     /* Start of connection
+						       ID range for iSCSI
+						       default pdu queue */
+#define ISCSI_TGT_CID_START             (448)   /* Start of connection
+						       ID range for ISCSI */
+#define ISCSI_CID_START                 (ISCSI_TGT_CID_START)
+#define ETX_CID_START                   (1024)  /* Start of connection
+						       ID range for ETX */
+#define RDMA_CID_START                  (0)     /* Start of connection
+						       ID range for RDMA */
+
+/* --- MAX_CIDS_ENUM --- */
+#define MAX_DEFPDU_CIDS                 (32)    /* Maximum number of
+						       iSCSI DEF pdu cids */
+#define MAX_ETX_CIDS                    (64)    /* Maximum number of
+						       ETX cids */
+#define MAX_ISCSI_TGT_CIDS              (512)   /* Maximum number
+						       of ISCSI connections */
+#define MAX_ISCSI_CIDS                  (MAX_ISCSI_TGT_CIDS)
+#define MAX_ISCSI_CIDS_CT               (256)   /* Maximum number of
+						       ISCSI connections
+						       per chute */
+#define MAX_RDMA_CIDS                   (0)     /* Maximum number of
+						       RDMA connections */
+
+#elif (BE_CONFIG == 3)
+
+/* --- CID_START_ENUM --- */
+#define DEFPDU_CID_START                (0)     /* Start of connection
+						       ID range for iSCSI
+						       default pdu queue */
+#define ISCSI_TGT_CID_START             (0)     /* Start of connection
+						       ID range for ISCSI */
+#define ISCSI_CID_START                 (ISCSI_TGT_CID_START)
+#define ETX_CID_START                   (1024)  /* Start of connection
+						       ID range for ETX */
+#define RDMA_CID_START                  (1024)     /* Start of connection
+							  ID range for RDMA */
+
+/* --- MAX_CIDS_ENUM --- */
+#define MAX_DEFPDU_CIDS                 (32)    /* Maximum number
+						       of iSCSI DEF pdu cids */
+#define MAX_ETX_CIDS                    (64)    /* Maximum number
+						       of ETX cids */
+#define MAX_ISCSI_TGT_CIDS              (1024)  /* Maximum number
+						       of ISCSI connections
+						       supported. */
+#define MAX_ISCSI_CIDS                  (MAX_ISCSI_TGT_CIDS)
+#define MAX_ISCSI_CIDS_CT               (512)   /* Maximum number of
+						       ISCSI connections per
+						       chute */
+#define MAX_RDMA_CIDS                   (0)     /* Maximum number of
+						       RDMA connections */
+
+#elif (BE_CONFIG == 4)
+
+/* --- CID_START_ENUM --- */
+#define ISCSI_CID_START                 (0)     /* Start of connection
+						       ID range for ISCSI */
+#define DEFPDU_CID_START                (0)     /* Start of connection
+						       ID range for iSCSI
+						       default pdu queue */
+#define ETX_CID_START                   (1024)  /* Start of connection
+						       ID range for ETX */
+#define RDMA_CID_START                  (0)     /* Start of connection
+						       ID range for RDMA */
+
+/* --- MAX_CIDS_ENUM --- */
+#define MAX_DEFPDU_CIDS                 (32)    /* Maximum number of
+						       iSCSI DEF pdu cids */
+#define MAX_ETX_CIDS                    (64)    /* Maximum number of
+						       ETX connections */
+#define MAX_ISCSI_CIDS                  (512)   /* Maximum number of
+						       ISCSI connections */
+#define MAX_ISCSI_CIDS_CT               (256)   /* Maximum number of
+						       ISCSI connections per
+						       chute */
+#define MAX_RDMA_CIDS                   (0)     /* Maximum number of
+						       RDMA connections */
+
+
+#else
+#error Error: Invalid configuration (BE_CONFIG unrecognized).
+#endif
+
+
+/* Define the ethernet CIDs used for iSCSI OOO packet replay. Currently
+ * the maximum number of iSCSI chutes/ulps is 2. Each iSCSI chute
+ * requries one reserved CID number.  We have chosen the following
+ * format for these literals:
+ * a) ISCSI_OOO_CID - used for replay from iSCSI chute A (rxulp0),
+ * 		must be an even number
+ * b) ISCSI_OOO_CID1 - used for replay from iSCSI chute B (rxulp1),
+ * 		must be adjacent to
+ *    chute A's CID, only applicable on dual-chute iSCSI
+ */
+#define ISCSI_OOO_CID                       (1086)
+#define ISCSI_OOO_CID1                      (1087)
+
+
+/* Define the ethernet CIDs that have higher priority over normal
+ * ethernet transmit rings. Each etx ULP requires one reserved super
+ * CID number.  Currently the maximum number of ethernet chutes is 2.
+ * We have chosen the following format for these literals:
+ * a) ETX_SUPER_CID_ULP2 - used for etx with txulp2
+ * b) ETX_SUPER_CID_ULP1 - used for etx with txulp1
+ *
+ */
+#define ETX_SUPER_CID_ULP2                  (ETX_CID_START)
+#define ETX_SUPER_CID_ULP1                  (ETX_CID_START + 1)
+
+#endif /* __be_gen_id_ranges_h__ */
+
drivers/message/beclib/fw/bmap/be_common_bmap.h new file +56 -0

56 lines not on this page · raw message

drivers/message/beclib/fw/bmap/fwcmd_common_bmap.h new file +691 -0

691 lines not on this page · raw message

drivers/message/beclib/fw/bmap/fwcmd_eth_bmap.h new file +309 -0

309 lines not on this page · raw message

drivers/message/beclib/fw/bmap/fwcmd_hdr_bmap.h new file +54 -0

54 lines not on this page · raw message

drivers/message/beclib/fw/bmap/fwcmd_top_bmap.h new file +26 -0
new file mode 100644
index 0000000..b01a49a
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2005 - 2008 ServerEngines
+ * All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License version 2
+ * as published by the Free Software Foundation.  The full GNU General
+ * Public License is included in this distribution in the file called COPYING.
+ *
+ * Contact Information:
+ * [email protected]
+ *
+ * ServerEngines
+ * 209 N. Fair Oaks Ave
+ * Sunnyvale, CA 94085
+ */
+/*
+ * Autogenerated by srcgen version: 0127
+ */
+#ifndef __fwcmd_top_bmap_h__
+#define __fwcmd_top_bmap_h__
+#include "fwcmd_types_bmap.h"
+#include "fwcmd_common_bmap.h"
+#include "fwcmd_eth_bmap.h"
+
+#endif /* __fwcmd_top_bmap_h__ */
drivers/message/beclib/fw/bmap/fwcmd_types_bmap.h new file +29 -0
new file mode 100644
index 0000000..bc97d52
@@ -0,0 +1,29 @@
+/*
+ * Copyright (C) 2005 - 2008 ServerEngines
+ * All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License version 2
+ * as published by the Free Software Foundation.  The full GNU General
+ * Public License is included in this distribution in the file called COPYING.
+ *
+ * Contact Information:
+ * [email protected]
+ *
+ * ServerEngines
+ * 209 N. Fair Oaks Ave
+ * Sunnyvale, CA 94085
+ */
+/*
+ * Autogenerated by srcgen version: 0127
+ */
+#ifndef __fwcmd_types_bmap_h__
+#define __fwcmd_types_bmap_h__
+
+/* MAC address format  */
+struct MAC_ADDRESS_FORMAT {
+	u16 SizeOfStructure;
+	u8 MACAddress[6];
+} SG_PACK;
+
+#endif /* __fwcmd_types_bmap_h__ */
Signature · 8 lines
1.5.5

___________________________________________________________________________________
This message, together with any attachment(s), contains confidential and proprietary information of
ServerEngines Corporation and is intended only for the designated recipient(s) named above. Any unauthorized
review, printing, retention, copying, disclosure or distribution is strictly prohibited.  If you are not the
intended recipient of this message, please immediately advise the sender by reply email message and
delete all copies of this message and any attachment(s). Thank you.