ServerEngines 10Gb NIC driver
Subsystems (2)
PATCH 16/16 ServerEngines 10Gb NIC driver
F/W header files.
-----------------------
linux-2.6.24.2/drivers/message/beclib/fw/bmap/iscsi_common_host_struct_bmap.h +401 -0
@@ -0,0 +1,406 @@ +/* +* 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 +* as published by the Free Software Foundation; either version 2 +* of the License, or at your option any later version. +* +* 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. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 51 Franklin Street, 5th Floor +* Boston, MA 02110-1301 USA +* +* +* The full GNU General Public License is included in this distribution +* in the file called GPL. +* +* Contact Information: +* [email protected] +* +* ServerEngines +* 209 N. Fair Oaks Ave +* Sunnyvale, CA 94085 +*/ +/* +* Autogenerated by srcgen version: 0127 */ #ifndef +__iscsi_common_host_struct_bmap_h__ +#define __iscsi_common_host_struct_bmap_h__ +#include "setypes.h" + +#undef SG_PACK +#if defined(SG_PRAGMA_PACK ) +#pragma pack(push, 1) +#define SG_PACK +#elif defined(SG_ATTRIBUTE_PACK ) +#define SG_PACK __attribute__ ((packed)) #else #define SG_PACK #endif + +#ifndef SG_C_ASSERT +#define SG_C_ASSERT (_name_, _condition_) #endif + +#if defined(__BIG_ENDIAN) + +typedef struct _ISCSI_COMMON_HOST_STRUCT_ANON_37_RSVD { +u32 rsvd1:10 ;/* DWORD 0 */ +u32 rsvd0:1 ;/* DWORD 0 */ +} SG_PACK ISCSI_COMMON_HOST_STRUCT_ANON_37_RSVD, + *PISCSI_COMMON_HOST_STRUCT_ANON_37_RSVD ; + +#else + +typedef struct _ISCSI_COMMON_HOST_STRUCT_ANON_37_RSVD { +u32 rsvd0:1 ;/* DWORD 0 */ +u32 rsvd1:10 ;/* DWORD 0 */ +} SG_PACK ISCSI_COMMON_HOST_STRUCT_ANON_37_RSVD, + *PISCSI_COMMON_HOST_STRUCT_ANON_37_RSVD ; + +#endif + +#if defined(__BIG_ENDIAN) + +typedef struct _ISCSI_COMMON_HOST_STRUCT_ANON_38_RSVD { +u32 rsvd1:15 ;/* DWORD 0 */ +u32 rsvd0:1 ;/* DWORD 0 */ +} SG_PACK ISCSI_COMMON_HOST_STRUCT_ANON_38_RSVD, + *PISCSI_COMMON_HOST_STRUCT_ANON_38_RSVD ; + +#else + +typedef struct _ISCSI_COMMON_HOST_STRUCT_ANON_38_RSVD { +u32 rsvd0:1 ;/* DWORD 0 */ +u32 rsvd1:15 ;/* DWORD 0 */ +} SG_PACK ISCSI_COMMON_HOST_STRUCT_ANON_38_RSVD, + *PISCSI_COMMON_HOST_STRUCT_ANON_38_RSVD ; + +#endif + +#if defined(__BIG_ENDIAN) +/* Scatter gather element */ +typedef struct _ISCSI_SGE { +u32 addr_hi;/* DWORD 0 */ +u32 addr_lo;/* DWORD 1 */ +u32 last_sge:1 ;/* DWORD 2 */ +u32 rsvd0:11 ;/* DWORD 2 */ +u32 sge_offset:20 ;/* DWORD 2 */ +u32 rsvd1:16 ;/* DWORD 3 */ +u32 len:16 ;/* DWORD 3 */ +} SG_PACK ISCSI_SGE, *PISCSI_SGE; + +#else +/* Scatter gather element */ +typedef struct _ISCSI_SGE { +u32 addr_hi;/* DWORD 0 */ +u32 addr_lo;/* DWORD 1 */ +u32 sge_offset:20 ;/* DWORD 2 */ +u32 rsvd0:11 ;/* DWORD 2 */ +u32 last_sge:1 ;/* DWORD 2 */ +u32 len:16 ;/* DWORD 3 */ +u32 rsvd1:16 ;/* DWORD 3 */ +} SG_PACK ISCSI_SGE, *PISCSI_SGE; + +#endif + +#if defined(__BIG_ENDIAN) +/* Scatter gather element to DMA OOO segments */ typedef struct +_ISCSI_OOO_SGE { +u32 addr_hi;/* DWORD 0 */ +u32 addr_lo;/* DWORD 1 */ +} SG_PACK ISCSI_OOO_SGE, *PISCSI_OOO_SGE; + +#else +/* Scatter gather element to DMA OOO segments */ typedef struct +_ISCSI_OOO_SGE { +u32 addr_hi;/* DWORD 0 */ +u32 addr_lo;/* DWORD 1 */ +} SG_PACK ISCSI_OOO_SGE, *PISCSI_OOO_SGE; + +#endif + +#if defined(__BIG_ENDIAN) + +typedef struct _ISCSI_COMMON_HOST_STRUCT_ANON_39_RSVD { +u32 rsvd1:2 ;/* DWORD 0 */ +u32 rsvd0:1 ;/* DWORD 0 */ +} SG_PACK ISCSI_COMMON_HOST_STRUCT_ANON_39_RSVD, + *PISCSI_COMMON_HOST_STRUCT_ANON_39_RSVD ; + +#else + +typedef struct _ISCSI_COMMON_HOST_STRUCT_ANON_39_RSVD { +u32 rsvd0:1 ;/* DWORD 0 */ +u32 rsvd1:2 ;/* DWORD 0 */ +} SG_PACK ISCSI_COMMON_HOST_STRUCT_ANON_39_RSVD, + *PISCSI_COMMON_HOST_STRUCT_ANON_39_RSVD ; + +#endif + +#if defined(__BIG_ENDIAN) +/* RRmsg sent from ARM to iSCSI TXULP and carried as body of IPC +* between EPs */ +typedef struct _ISCSI_RRMSG { +u32 invalidate_ref_handle:16 ;/* DWORD 0 */ +u32 rsvd0:3 ;/* DWORD 0 */ +u32 chuteid:1 ;/* DWORD 0 */ +u32 defpdu_invld:1 ;/* DWORD 0 */ +u32 sgl_icd_Index:11 ;/* DWORD 0 */ +u32 partialBytesSent:24 ;/* DWORD 1 */ +u32 upload:1 ;/* DWORD 1 */ +u32 rstonneed:1 ;/* DWORD 1 */ +u32 invld_resp:1 ;/* DWORD 1 */ +u32 wr:1 ;/* DWORD 1 */ +u32 iscsicon_rst:1 ;/* DWORD 1 */ +u32 icd_free:1 ;/* DWORD 1 */ +u32 icd_invld:1 ;/* DWORD 1 */ +u32 iscsicon_invld:1 ;/* DWORD 1 */ +} SG_PACK ISCSI_RRMSG, *PISCSI_RRMSG; + +#else +/* RRmsg sent from ARM to iSCSI TXULP and carried as body of IPC +* between EPs */ +typedef struct _ISCSI_RRMSG { +u32 sgl_icd_Index:11 ;/* DWORD 0 */ +u32 defpdu_invld:1 ;/* DWORD 0 */ +u32 chuteid:1 ;/* DWORD 0 */ +u32 rsvd0:3 ;/* DWORD 0 */ +u32 invalidate_ref_handle:16 ;/* DWORD 0 */ +u32 iscsicon_invld:1 ;/* DWORD 1 */ +u32 icd_invld:1 ;/* DWORD 1 */ +u32 icd_free:1 ;/* DWORD 1 */ +u32 iscsicon_rst:1 ;/* DWORD 1 */ +u32 wr:1 ;/* DWORD 1 */ +u32 invld_resp:1 ;/* DWORD 1 */ +u32 rstonneed:1 ;/* DWORD 1 */ +u32 upload:1 ;/* DWORD 1 */ +u32 partialBytesSent:24 ;/* DWORD 1 */ +} SG_PACK ISCSI_RRMSG, *PISCSI_RRMSG; + +#endif + +#if defined(__BIG_ENDIAN) +/* Full 8 byte LUN. */ +typedef struct _ISCSI_LUN { +u8 bytes[8 ]; +} SG_PACK ISCSI_LUN, *PISCSI_LUN; + +#else +/* Full 8 byte LUN. */ +typedef struct _ISCSI_LUN { +u8 bytes[8 ]; +} SG_PACK ISCSI_LUN, *PISCSI_LUN; + +#endif + +#if defined(__BIG_ENDIAN) + +typedef struct _ISCSI_COMMON_HOST_STRUCT_ANON_40_RSVD { +u32 rsvd1:2 ;/* DWORD 0 */ +u32 rsvd0:1 ;/* DWORD 0 */ +} SG_PACK ISCSI_COMMON_HOST_STRUCT_ANON_40_RSVD, + *PISCSI_COMMON_HOST_STRUCT_ANON_40_RSVD ; + +#else + +typedef struct _ISCSI_COMMON_HOST_STRUCT_ANON_40_RSVD { +u32 rsvd0:1 ;/* DWORD 0 */ +u32 rsvd1:2 ;/* DWORD 0 */ +} SG_PACK ISCSI_COMMON_HOST_STRUCT_ANON_40_RSVD, + *PISCSI_COMMON_HOST_STRUCT_ANON_40_RSVD ; + +#endif + +#if defined(__BIG_ENDIAN) + +typedef struct _ISCSI_COMMON_HOST_STRUCT_ANON_41_RSVD { +u32 rsvd1:7 ;/* DWORD 0 */ +u32 rsvd0:1 ;/* DWORD 0 */ +} SG_PACK ISCSI_COMMON_HOST_STRUCT_ANON_41_RSVD, + *PISCSI_COMMON_HOST_STRUCT_ANON_41_RSVD ; + +#else + +typedef struct _ISCSI_COMMON_HOST_STRUCT_ANON_41_RSVD { +u32 rsvd0:1 ;/* DWORD 0 */ +u32 rsvd1:7 ;/* DWORD 0 */ +} SG_PACK ISCSI_COMMON_HOST_STRUCT_ANON_41_RSVD, + *PISCSI_COMMON_HOST_STRUCT_ANON_41_RSVD ; + +#endif + +#if defined(__BIG_ENDIAN) + +typedef struct _ISCSI_COMMON_HOST_STRUCT_ANON_42_RSVD { +u32 rsvd1:2 ;/* DWORD 0 */ +u32 rsvd0:1 ;/* DWORD 0 */ +} SG_PACK ISCSI_COMMON_HOST_STRUCT_ANON_42_RSVD, + *PISCSI_COMMON_HOST_STRUCT_ANON_42_RSVD ; + +#else + +typedef struct _ISCSI_COMMON_HOST_STRUCT_ANON_42_RSVD { +u32 rsvd0:1 ;/* DWORD 0 */ +u32 rsvd1:2 ;/* DWORD 0 */ +} SG_PACK ISCSI_COMMON_HOST_STRUCT_ANON_42_RSVD, + *PISCSI_COMMON_HOST_STRUCT_ANON_42_RSVD ; + +#endif + +#if defined(__BIG_ENDIAN) +/* ISCSI Default PDU Context latest */ typedef struct +_ISCSI_DEFAULT_PDU_CONTEXT { +u32 rsvd1:8 ;/* DWORD 0 */ +u32 ring_size:4 ;/* DWORD 0 */ +u32 ring_state:4 ;/* DWORD 0 */ +u32 rsvd0:3 ;/* DWORD 0 */ +u32 dbuf_cindex:13 ;/* DWORD 0 */ +u32 cq_id_recv:10 ;/* DWORD 1 */ +u32 rx_pdid_not_valid:1 ;/* DWORD 1 */ +u32 rx_pdid:5 ;/* DWORD 1 */ +u32 rsvd2:3 ;/* DWORD 1 */ +u32 dbuf_pindex:13 ;/* DWORD 1 */ +u32 rsvd3:16 ;/* DWORD 2 */ +u32 default_buffer_size:16 ;/* DWORD 2 */ +u32 rsvd4[1 ];/* DWORDS 3 to 3 */ +} SG_PACK ISCSI_DEFAULT_PDU_CONTEXT, *PISCSI_DEFAULT_PDU_CONTEXT; + +#else +/* ISCSI Default PDU Context latest */ typedef struct +_ISCSI_DEFAULT_PDU_CONTEXT { +u32 dbuf_cindex:13 ;/* DWORD 0 */ +u32 rsvd0:3 ;/* DWORD 0 */ +u32 ring_state:4 ;/* DWORD 0 */ +u32 ring_size:4 ;/* DWORD 0 */ +u32 rsvd1:8 ;/* DWORD 0 */ +u32 dbuf_pindex:13 ;/* DWORD 1 */ +u32 rsvd2:3 ;/* DWORD 1 */ +u32 rx_pdid:5 ;/* DWORD 1 */ +u32 rx_pdid_not_valid:1 ;/* DWORD 1 */ +u32 cq_id_recv:10 ;/* DWORD 1 */ +u32 default_buffer_size:16 ;/* DWORD 2 */ +u32 rsvd3:16 ;/* DWORD 2 */ +u32 rsvd4[1 ];/* DWORDS 3 to 3 */ +} SG_PACK ISCSI_DEFAULT_PDU_CONTEXT, *PISCSI_DEFAULT_PDU_CONTEXT; + +#endif + +#if defined(__BIG_ENDIAN) +/* +* This is the ring context structure for iSCSI only, because of its +* special linked list structure. The HLL and h are used only by +* btlr to track the list. When receiving a driver request, that +* is, the driver request bit is set in the TCPSCH_PROC_IQ_DATA +* descriptor from TCP Scheduler, iSCSI TXULP will double check the +* wrb_pend to make sure it is greater than zero, and then use the +* wrb_addr as the address of pending WRB and use it to generate +* CRA for UC request. After completing the current WRB, the iSCSI +* RXULP will send the ptr2NxtWRB to the CEV. +*/ +typedef struct _RING_CONTEXT_ISCSI { +u32 rsvd1:16 ;/* DWORD 0 */ +u32 hll:8 ;/* DWORD 0 */ +u32 rsvd0:7 ;/* DWORD 0 */ +u32 h:1 ;/* DWORD 0 */ +u32 rsvd2:10 ;/* DWORD 1 */ +u32 o:1 ;/* DWORD 1 */ +u32 pdid:5 ;/* DWORD 1 */ +u32 wrb_pend:8 ;/* DWORD 1 */ +u32 wrb_addr:8 ;/* DWORD 1 */ +} SG_PACK RING_CONTEXT_ISCSI, *PRING_CONTEXT_ISCSI; + +#else +/* +* This is the ring context structure for iSCSI only, because of its +* special linked list structure. The HLL and h are used only by +* btlr to track the list. When receiving a driver request, that +* is, the driver request bit is set in the TCPSCH_PROC_IQ_DATA +* descriptor from TCP Scheduler, iSCSI TXULP will double check the +* wrb_pend to make sure it is greater than zero, and then use the +* wrb_addr as the address of pending WRB and use it to generate +* CRA for UC request. After completing the current WRB, the iSCSI +* RXULP will send the ptr2NxtWRB to the CEV. +*/ +typedef struct _RING_CONTEXT_ISCSI { +u32 h:1 ;/* DWORD 0 */ +u32 rsvd0:7 ;/* DWORD 0 */ +u32 hll:8 ;/* DWORD 0 */ +u32 rsvd1:16 ;/* DWORD 0 */ +u32 wrb_addr:8 ;/* DWORD 1 */ +u32 wrb_pend:8 ;/* DWORD 1 */ +u32 pdid:5 ;/* DWORD 1 */ +u32 o:1 ;/* DWORD 1 */ +u32 rsvd2:10 ;/* DWORD 1 */ +} SG_PACK RING_CONTEXT_ISCSI, *PRING_CONTEXT_ISCSI; + +#endif + +#if defined(__BIG_ENDIAN) +/* +* This is the ring context structure for iSCSI only, because of its +* special linked list structure. The HLL and h are used only by +* btlr to track the list. When receiving a driver request, that +* is, the driver request bit is set in the TCPSCH_PROC_IQ_DATA +* descriptor from TCP Scheduler, iSCSI TXULP will double check the +* wrb_pend to make sure it is greater than zero, and then use the +* wrb_addr as the address of pending WRB and use it to generate +* CRA for UC request. After completing the current WRB, the iSCSI +* RXULP will send the ptr2NxtWRB to the CEV. +*/ +typedef struct _RING_CONTEXT_ISCSI_BE2 { +u32 r2t_cidx:10 ;/* DWORD 0 */ +u32 fetch_r2t:1 ;/* DWORD 0 */ +u32 fetch_wrb:1 ;/* DWORD 0 */ +u32 tx_ring_size:4 ;/* DWORD 0 */ +u32 hll:8 ;/* DWORD 0 */ +u32 wrb_addr:8 ;/* DWORD 0 */ +u32 ctx_valid:1 ;/* DWORD 1 */ +u32 pdid:9 ;/* DWORD 1 */ +u32 pci_func_id:8 ;/* DWORD 1 */ +u32 rsvd0:5 ;/* DWORD 1 */ +u32 h:1 ;/* DWORD 1 */ +u32 wrb_pend:8 ;/* DWORD 1 */ +} SG_PACK RING_CONTEXT_ISCSI_BE2, *PRING_CONTEXT_ISCSI_BE2; + +#else +/* +* This is the ring context structure for iSCSI only, because of its +* special linked list structure. The HLL and h are used only by +* btlr to track the list. When receiving a driver request, that +* is, the driver request bit is set in the TCPSCH_PROC_IQ_DATA +* descriptor from TCP Scheduler, iSCSI TXULP will double check the +* wrb_pend to make sure it is greater than zero, and then use the +* wrb_addr as the address of pending WRB and use it to generate +* CRA for UC request. After completing the current WRB, the iSCSI +* RXULP will send the ptr2NxtWRB to the CEV. +*/ +typedef struct _RING_CONTEXT_ISCSI_BE2 { +u32 wrb_addr:8 ;/* DWORD 0 */ +u32 hll:8 ;/* DWORD 0 */ +u32 tx_ring_size:4 ;/* DWORD 0 */ +u32 fetch_wrb:1 ;/* DWORD 0 */ +u32 fetch_r2t:1 ;/* DWORD 0 */ +u32 r2t_cidx:10 ;/* DWORD 0 */ +u32 wrb_pend:8 ;/* DWORD 1 */ +u32 h:1 ;/* DWORD 1 */ +u32 rsvd0:5 ;/* DWORD 1 */ +u32 pci_func_id:8 ;/* DWORD 1 */ +u32 pdid:9 ;/* DWORD 1 */ +u32 ctx_valid:1 ;/* DWORD 1 */ +} SG_PACK RING_CONTEXT_ISCSI_BE2, *PRING_CONTEXT_ISCSI_BE2; + +#endif + +#ifdef SG_PRAGMA_PACK +#pragma pack(pop) +#endif + +#endif /* __iscsi_common_host_struct_bmap_h__ */
linux-2.6.24.2/drivers/message/beclib/fw/bmap/mpu_context_bmap.h +96 -0
96 lines not on this page · raw message
linux-2.6.24.2/drivers/message/beclib/fw/bmap/ioctl_eth_bmap.h +378 -0
378 lines not on this page · raw message
linux-2.6.24.2/drivers/message/beclib/fw/bmap/ioctl_mcc_bmap.h +106 -0
106 lines not on this page · raw message
linux-2.6.24.2/drivers/message/beclib/fw/bmap/post_codes_bmap.h +94 -0
94 lines not on this page · raw message
___________________________________________________________________________________
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.