ServerEngines 10Gb NIC driver
Subsystems (2)
PATCH 14/16 ServerEngines 10Gb NIC driver
F/W header files.
------------------
linux-2.6.24.2/drivers/message/beclib/fw/bmap/iscsi_initiator_host_struct_bmap.h +628 -0
@@ -0,0 +1,642 @@ +/* +* 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_initiator_host_struct_bmap_h__ +#define __iscsi_initiator_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) +/* iSCSI Completion Queue Entry definition for cmd/cxn level +completions */ typedef struct _ISCSI_CQ_ENTRY { +union { +struct { +u32 status:4 ;/* DWORD 0 */ +u32 cq_type:2 ;/* DWORD 0 */ +u32 cid:10 ;/* DWORD 0 */ +u32 sts_type:1 ;/* DWORD 0 */ +u32 wrb_index:15 ;/* DWORD 0 */ +u32 iMaxCmdSNOffset:8 ;/* DWORD 1 */ +u32 s:1 ;/* DWORD 1 */ +u32 iFlags:7 ;/* DWORD 1 */ +u32 iResponse:8 ;/* DWORD 1 */ +u32 iStatus:8 ;/* DWORD 1 */ +u32 iExpCmdSN;/* DWORD 2 */ +u32 Valid:1 ;/* DWORD 3 */ +u32 iResidualCnt:31 ;/* DWORD 3 */ + } SG_PACK;/* unnamed struct */ +u32 dw[4 ];/* dword union */ + };/* unnamed union */ +} SG_PACK ISCSI_CQ_ENTRY, *PISCSI_CQ_ENTRY; + +SG_C_ASSERT (__sizeof__ISCSI_CQ_ENTRY,sizeof (ISCSI_CQ_ENTRY ) ==16 ); + +#else +/* iSCSI Completion Queue Entry definition for cmd/cxn level +completions */ typedef struct _ISCSI_CQ_ENTRY { +union { +struct { +u32 wrb_index:15 ;/* DWORD 0 */ +u32 sts_type:1 ;/* DWORD 0 */ +u32 cid:10 ;/* DWORD 0 */ +u32 cq_type:2 ;/* DWORD 0 */ +u32 status:4 ;/* DWORD 0 */ +u32 iStatus:8 ;/* DWORD 1 */ +u32 iResponse:8 ;/* DWORD 1 */ +u32 iFlags:7 ;/* DWORD 1 */ +u32 s:1 ;/* DWORD 1 */ +u32 iMaxCmdSNOffset:8 ;/* DWORD 1 */ +u32 iExpCmdSN;/* DWORD 2 */ +u32 iResidualCnt:31 ;/* DWORD 3 */ +u32 Valid:1 ;/* DWORD 3 */ + } SG_PACK;/* unnamed struct */ +u32 dw[4 ];/* dword union */ + };/* unnamed union */ +} SG_PACK ISCSI_CQ_ENTRY, *PISCSI_CQ_ENTRY; + +SG_C_ASSERT (__sizeof__ISCSI_CQ_ENTRY,sizeof (ISCSI_CQ_ENTRY ) ==16 ); +#endif + +#if defined(__BIG_ENDIAN) + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_102_RSVD { +u32 rsvd1:22 ;/* DWORD 0 */ +u32 rsvd0:1 ;/* DWORD 0 */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_102_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_102_RSVD ; + +#else + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_102_RSVD { +u32 rsvd0:1 ;/* DWORD 0 */ +u32 rsvd1:22 ;/* DWORD 0 */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_102_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_102_RSVD ; + +#endif + +#if defined(__BIG_ENDIAN) + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_103_RSVD { +u32 rsvd1:7 ;/* DWORD 0 */ +u32 rsvd0:1 ;/* DWORD 0 */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_103_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_103_RSVD ; + +#else + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_103_RSVD { +u32 rsvd0:1 ;/* DWORD 0 */ +u32 rsvd1:7 ;/* DWORD 0 */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_103_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_103_RSVD ; + +#endif + +#if defined(__BIG_ENDIAN) + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_104_RSVD { +union { +struct { +u32 rsvd1:31 ;/* DWORD 0 */ +u32 rsvd0:1 ;/* DWORD 0 */ + } SG_PACK;/* unnamed struct */ +u32 dw;/* dword union */ + };/* unnamed union */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_104_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_104_RSVD ; + +SG_C_ASSERT (__sizeof__ISCSI_INITIATOR_HOST_STRUCT_ANON_104_RSVD, +sizeof (ISCSI_INITIATOR_HOST_STRUCT_ANON_104_RSVD ) ==4 ); + +#else + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_104_RSVD { +union { +struct { +u32 rsvd0:1 ;/* DWORD 0 */ +u32 rsvd1:31 ;/* DWORD 0 */ + } SG_PACK;/* unnamed struct */ +u32 dw;/* dword union */ + };/* unnamed union */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_104_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_104_RSVD ; + +SG_C_ASSERT (__sizeof__ISCSI_INITIATOR_HOST_STRUCT_ANON_104_RSVD, +sizeof (ISCSI_INITIATOR_HOST_STRUCT_ANON_104_RSVD ) ==4 );#endif + +#if defined(__BIG_ENDIAN) +/* +* iSCSI Completion Queue Entry Definition for default (aka unsolicited) +* pdu completions +*/ +typedef struct _ISCSI_DEFAULT_PDU_CQ_ENTRY { +union { +struct { +u32 status:4 ;/* DWORD 0 */ +u32 cq_type:2 ;/* DWORD 0 */ +u32 cid:10 ;/* DWORD 0 */ +u32 dataPlacementLength:16 ;/* DWORD 0 */ +u32 rsvd1:8 ;/* DWORD 1 */ +u32 s:1 ;/* DWORD 1 */ +u32 rsvd0:23 ;/* DWORD 1 */ +u32 rsvd2[1 ];/* DWORDS 2 to 2 */ +u32 Valid:1 ;/* DWORD 3 */ +u32 pduBytesRcvd:31 ;/* DWORD 3 */ + } SG_PACK;/* unnamed struct */ +u32 dw[4 ];/* dword union */ + };/* unnamed union */ +} SG_PACK ISCSI_DEFAULT_PDU_CQ_ENTRY, *PISCSI_DEFAULT_PDU_CQ_ENTRY; + +SG_C_ASSERT (__sizeof__ISCSI_DEFAULT_PDU_CQ_ENTRY, +sizeof (ISCSI_DEFAULT_PDU_CQ_ENTRY ) ==16 ); + +#else +/* +* iSCSI Completion Queue Entry Definition for default (aka unsolicited) +* pdu completions +*/ +typedef struct _ISCSI_DEFAULT_PDU_CQ_ENTRY { +union { +struct { +u32 dataPlacementLength:16 ;/* DWORD 0 */ +u32 cid:10 ;/* DWORD 0 */ +u32 cq_type:2 ;/* DWORD 0 */ +u32 status:4 ;/* DWORD 0 */ +u32 rsvd0:23 ;/* DWORD 1 */ +u32 s:1 ;/* DWORD 1 */ +u32 rsvd1:8 ;/* DWORD 1 */ +u32 rsvd2[1 ];/* DWORDS 2 to 2 */ +u32 pduBytesRcvd:31 ;/* DWORD 3 */ +u32 Valid:1 ;/* DWORD 3 */ + } SG_PACK;/* unnamed struct */ +u32 dw[4 ];/* dword union */ + };/* unnamed union */ +} SG_PACK ISCSI_DEFAULT_PDU_CQ_ENTRY, *PISCSI_DEFAULT_PDU_CQ_ENTRY; + +SG_C_ASSERT (__sizeof__ISCSI_DEFAULT_PDU_CQ_ENTRY, +sizeof (ISCSI_DEFAULT_PDU_CQ_ENTRY ) ==16 );#endif + +#if defined(__BIG_ENDIAN) + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_105_RSVD { +u32 rsvd0:1 ;/* DWORD 0 */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_105_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_105_RSVD ; + +#else + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_105_RSVD { +u32 rsvd0:1 ;/* DWORD 0 */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_105_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_105_RSVD ; +#endif + +#if defined(__BIG_ENDIAN) + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_106_RSVD { +u32 rsvd1:22 ;/* DWORD 0 */ +u32 rsvd0:1 ;/* DWORD 0 */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_106_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_106_RSVD ; + +#else + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_106_RSVD { +u32 rsvd0:1 ;/* DWORD 0 */ +u32 rsvd1:22 ;/* DWORD 0 */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_106_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_106_RSVD ; + +#endif + +#if defined(__BIG_ENDIAN) + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_107_RSVD { +u32 rsvd1:7 ;/* DWORD 0 */ +u32 rsvd0:1 ;/* DWORD 0 */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_107_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_107_RSVD ; + +#else + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_107_RSVD { +u32 rsvd0:1 ;/* DWORD 0 */ +u32 rsvd1:7 ;/* DWORD 0 */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_107_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_107_RSVD ; +#endif + +#if defined(__BIG_ENDIAN) + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_108_RSVD { +union { +struct { +u32 rsvd1:31 ;/* DWORD 0 */ +u32 rsvd0:1 ;/* DWORD 0 */ + } SG_PACK;/* unnamed struct */ +u32 dw;/* dword union */ + };/* unnamed union */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_108_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_108_RSVD ; + +SG_C_ASSERT (__sizeof__ISCSI_INITIATOR_HOST_STRUCT_ANON_108_RSVD, +sizeof (ISCSI_INITIATOR_HOST_STRUCT_ANON_108_RSVD ) ==4 ); + +#else + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_108_RSVD { +union { +struct { +u32 rsvd0:1 ;/* DWORD 0 */ +u32 rsvd1:31 ;/* DWORD 0 */ + } SG_PACK;/* unnamed struct */ +u32 dw;/* dword union */ + };/* unnamed union */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_108_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_108_RSVD ; + +SG_C_ASSERT (__sizeof__ISCSI_INITIATOR_HOST_STRUCT_ANON_108_RSVD, +sizeof (ISCSI_INITIATOR_HOST_STRUCT_ANON_108_RSVD ) ==4 );#endif + +#if defined(__BIG_ENDIAN) +/* iSCSI Completion Queue Entry definition for driver msg +completions */ typedef struct _ISCSI_DRIVER_MSG_CQ_ENTRY { +union { +struct { +u32 status:4 ;/* DWORD 0 */ +u32 cq_type:2 ;/* DWORD 0 */ +u32 cid:10 ;/* DWORD 0 */ +u32 rsvd0:1 ;/* DWORD 0 */ +u32 wrb_index:15 ;/* DWORD 0 */ +u32 rsvd2:8 ;/* DWORD 1 */ +u32 s:1 ;/* DWORD 1 */ +u32 rsvd1:23 ;/* DWORD 1 */ +u32 rsvd3[1 ];/* DWORDS 2 to 2 */ +u32 Valid:1 ;/* DWORD 3 */ +u32 pduBytesRcvd:31 ;/* DWORD 3 */ + } SG_PACK;/* unnamed struct */ +u32 dw[4 ];/* dword union */ + };/* unnamed union */ +} SG_PACK ISCSI_DRIVER_MSG_CQ_ENTRY, *PISCSI_DRIVER_MSG_CQ_ENTRY; + +SG_C_ASSERT (__sizeof__ISCSI_DRIVER_MSG_CQ_ENTRY, +sizeof (ISCSI_DRIVER_MSG_CQ_ENTRY ) ==16 ); + +#else +/* iSCSI Completion Queue Entry definition for driver msg +completions */ typedef struct _ISCSI_DRIVER_MSG_CQ_ENTRY { +union { +struct { +u32 wrb_index:15 ;/* DWORD 0 */ +u32 rsvd0:1 ;/* DWORD 0 */ +u32 cid:10 ;/* DWORD 0 */ +u32 cq_type:2 ;/* DWORD 0 */ +u32 status:4 ;/* DWORD 0 */ +u32 rsvd1:23 ;/* DWORD 1 */ +u32 s:1 ;/* DWORD 1 */ +u32 rsvd2:8 ;/* DWORD 1 */ +u32 rsvd3[1 ];/* DWORDS 2 to 2 */ +u32 pduBytesRcvd:31 ;/* DWORD 3 */ +u32 Valid:1 ;/* DWORD 3 */ + } SG_PACK;/* unnamed struct */ +u32 dw[4 ];/* dword union */ + };/* unnamed union */ +} SG_PACK ISCSI_DRIVER_MSG_CQ_ENTRY, *PISCSI_DRIVER_MSG_CQ_ENTRY; + +SG_C_ASSERT (__sizeof__ISCSI_DRIVER_MSG_CQ_ENTRY, +sizeof (ISCSI_DRIVER_MSG_CQ_ENTRY ) ==16 );#endif + +#if defined(__BIG_ENDIAN) + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_109_RSVD { +u32 rsvd1:3 ;/* DWORD 0 */ +u32 rsvd0:1 ;/* DWORD 0 */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_109_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_109_RSVD ; + +#else + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_109_RSVD { +u32 rsvd0:1 ;/* DWORD 0 */ +u32 rsvd1:3 ;/* DWORD 0 */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_109_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_109_RSVD ; +#endif + +#if defined(__BIG_ENDIAN) + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_110_RSVD { +u32 rsvd1:7 ;/* DWORD 0 */ +u32 rsvd0:1 ;/* DWORD 0 */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_110_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_110_RSVD ; + +#else + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_110_RSVD { +u32 rsvd0:1 ;/* DWORD 0 */ +u32 rsvd1:7 ;/* DWORD 0 */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_110_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_110_RSVD ; +#endif + +#if defined(__BIG_ENDIAN) + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_111_RSVD { +u32 rsvd1:3 ;/* DWORD 0 */ +u32 rsvd0:1 ;/* DWORD 0 */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_111_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_111_RSVD ; + +#else + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_111_RSVD { +u32 rsvd0:1 ;/* DWORD 0 */ +u32 rsvd1:3 ;/* DWORD 0 */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_111_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_111_RSVD ; +#endif + +#if defined(__BIG_ENDIAN) + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_112_RSVD { +union { +struct { +u32 rsvd1:31 ;/* DWORD 0 */ +u32 rsvd0:1 ;/* DWORD 0 */ + } SG_PACK;/* unnamed struct */ +u32 dw;/* dword union */ + };/* unnamed union */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_112_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_112_RSVD ; + +SG_C_ASSERT (__sizeof__ISCSI_INITIATOR_HOST_STRUCT_ANON_112_RSVD, +sizeof (ISCSI_INITIATOR_HOST_STRUCT_ANON_112_RSVD ) ==4 );#else + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_112_RSVD { +union { +struct { +u32 rsvd0:1 ;/* DWORD 0 */ +u32 rsvd1:31 ;/* DWORD 0 */ + } SG_PACK;/* unnamed struct */ +u32 dw;/* dword union */ + };/* unnamed union */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_112_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_112_RSVD ; + +SG_C_ASSERT (__sizeof__ISCSI_INITIATOR_HOST_STRUCT_ANON_112_RSVD, +sizeof (ISCSI_INITIATOR_HOST_STRUCT_ANON_112_RSVD ) ==4 );#endif + +#if defined(__BIG_ENDIAN) +/* +* [table name="iSCSIWRBInitiator" col="4" delimit=":" caption="iSCSI +* Initiator WRB flag details."] iSCSI PDU type : WR : DSP : DMSG +* : iSCSI Write command with/without Immediate/unsolicited data +* : 1 : 1 : 0 : iSCSI Read command: 0 : 0 : 0 : Text request without +* data: 0 : 0 : 0 : Text request with data: 1 : 1 : 0 : Logout +* request: 0 : 0 : 0 : NOP OUT with ping data with acknowledgement: +* 1 : 1 : 0 : NOP OUT without ping data with acknowledgement: 0 +* : 0 : 0 : NOP OUT without acknowledgement: 0 : 0 : 1 : NOP OUT +* in response to NOP IN from iSCSI target: 0 : 0 : 1 : Task Management +* function request: 0 : 0 : 0 : [/table] Note: The logout and +* task management response will be notified to host driver by Rx +* ULP as part of default ring processing. It is host driver responsibility +* to wait for response or time out for these commands to cleanup +* related data structures. +*/ +typedef struct _ISCSI_INITIATOR_WRB { +union { +struct { +u32 rsvd0:4 ;/* DWORD 0 */ +u32 invld:1 ;/* DWORD 0 */ +u32 dsp:1 ;/* DWORD 0 */ +u32 abort:1 ;/* DWORD 0 */ +u32 dmsg:1 ;/* DWORD 0 */ +u32 wrbindex:8 ;/* DWORD 0 */ +u32 wr:1 ;/* DWORD 0 */ +u32 lt:1 ;/* DWORD 0 */ +u32 lun:14 ;/* DWORD 0 */ +u32 rsvd2:4 ;/* DWORD 1 */ +u32 sgl_icd_Index:12 ;/* DWORD 1 */ +u32 rsvd1:8 ;/* DWORD 1 */ +u32 ptr2NextWrb:8 ;/* DWORD 1 */ +u32 cmdsn;/* DWORD 2 */ +u32 rsvd3:20 ;/* DWORD 3 */ +u32 abort_sgl_icd_Index:12 ;/* DWORD 3 */ +u32 addr_hi;/* DWORD 4 */ +u32 addr_lo;/* DWORD 5 */ +u32 rsvd4[1 ];/* DWORDS 6 to 6 */ +u32 ExpDataXfrLen:24 ;/* DWORD 7 */ +u32 len:8 ;/* DWORD 7 */ + } SG_PACK;/* unnamed struct */ +u32 dw[8 ];/* dword union */ + };/* unnamed union */ +} SG_PACK ISCSI_INITIATOR_WRB, *PISCSI_INITIATOR_WRB; + +SG_C_ASSERT (__sizeof__ISCSI_INITIATOR_WRB, +sizeof (ISCSI_INITIATOR_WRB ) ==32 );#else +/* +* [table name="iSCSIWRBInitiator" col="4" delimit=":" caption="iSCSI +* Initiator WRB flag details."] iSCSI PDU type : WR : DSP : DMSG +* : iSCSI Write command with/without Immediate/unsolicited data +* : 1 : 1 : 0 : iSCSI Read command: 0 : 0 : 0 : Text request without +* data: 0 : 0 : 0 : Text request with data: 1 : 1 : 0 : Logout +* request: 0 : 0 : 0 : NOP OUT with ping data with acknowledgement: +* 1 : 1 : 0 : NOP OUT without ping data with acknowledgement: 0 +* : 0 : 0 : NOP OUT without acknowledgement: 0 : 0 : 1 : NOP OUT +* in response to NOP IN from iSCSI target: 0 : 0 : 1 : Task Management +* function request: 0 : 0 : 0 : [/table] Note: The logout and +* task management response will be notified to host driver by Rx +* ULP as part of default ring processing. It is host driver responsibility +* to wait for response or time out for these commands to cleanup +* related data structures. +*/ +typedef struct _ISCSI_INITIATOR_WRB { +union { +struct { +u32 lun:14 ;/* DWORD 0 */ +u32 lt:1 ;/* DWORD 0 */ +u32 wr:1 ;/* DWORD 0 */ +u32 wrbindex:8 ;/* DWORD 0 */ +u32 dmsg:1 ;/* DWORD 0 */ +u32 abort:1 ;/* DWORD 0 */ +u32 dsp:1 ;/* DWORD 0 */ +u32 invld:1 ;/* DWORD 0 */ +u32 rsvd0:4 ;/* DWORD 0 */ +u32 ptr2NextWrb:8 ;/* DWORD 1 */ +u32 rsvd1:8 ;/* DWORD 1 */ +u32 sgl_icd_Index:12 ;/* DWORD 1 */ +u32 rsvd2:4 ;/* DWORD 1 */ +u32 cmdsn;/* DWORD 2 */ +u32 abort_sgl_icd_Index:12 ;/* DWORD 3 */ +u32 rsvd3:20 ;/* DWORD 3 */ +u32 addr_hi;/* DWORD 4 */ +u32 addr_lo;/* DWORD 5 */ +u32 rsvd4[1 ];/* DWORDS 6 to 6 */ +u32 len:8 ;/* DWORD 7 */ +u32 ExpDataXfrLen:24 ;/* DWORD 7 */ + } SG_PACK;/* unnamed struct */ +u32 dw[8 ];/* dword union */ + };/* unnamed union */ +} SG_PACK ISCSI_INITIATOR_WRB, *PISCSI_INITIATOR_WRB; + +SG_C_ASSERT (__sizeof__ISCSI_INITIATOR_WRB, +sizeof (ISCSI_INITIATOR_WRB ) ==32 );#endif + +#if defined(__BIG_ENDIAN) + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_113_RSVD { +u32 rsvd0:1 ;/* DWORD 0 */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_113_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_113_RSVD ; + +#else + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_113_RSVD { +u32 rsvd0:1 ;/* DWORD 0 */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_113_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_113_RSVD ; +#endif + +#if defined(__BIG_ENDIAN) + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_114_RSVD { +u32 rsvd1:5 ;/* DWORD 0 */ +u32 rsvd0:1 ;/* DWORD 0 */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_114_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_114_RSVD ; + +#else + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_114_RSVD { +u32 rsvd0:1 ;/* DWORD 0 */ +u32 rsvd1:5 ;/* DWORD 0 */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_114_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_114_RSVD ; +#endif + +#if defined(__BIG_ENDIAN) + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_115_RSVD { +u32 rsvd1:7 ;/* DWORD 0 */ +u32 rsvd0:1 ;/* DWORD 0 */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_115_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_115_RSVD ; + +#else + +typedef struct _ISCSI_INITIATOR_HOST_STRUCT_ANON_115_RSVD { +u32 rsvd0:1 ;/* DWORD 0 */ +u32 rsvd1:7 ;/* DWORD 0 */ +} SG_PACK ISCSI_INITIATOR_HOST_STRUCT_ANON_115_RSVD, + *PISCSI_INITIATOR_HOST_STRUCT_ANON_115_RSVD ; +#endif + +#if defined(__BIG_ENDIAN) +/* DEPRECATE */ +typedef struct _ISCSI_WRB { +union { +struct { +u32 driverMessage:1 ;/* DWORD 0 */ +u32 rw_cmd:1 ;/* DWORD 0 */ +u32 rsvd1:6 ;/* DWORD 0 */ +u32 wrbIndex:8 ;/* DWORD 0 */ +u32 rsvd0:1 ;/* DWORD 0 */ +u32 invalidate:1 ;/* DWORD 0 */ +u32 opcode:6 ;/* DWORD 0 */ +u32 targetLUN:8 ;/* DWORD 0 */ +u32 unsolicited_length:16 ;/* DWORD 1 */ +u32 rsvd2:8 ;/* DWORD 1 */ +u32 ptr2NextWrb:8 ;/* DWORD 1 */ +u32 cmd_sn;/* DWORD 2 */ +u32 exp_stat_sn;/* DWORD 3 */ + } SG_PACK;/* unnamed struct */ +u32 dw[4 ];/* dword union */ + };/* unnamed union */ +} SG_PACK ISCSI_WRB, *PISCSI_WRB; + +SG_C_ASSERT (__sizeof__ISCSI_WRB,sizeof (ISCSI_WRB ) ==16 ); + +#else +/* DEPRECATE */ +typedef struct _ISCSI_WRB { +union { +struct { +u32 targetLUN:8 ;/* DWORD 0 */ +u32 opcode:6 ;/* DWORD 0 */ +u32 invalidate:1 ;/* DWORD 0 */ +u32 rsvd0:1 ;/* DWORD 0 */ +u32 wrbIndex:8 ;/* DWORD 0 */ +u32 rsvd1:6 ;/* DWORD 0 */ +u32 rw_cmd:1 ;/* DWORD 0 */ +u32 driverMessage:1 ;/* DWORD 0 */ +u32 ptr2NextWrb:8 ;/* DWORD 1 */ +u32 rsvd2:8 ;/* DWORD 1 */ +u32 unsolicited_length:16 ;/* DWORD 1 */ +u32 cmd_sn;/* DWORD 2 */ +u32 exp_stat_sn;/* DWORD 3 */ + } SG_PACK;/* unnamed struct */ +u32 dw[4 ];/* dword union */ + };/* unnamed union */ +} SG_PACK ISCSI_WRB, *PISCSI_WRB; + +SG_C_ASSERT (__sizeof__ISCSI_WRB,sizeof (ISCSI_WRB ) ==16 );#endif + +#ifdef SG_PRAGMA_PACK +#pragma pack(pop) +#endif + +#endif /* __iscsi_initiator_host_struct_bmap_h__ */
linux-2.6.24.2/drivers/message/beclib/fw/bmap/descriptors_bmap.h +118 -0
118 lines not on this page · raw message
linux-2.6.24.2/drivers/message/beclib/fw/bmap/regmap_bmap.h +197 -0
197 lines not on this page · raw message
linux-2.6.24.2/drivers/message/beclib/fw/bmap/ioctl_hdr_bmap.h +80 -0
80 lines not on this page · raw message
linux-2.6.24.2/drivers/message/beclib/fw/bmap/ioctl_top_bmap.h +54 -0
54 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.