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 #ifndef MPI_FC_H
47 #define MPI_FC_H
48
49
50
51
52
53
54
55
56
57
58
59
60 typedef struct _MSG_LINK_SERVICE_BUFFER_POST_REQUEST
61 {
62 U8 BufferPostFlags;
63 U8 BufferCount;
64 U8 ChainOffset;
65 U8 Function;
66 U16 Reserved;
67 U8 Reserved1;
68 U8 MsgFlags;
69 U32 MsgContext;
70 SGE_TRANS_SIMPLE_UNION SGL;
71 } MSG_LINK_SERVICE_BUFFER_POST_REQUEST,
72 MPI_POINTER PTR_MSG_LINK_SERVICE_BUFFER_POST_REQUEST,
73 LinkServiceBufferPostRequest_t, MPI_POINTER pLinkServiceBufferPostRequest_t;
74
75 #define LINK_SERVICE_BUFFER_POST_FLAGS_PORT_MASK (0x01)
76
77 typedef struct _WWNFORMAT
78 {
79 U32 PortNameHigh;
80 U32 PortNameLow;
81 U32 NodeNameHigh;
82 U32 NodeNameLow;
83 } WWNFORMAT,
84 WwnFormat_t;
85
86
87 typedef struct _MSG_LINK_SERVICE_BUFFER_POST_REPLY
88 {
89 U8 Flags;
90 U8 Reserved;
91 U8 MsgLength;
92 U8 Function;
93 U16 Reserved1;
94 U8 PortNumber;
95 U8 MsgFlags;
96 U32 MsgContext;
97 U16 Reserved2;
98 U16 IOCStatus;
99 U32 IOCLogInfo;
100 U32 TransferLength;
101 U32 TransactionContext;
102 U32 Rctl_Did;
103 U32 Csctl_Sid;
104 U32 Type_Fctl;
105 U16 SeqCnt;
106 U8 Dfctl;
107 U8 SeqId;
108 U16 Rxid;
109 U16 Oxid;
110 U32 Parameter;
111 WWNFORMAT Wwn;
112 } MSG_LINK_SERVICE_BUFFER_POST_REPLY, MPI_POINTER PTR_MSG_LINK_SERVICE_BUFFER_POST_REPLY,
113 LinkServiceBufferPostReply_t, MPI_POINTER pLinkServiceBufferPostReply_t;
114
115 #define MPI_LS_BUF_POST_REPLY_FLAG_NO_RSP_NEEDED (0x80)
116
117 #define MPI_FC_DID_MASK (0x00FFFFFF)
118 #define MPI_FC_DID_SHIFT (0)
119 #define MPI_FC_RCTL_MASK (0xFF000000)
120 #define MPI_FC_RCTL_SHIFT (24)
121 #define MPI_FC_SID_MASK (0x00FFFFFF)
122 #define MPI_FC_SID_SHIFT (0)
123 #define MPI_FC_CSCTL_MASK (0xFF000000)
124 #define MPI_FC_CSCTL_SHIFT (24)
125 #define MPI_FC_FCTL_MASK (0x00FFFFFF)
126 #define MPI_FC_FCTL_SHIFT (0)
127 #define MPI_FC_TYPE_MASK (0xFF000000)
128 #define MPI_FC_TYPE_SHIFT (24)
129
130
131 #define FCP_TARGET_DID_MASK (0x00FFFFFF)
132 #define FCP_TARGET_DID_SHIFT (0)
133 #define FCP_TARGET_RCTL_MASK (0xFF000000)
134 #define FCP_TARGET_RCTL_SHIFT (24)
135 #define FCP_TARGET_SID_MASK (0x00FFFFFF)
136 #define FCP_TARGET_SID_SHIFT (0)
137 #define FCP_TARGET_CSCTL_MASK (0xFF000000)
138 #define FCP_TARGET_CSCTL_SHIFT (24)
139 #define FCP_TARGET_FCTL_MASK (0x00FFFFFF)
140 #define FCP_TARGET_FCTL_SHIFT (0)
141 #define FCP_TARGET_TYPE_MASK (0xFF000000)
142 #define FCP_TARGET_TYPE_SHIFT (24)
143
144
145
146
147
148
149 typedef struct _MSG_LINK_SERVICE_RSP_REQUEST
150 {
151 U8 RspFlags;
152 U8 RspLength;
153 U8 ChainOffset;
154 U8 Function;
155 U16 Reserved1;
156 U8 Reserved2;
157 U8 MsgFlags;
158 U32 MsgContext;
159 U32 Rctl_Did;
160 U32 Csctl_Sid;
161 U32 Type_Fctl;
162 U16 SeqCnt;
163 U8 Dfctl;
164 U8 SeqId;
165 U16 Rxid;
166 U16 Oxid;
167 U32 Parameter;
168 SGE_SIMPLE_UNION SGL;
169 } MSG_LINK_SERVICE_RSP_REQUEST, MPI_POINTER PTR_MSG_LINK_SERVICE_RSP_REQUEST,
170 LinkServiceRspRequest_t, MPI_POINTER pLinkServiceRspRequest_t;
171
172 #define LINK_SERVICE_RSP_FLAGS_IMMEDIATE (0x80)
173 #define LINK_SERVICE_RSP_FLAGS_PORT_MASK (0x01)
174
175
176
177 typedef struct _MSG_LINK_SERVICE_RSP_REPLY
178 {
179 U16 Reserved;
180 U8 MsgLength;
181 U8 Function;
182 U16 Reserved1;
183 U8 Reserved_0100_InitiatorIndex;
184 U8 MsgFlags;
185 U32 MsgContext;
186 U16 Reserved3;
187 U16 IOCStatus;
188 U32 IOCLogInfo;
189 U32 InitiatorIndex;
190 } MSG_LINK_SERVICE_RSP_REPLY, MPI_POINTER PTR_MSG_LINK_SERVICE_RSP_REPLY,
191 LinkServiceRspReply_t, MPI_POINTER pLinkServiceRspReply_t;
192
193
194
195
196
197
198 typedef struct _MSG_EXLINK_SERVICE_SEND_REQUEST
199 {
200 U8 SendFlags;
201 U8 AliasIndex;
202 U8 ChainOffset;
203 U8 Function;
204 U32 MsgFlags_Did;
205 U32 MsgContext;
206 U32 ElsCommandCode;
207 SGE_SIMPLE_UNION SGL;
208 } MSG_EXLINK_SERVICE_SEND_REQUEST, MPI_POINTER PTR_MSG_EXLINK_SERVICE_SEND_REQUEST,
209 ExLinkServiceSendRequest_t, MPI_POINTER pExLinkServiceSendRequest_t;
210
211 #define EX_LINK_SERVICE_SEND_DID_MASK (0x00FFFFFF)
212 #define EX_LINK_SERVICE_SEND_DID_SHIFT (0)
213 #define EX_LINK_SERVICE_SEND_MSGFLAGS_MASK (0xFF000000)
214 #define EX_LINK_SERVICE_SEND_MSGFLAGS_SHIFT (24)
215
216
217
218 typedef struct _MSG_EXLINK_SERVICE_SEND_REPLY
219 {
220 U8 Reserved;
221 U8 AliasIndex;
222 U8 MsgLength;
223 U8 Function;
224 U16 Reserved1;
225 U8 Reserved2;
226 U8 MsgFlags;
227 U32 MsgContext;
228 U16 Reserved3;
229 U16 IOCStatus;
230 U32 IOCLogInfo;
231 U32 ResponseLength;
232 } MSG_EXLINK_SERVICE_SEND_REPLY, MPI_POINTER PTR_MSG_EXLINK_SERVICE_SEND_REPLY,
233 ExLinkServiceSendReply_t, MPI_POINTER pExLinkServiceSendReply_t;
234
235
236
237
238
239 typedef struct _MSG_FC_ABORT_REQUEST
240 {
241 U8 AbortFlags;
242 U8 AbortType;
243 U8 ChainOffset;
244 U8 Function;
245 U16 Reserved1;
246 U8 Reserved2;
247 U8 MsgFlags;
248 U32 MsgContext;
249 U32 TransactionContextToAbort;
250 } MSG_FC_ABORT_REQUEST, MPI_POINTER PTR_MSG_FC_ABORT_REQUEST,
251 FcAbortRequest_t, MPI_POINTER pFcAbortRequest_t;
252
253 #define FC_ABORT_FLAG_PORT_MASK (0x01)
254
255 #define FC_ABORT_TYPE_ALL_FC_BUFFERS (0x00)
256 #define FC_ABORT_TYPE_EXACT_FC_BUFFER (0x01)
257 #define FC_ABORT_TYPE_CT_SEND_REQUEST (0x02)
258 #define FC_ABORT_TYPE_EXLINKSEND_REQUEST (0x03)
259
260
261 typedef struct _MSG_FC_ABORT_REPLY
262 {
263 U16 Reserved;
264 U8 MsgLength;
265 U8 Function;
266 U16 Reserved1;
267 U8 Reserved2;
268 U8 MsgFlags;
269 U32 MsgContext;
270 U16 Reserved3;
271 U16 IOCStatus;
272 U32 IOCLogInfo;
273 } MSG_FC_ABORT_REPLY, MPI_POINTER PTR_MSG_FC_ABORT_REPLY,
274 FcAbortReply_t, MPI_POINTER pFcAbortReply_t;
275
276
277
278
279
280
281 typedef struct _MSG_FC_COMMON_TRANSPORT_SEND_REQUEST
282 {
283 U8 SendFlags;
284 U8 AliasIndex;
285 U8 ChainOffset;
286 U8 Function;
287 U32 MsgFlags_Did;
288 U32 MsgContext;
289 U16 CTCommandCode;
290 U8 FsType;
291 U8 Reserved1;
292 SGE_SIMPLE_UNION SGL;
293 } MSG_FC_COMMON_TRANSPORT_SEND_REQUEST,
294 MPI_POINTER PTR_MSG_FC_COMMON_TRANSPORT_SEND_REQUEST,
295 FcCommonTransportSendRequest_t, MPI_POINTER pFcCommonTransportSendRequest_t;
296
297 #define MPI_FC_CT_SEND_DID_MASK (0x00FFFFFF)
298 #define MPI_FC_CT_SEND_DID_SHIFT (0)
299 #define MPI_FC_CT_SEND_MSGFLAGS_MASK (0xFF000000)
300 #define MPI_FC_CT_SEND_MSGFLAGS_SHIFT (24)
301
302
303
304 typedef struct _MSG_FC_COMMON_TRANSPORT_SEND_REPLY
305 {
306 U8 Reserved;
307 U8 AliasIndex;
308 U8 MsgLength;
309 U8 Function;
310 U16 Reserved1;
311 U8 Reserved2;
312 U8 MsgFlags;
313 U32 MsgContext;
314 U16 Reserved3;
315 U16 IOCStatus;
316 U32 IOCLogInfo;
317 U32 ResponseLength;
318 } MSG_FC_COMMON_TRANSPORT_SEND_REPLY, MPI_POINTER PTR_MSG_FC_COMMON_TRANSPORT_SEND_REPLY,
319 FcCommonTransportSendReply_t, MPI_POINTER pFcCommonTransportSendReply_t;
320
321
322
323
324
325
326 typedef struct _MSG_FC_PRIMITIVE_SEND_REQUEST
327 {
328 U8 SendFlags;
329 U8 Reserved;
330 U8 ChainOffset;
331 U8 Function;
332 U16 Reserved1;
333 U8 Reserved2;
334 U8 MsgFlags;
335 U32 MsgContext;
336 U8 FcPrimitive[4];
337 } MSG_FC_PRIMITIVE_SEND_REQUEST, MPI_POINTER PTR_MSG_FC_PRIMITIVE_SEND_REQUEST,
338 FcPrimitiveSendRequest_t, MPI_POINTER pFcPrimitiveSendRequest_t;
339
340 #define MPI_FC_PRIM_SEND_FLAGS_PORT_MASK (0x01)
341 #define MPI_FC_PRIM_SEND_FLAGS_ML_RESET_LINK (0x02)
342 #define MPI_FC_PRIM_SEND_FLAGS_RESET_LINK (0x04)
343 #define MPI_FC_PRIM_SEND_FLAGS_STOP_SEND (0x08)
344 #define MPI_FC_PRIM_SEND_FLAGS_SEND_ONCE (0x10)
345 #define MPI_FC_PRIM_SEND_FLAGS_SEND_AROUND (0x20)
346 #define MPI_FC_PRIM_SEND_FLAGS_UNTIL_FULL (0x40)
347 #define MPI_FC_PRIM_SEND_FLAGS_FOREVER (0x80)
348
349
350 typedef struct _MSG_FC_PRIMITIVE_SEND_REPLY
351 {
352 U8 SendFlags;
353 U8 Reserved;
354 U8 MsgLength;
355 U8 Function;
356 U16 Reserved1;
357 U8 Reserved2;
358 U8 MsgFlags;
359 U32 MsgContext;
360 U16 Reserved3;
361 U16 IOCStatus;
362 U32 IOCLogInfo;
363 } MSG_FC_PRIMITIVE_SEND_REPLY, MPI_POINTER PTR_MSG_FC_PRIMITIVE_SEND_REPLY,
364 FcPrimitiveSendReply_t, MPI_POINTER pFcPrimitiveSendReply_t;
365
366 #endif
367