Go to the documentation of this file.
153 #define LAN_REPLY_PACKET_LENGTH_MASK (0x0000FFFF)
154 #define LAN_REPLY_PACKET_LENGTH_SHIFT (0)
155 #define LAN_REPLY_BUCKET_CONTEXT_MASK (0x07FF0000)
156 #define LAN_REPLY_BUCKET_CONTEXT_SHIFT (16)
157 #define LAN_REPLY_BUFFER_CONTEXT_MASK (0x07FFFFFF)
158 #define LAN_REPLY_BUFFER_CONTEXT_SHIFT (0)
159 #define LAN_REPLY_FORM_MASK (0x18000000)
160 #define LAN_REPLY_FORM_RECEIVE_SINGLE (0x00)
161 #define LAN_REPLY_FORM_RECEIVE_MULTIPLE (0x01)
162 #define LAN_REPLY_FORM_SEND_SINGLE (0x02)
163 #define LAN_REPLY_FORM_MESSAGE_CONTEXT (0x03)
164 #define LAN_REPLY_FORM_SHIFT (27)
166 #define GET_LAN_PACKET_LENGTH(x) (((x) & LAN_REPLY_PACKET_LENGTH_MASK) \
167 >> LAN_REPLY_PACKET_LENGTH_SHIFT)
169 #define SET_LAN_PACKET_LENGTH(x, lth) \
170 ((x) = ((x) & ~LAN_REPLY_PACKET_LENGTH_MASK) | \
171 (((lth) << LAN_REPLY_PACKET_LENGTH_SHIFT) & \
172 LAN_REPLY_PACKET_LENGTH_MASK))
174 #define GET_LAN_BUCKET_CONTEXT(x) (((x) & LAN_REPLY_BUCKET_CONTEXT_MASK) \
175 >> LAN_REPLY_BUCKET_CONTEXT_SHIFT)
177 #define SET_LAN_BUCKET_CONTEXT(x, ctx) \
178 ((x) = ((x) & ~LAN_REPLY_BUCKET_CONTEXT_MASK) | \
179 (((ctx) << LAN_REPLY_BUCKET_CONTEXT_SHIFT) & \
180 LAN_REPLY_BUCKET_CONTEXT_MASK))
182 #define GET_LAN_BUFFER_CONTEXT(x) (((x) & LAN_REPLY_BUFFER_CONTEXT_MASK) \
183 >> LAN_REPLY_BUFFER_CONTEXT_SHIFT)
185 #define SET_LAN_BUFFER_CONTEXT(x, ctx) \
186 ((x) = ((x) & ~LAN_REPLY_BUFFER_CONTEXT_MASK) | \
187 (((ctx) << LAN_REPLY_BUFFER_CONTEXT_SHIFT) & \
188 LAN_REPLY_BUFFER_CONTEXT_MASK))
190 #define GET_LAN_FORM(x) (((x) & LAN_REPLY_FORM_MASK) \
191 >> LAN_REPLY_FORM_SHIFT)
193 #define SET_LAN_FORM(x, frm) \
194 ((x) = ((x) & ~LAN_REPLY_FORM_MASK) | \
195 (((frm) << LAN_REPLY_FORM_SHIFT) & \
196 LAN_REPLY_FORM_MASK))
203 #define MPI_LAN_DEVICE_STATE_RESET (0x00)
204 #define MPI_LAN_DEVICE_STATE_OPERATIONAL (0x01)
211 #define MPI_LAN_TX_MODES_ENABLE_LOOPBACK_SUPPRESSION (0x01)