Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 | /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2000-2008 LSI Corporation. * * * Name: mpi_lan.h * Title: MPI LAN messages and structures * Creation Date: June 30, 2000 * * mpi_lan.h Version: 01.05.01 * * Version History * --------------- * * Date Version Description * -------- -------- ------------------------------------------------------ * 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000. * 05-24-00 00.10.02 Added LANStatus field to _MSG_LAN_SEND_REPLY. * Added LANStatus field to _MSG_LAN_RECEIVE_POST_REPLY. * Moved ListCount field in _MSG_LAN_RECEIVE_POST_REPLY. * 06-06-00 01.00.01 Update version number for 1.0 release. * 06-12-00 01.00.02 Added MPI_ to BUCKETSTATUS_ definitions. * 06-22-00 01.00.03 Major changes to match new LAN definition in 1.0 spec. * 06-30-00 01.00.04 Added Context Reply definitions per revised proposal. * Changed transaction context usage to bucket/buffer. * 07-05-00 01.00.05 Removed LAN_RECEIVE_POST_BUCKET_CONTEXT_MASK definition * to lan private header file * 11-02-00 01.01.01 Original release for post 1.0 work * 02-20-01 01.01.02 Started using MPI_POINTER. * 03-27-01 01.01.03 Added structure offset comments. * 08-08-01 01.02.01 Original release for v1.2 work. * 05-11-04 01.03.01 Original release for MPI v1.3. * 08-19-04 01.05.01 Original release for MPI v1.5. * -------------------------------------------------------------------------- */ #ifndef MPI_LAN_H #define MPI_LAN_H /****************************************************************************** * * L A N M e s s a g e s * *******************************************************************************/ /* LANSend messages */ typedef struct _MSG_LAN_SEND_REQUEST { U16 Reserved; /* 00h */ U8 ChainOffset; /* 02h */ U8 Function; /* 03h */ U16 Reserved2; /* 04h */ U8 PortNumber; /* 06h */ U8 MsgFlags; /* 07h */ U32 MsgContext; /* 08h */ SGE_MPI_UNION SG_List[1]; /* 0Ch */ } MSG_LAN_SEND_REQUEST, MPI_POINTER PTR_MSG_LAN_SEND_REQUEST, LANSendRequest_t, MPI_POINTER pLANSendRequest_t; typedef struct _MSG_LAN_SEND_REPLY { U16 Reserved; /* 00h */ U8 MsgLength; /* 02h */ U8 Function; /* 03h */ U8 Reserved2; /* 04h */ U8 NumberOfContexts; /* 05h */ U8 PortNumber; /* 06h */ U8 MsgFlags; /* 07h */ U32 MsgContext; /* 08h */ U16 Reserved3; /* 0Ch */ U16 IOCStatus; /* 0Eh */ U32 IOCLogInfo; /* 10h */ U32 BufferContext; /* 14h */ } MSG_LAN_SEND_REPLY, MPI_POINTER PTR_MSG_LAN_SEND_REPLY, LANSendReply_t, MPI_POINTER pLANSendReply_t; /* LANReceivePost */ typedef struct _MSG_LAN_RECEIVE_POST_REQUEST { U16 Reserved; /* 00h */ U8 ChainOffset; /* 02h */ U8 Function; /* 03h */ U16 Reserved2; /* 04h */ U8 PortNumber; /* 06h */ U8 MsgFlags; /* 07h */ U32 MsgContext; /* 08h */ U32 BucketCount; /* 0Ch */ SGE_MPI_UNION SG_List[1]; /* 10h */ } MSG_LAN_RECEIVE_POST_REQUEST, MPI_POINTER PTR_MSG_LAN_RECEIVE_POST_REQUEST, LANReceivePostRequest_t, MPI_POINTER pLANReceivePostRequest_t; typedef struct _MSG_LAN_RECEIVE_POST_REPLY { U16 Reserved; /* 00h */ U8 MsgLength; /* 02h */ U8 Function; /* 03h */ U8 Reserved2; /* 04h */ U8 NumberOfContexts; /* 05h */ U8 PortNumber; /* 06h */ U8 MsgFlags; /* 07h */ U32 MsgContext; /* 08h */ U16 Reserved3; /* 0Ch */ U16 IOCStatus; /* 0Eh */ U32 IOCLogInfo; /* 10h */ U32 BucketsRemaining; /* 14h */ U32 PacketOffset; /* 18h */ U32 PacketLength; /* 1Ch */ U32 BucketContext[1]; /* 20h */ } MSG_LAN_RECEIVE_POST_REPLY, MPI_POINTER PTR_MSG_LAN_RECEIVE_POST_REPLY, LANReceivePostReply_t, MPI_POINTER pLANReceivePostReply_t; /* LANReset */ typedef struct _MSG_LAN_RESET_REQUEST { U16 Reserved; /* 00h */ U8 ChainOffset; /* 02h */ U8 Function; /* 03h */ U16 Reserved2; /* 04h */ U8 PortNumber; /* 05h */ U8 MsgFlags; /* 07h */ U32 MsgContext; /* 08h */ } MSG_LAN_RESET_REQUEST, MPI_POINTER PTR_MSG_LAN_RESET_REQUEST, LANResetRequest_t, MPI_POINTER pLANResetRequest_t; typedef struct _MSG_LAN_RESET_REPLY { U16 Reserved; /* 00h */ U8 MsgLength; /* 02h */ U8 Function; /* 03h */ U16 Reserved2; /* 04h */ U8 PortNumber; /* 06h */ U8 MsgFlags; /* 07h */ U32 MsgContext; /* 08h */ U16 Reserved3; /* 0Ch */ U16 IOCStatus; /* 0Eh */ U32 IOCLogInfo; /* 10h */ } MSG_LAN_RESET_REPLY, MPI_POINTER PTR_MSG_LAN_RESET_REPLY, LANResetReply_t, MPI_POINTER pLANResetReply_t; /****************************************************************************/ /* LAN Context Reply defines and macros */ /****************************************************************************/ #define LAN_REPLY_PACKET_LENGTH_MASK (0x0000FFFF) #define LAN_REPLY_PACKET_LENGTH_SHIFT (0) #define LAN_REPLY_BUCKET_CONTEXT_MASK (0x07FF0000) #define LAN_REPLY_BUCKET_CONTEXT_SHIFT (16) #define LAN_REPLY_BUFFER_CONTEXT_MASK (0x07FFFFFF) #define LAN_REPLY_BUFFER_CONTEXT_SHIFT (0) #define LAN_REPLY_FORM_MASK (0x18000000) #define LAN_REPLY_FORM_RECEIVE_SINGLE (0x00) #define LAN_REPLY_FORM_RECEIVE_MULTIPLE (0x01) #define LAN_REPLY_FORM_SEND_SINGLE (0x02) #define LAN_REPLY_FORM_MESSAGE_CONTEXT (0x03) #define LAN_REPLY_FORM_SHIFT (27) #define GET_LAN_PACKET_LENGTH(x) (((x) & LAN_REPLY_PACKET_LENGTH_MASK) \ >> LAN_REPLY_PACKET_LENGTH_SHIFT) #define SET_LAN_PACKET_LENGTH(x, lth) \ ((x) = ((x) & ~LAN_REPLY_PACKET_LENGTH_MASK) | \ (((lth) << LAN_REPLY_PACKET_LENGTH_SHIFT) & \ LAN_REPLY_PACKET_LENGTH_MASK)) #define GET_LAN_BUCKET_CONTEXT(x) (((x) & LAN_REPLY_BUCKET_CONTEXT_MASK) \ >> LAN_REPLY_BUCKET_CONTEXT_SHIFT) #define SET_LAN_BUCKET_CONTEXT(x, ctx) \ ((x) = ((x) & ~LAN_REPLY_BUCKET_CONTEXT_MASK) | \ (((ctx) << LAN_REPLY_BUCKET_CONTEXT_SHIFT) & \ LAN_REPLY_BUCKET_CONTEXT_MASK)) #define GET_LAN_BUFFER_CONTEXT(x) (((x) & LAN_REPLY_BUFFER_CONTEXT_MASK) \ >> LAN_REPLY_BUFFER_CONTEXT_SHIFT) #define SET_LAN_BUFFER_CONTEXT(x, ctx) \ ((x) = ((x) & ~LAN_REPLY_BUFFER_CONTEXT_MASK) | \ (((ctx) << LAN_REPLY_BUFFER_CONTEXT_SHIFT) & \ LAN_REPLY_BUFFER_CONTEXT_MASK)) #define GET_LAN_FORM(x) (((x) & LAN_REPLY_FORM_MASK) \ >> LAN_REPLY_FORM_SHIFT) #define SET_LAN_FORM(x, frm) \ ((x) = ((x) & ~LAN_REPLY_FORM_MASK) | \ (((frm) << LAN_REPLY_FORM_SHIFT) & \ LAN_REPLY_FORM_MASK)) /****************************************************************************/ /* LAN Current Device State defines */ /****************************************************************************/ #define MPI_LAN_DEVICE_STATE_RESET (0x00) #define MPI_LAN_DEVICE_STATE_OPERATIONAL (0x01) /****************************************************************************/ /* LAN Loopback defines */ /****************************************************************************/ #define MPI_LAN_TX_MODES_ENABLE_LOOPBACK_SUPPRESSION (0x01) #endif |