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#ifndef MPI2_TOOL_H
42#define MPI2_TOOL_H
43
44
45
46
47
48
49
50
51#define MPI2_TOOLBOX_CLEAN_TOOL (0x00)
52#define MPI2_TOOLBOX_MEMORY_MOVE_TOOL (0x01)
53#define MPI2_TOOLBOX_DIAG_DATA_UPLOAD_TOOL (0x02)
54#define MPI2_TOOLBOX_ISTWI_READ_WRITE_TOOL (0x03)
55#define MPI2_TOOLBOX_BEACON_TOOL (0x05)
56#define MPI2_TOOLBOX_DIAGNOSTIC_CLI_TOOL (0x06)
57#define MPI2_TOOLBOX_TEXT_DISPLAY_TOOL (0x07)
58
59
60
61
62
63typedef struct _MPI2_TOOLBOX_REPLY {
64 U8 Tool;
65 U8 Reserved1;
66 U8 MsgLength;
67 U8 Function;
68 U16 Reserved2;
69 U8 Reserved3;
70 U8 MsgFlags;
71 U8 VP_ID;
72 U8 VF_ID;
73 U16 Reserved4;
74 U16 Reserved5;
75 U16 IOCStatus;
76 U32 IOCLogInfo;
77} MPI2_TOOLBOX_REPLY, *PTR_MPI2_TOOLBOX_REPLY,
78 Mpi2ToolboxReply_t, *pMpi2ToolboxReply_t;
79
80
81
82
83
84typedef struct _MPI2_TOOLBOX_CLEAN_REQUEST {
85 U8 Tool;
86 U8 Reserved1;
87 U8 ChainOffset;
88 U8 Function;
89 U16 Reserved2;
90 U8 Reserved3;
91 U8 MsgFlags;
92 U8 VP_ID;
93 U8 VF_ID;
94 U16 Reserved4;
95 U32 Flags;
96} MPI2_TOOLBOX_CLEAN_REQUEST, *PTR_MPI2_TOOLBOX_CLEAN_REQUEST,
97 Mpi2ToolboxCleanRequest_t, *pMpi2ToolboxCleanRequest_t;
98
99
100#define MPI2_TOOLBOX_CLEAN_BOOT_SERVICES (0x80000000)
101#define MPI2_TOOLBOX_CLEAN_PERSIST_MANUFACT_PAGES (0x40000000)
102#define MPI2_TOOLBOX_CLEAN_OTHER_PERSIST_PAGES (0x20000000)
103#define MPI2_TOOLBOX_CLEAN_FW_CURRENT (0x10000000)
104#define MPI2_TOOLBOX_CLEAN_FW_BACKUP (0x08000000)
105#define MPI2_TOOLBOX_CLEAN_BIT26_PRODUCT_SPECIFIC (0x04000000)
106#define MPI2_TOOLBOX_CLEAN_MEGARAID (0x02000000)
107#define MPI2_TOOLBOX_CLEAN_INITIALIZATION (0x01000000)
108#define MPI2_TOOLBOX_CLEAN_FLASH (0x00000004)
109#define MPI2_TOOLBOX_CLEAN_SEEPROM (0x00000002)
110#define MPI2_TOOLBOX_CLEAN_NVSRAM (0x00000001)
111
112
113
114
115
116typedef struct _MPI2_TOOLBOX_MEM_MOVE_REQUEST {
117 U8 Tool;
118 U8 Reserved1;
119 U8 ChainOffset;
120 U8 Function;
121 U16 Reserved2;
122 U8 Reserved3;
123 U8 MsgFlags;
124 U8 VP_ID;
125 U8 VF_ID;
126 U16 Reserved4;
127 MPI2_SGE_SIMPLE_UNION SGL;
128} MPI2_TOOLBOX_MEM_MOVE_REQUEST, *PTR_MPI2_TOOLBOX_MEM_MOVE_REQUEST,
129 Mpi2ToolboxMemMoveRequest_t, *pMpi2ToolboxMemMoveRequest_t;
130
131
132
133
134
135typedef struct _MPI2_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST {
136 U8 Tool;
137 U8 Reserved1;
138 U8 ChainOffset;
139 U8 Function;
140 U16 Reserved2;
141 U8 Reserved3;
142 U8 MsgFlags;
143 U8 VP_ID;
144 U8 VF_ID;
145 U16 Reserved4;
146 U8 SGLFlags;
147 U8 Reserved5;
148 U16 Reserved6;
149 U32 Flags;
150 U32 DataLength;
151 MPI2_SGE_SIMPLE_UNION SGL;
152} MPI2_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST,
153 *PTR_MPI2_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST,
154 Mpi2ToolboxDiagDataUploadRequest_t,
155 *pMpi2ToolboxDiagDataUploadRequest_t;
156
157
158
159typedef struct _MPI2_DIAG_DATA_UPLOAD_HEADER {
160 U32 DiagDataLength;
161 U8 FormatCode;
162 U8 Reserved1;
163 U16 Reserved2;
164} MPI2_DIAG_DATA_UPLOAD_HEADER, *PTR_MPI2_DIAG_DATA_UPLOAD_HEADER,
165 Mpi2DiagDataUploadHeader_t, *pMpi2DiagDataUploadHeader_t;
166
167
168
169
170
171
172typedef struct _MPI2_TOOLBOX_ISTWI_READ_WRITE_REQUEST {
173 U8 Tool;
174 U8 Reserved1;
175 U8 ChainOffset;
176 U8 Function;
177 U16 Reserved2;
178 U8 Reserved3;
179 U8 MsgFlags;
180 U8 VP_ID;
181 U8 VF_ID;
182 U16 Reserved4;
183 U32 Reserved5;
184 U32 Reserved6;
185 U8 DevIndex;
186 U8 Action;
187 U8 SGLFlags;
188 U8 Flags;
189 U16 TxDataLength;
190 U16 RxDataLength;
191 U32 Reserved8;
192 U32 Reserved9;
193 U32 Reserved10;
194 U32 Reserved11;
195 U32 Reserved12;
196 MPI2_SGE_SIMPLE_UNION SGL;
197} MPI2_TOOLBOX_ISTWI_READ_WRITE_REQUEST,
198 *PTR_MPI2_TOOLBOX_ISTWI_READ_WRITE_REQUEST,
199 Mpi2ToolboxIstwiReadWriteRequest_t,
200 *pMpi2ToolboxIstwiReadWriteRequest_t;
201
202
203#define MPI2_TOOL_ISTWI_ACTION_READ_DATA (0x01)
204#define MPI2_TOOL_ISTWI_ACTION_WRITE_DATA (0x02)
205#define MPI2_TOOL_ISTWI_ACTION_SEQUENCE (0x03)
206#define MPI2_TOOL_ISTWI_ACTION_RESERVE_BUS (0x10)
207#define MPI2_TOOL_ISTWI_ACTION_RELEASE_BUS (0x11)
208#define MPI2_TOOL_ISTWI_ACTION_RESET (0x12)
209
210
211
212
213#define MPI2_TOOL_ISTWI_FLAG_AUTO_RESERVE_RELEASE (0x80)
214#define MPI2_TOOL_ISTWI_FLAG_PAGE_ADDR_MASK (0x07)
215
216
217typedef struct _MPI2_TOOLBOX_ISTWI_REPLY {
218 U8 Tool;
219 U8 Reserved1;
220 U8 MsgLength;
221 U8 Function;
222 U16 Reserved2;
223 U8 Reserved3;
224 U8 MsgFlags;
225 U8 VP_ID;
226 U8 VF_ID;
227 U16 Reserved4;
228 U16 Reserved5;
229 U16 IOCStatus;
230 U32 IOCLogInfo;
231 U8 DevIndex;
232 U8 Action;
233 U8 IstwiStatus;
234 U8 Reserved6;
235 U16 TxDataCount;
236 U16 RxDataCount;
237} MPI2_TOOLBOX_ISTWI_REPLY, *PTR_MPI2_TOOLBOX_ISTWI_REPLY,
238 Mpi2ToolboxIstwiReply_t, *pMpi2ToolboxIstwiReply_t;
239
240
241
242
243
244typedef struct _MPI2_TOOLBOX_BEACON_REQUEST {
245 U8 Tool;
246 U8 Reserved1;
247 U8 ChainOffset;
248 U8 Function;
249 U16 Reserved2;
250 U8 Reserved3;
251 U8 MsgFlags;
252 U8 VP_ID;
253 U8 VF_ID;
254 U16 Reserved4;
255 U8 Reserved5;
256 U8 PhysicalPort;
257 U8 Reserved6;
258 U8 Flags;
259} MPI2_TOOLBOX_BEACON_REQUEST, *PTR_MPI2_TOOLBOX_BEACON_REQUEST,
260 Mpi2ToolboxBeaconRequest_t, *pMpi2ToolboxBeaconRequest_t;
261
262
263#define MPI2_TOOLBOX_FLAGS_BEACONMODE_OFF (0x00)
264#define MPI2_TOOLBOX_FLAGS_BEACONMODE_ON (0x01)
265
266
267
268
269
270#define MPI2_TOOLBOX_DIAG_CLI_CMD_LENGTH (0x5C)
271
272
273typedef struct _MPI2_TOOLBOX_DIAGNOSTIC_CLI_REQUEST {
274 U8 Tool;
275 U8 Reserved1;
276 U8 ChainOffset;
277 U8 Function;
278 U16 Reserved2;
279 U8 Reserved3;
280 U8 MsgFlags;
281 U8 VP_ID;
282 U8 VF_ID;
283 U16 Reserved4;
284 U8 SGLFlags;
285 U8 Reserved5;
286 U16 Reserved6;
287 U32 DataLength;
288 U8 DiagnosticCliCommand[MPI2_TOOLBOX_DIAG_CLI_CMD_LENGTH];
289 MPI2_MPI_SGE_IO_UNION SGL;
290} MPI2_TOOLBOX_DIAGNOSTIC_CLI_REQUEST,
291 *PTR_MPI2_TOOLBOX_DIAGNOSTIC_CLI_REQUEST,
292 Mpi2ToolboxDiagnosticCliRequest_t,
293 *pMpi2ToolboxDiagnosticCliRequest_t;
294
295
296
297
298typedef struct _MPI25_TOOLBOX_DIAGNOSTIC_CLI_REQUEST {
299 U8 Tool;
300 U8 Reserved1;
301 U8 ChainOffset;
302 U8 Function;
303 U16 Reserved2;
304 U8 Reserved3;
305 U8 MsgFlags;
306 U8 VP_ID;
307 U8 VF_ID;
308 U16 Reserved4;
309 U32 Reserved5;
310 U32 DataLength;
311 U8 DiagnosticCliCommand[MPI2_TOOLBOX_DIAG_CLI_CMD_LENGTH];
312 MPI25_SGE_IO_UNION SGL;
313} MPI25_TOOLBOX_DIAGNOSTIC_CLI_REQUEST,
314 *PTR_MPI25_TOOLBOX_DIAGNOSTIC_CLI_REQUEST,
315 Mpi25ToolboxDiagnosticCliRequest_t,
316 *pMpi25ToolboxDiagnosticCliRequest_t;
317
318
319typedef struct _MPI2_TOOLBOX_DIAGNOSTIC_CLI_REPLY {
320 U8 Tool;
321 U8 Reserved1;
322 U8 MsgLength;
323 U8 Function;
324 U16 Reserved2;
325 U8 Reserved3;
326 U8 MsgFlags;
327 U8 VP_ID;
328 U8 VF_ID;
329 U16 Reserved4;
330 U16 Reserved5;
331 U16 IOCStatus;
332 U32 IOCLogInfo;
333 U32 ReturnedDataLength;
334} MPI2_TOOLBOX_DIAGNOSTIC_CLI_REPLY,
335 *PTR_MPI2_TOOLBOX_DIAG_CLI_REPLY,
336 Mpi2ToolboxDiagnosticCliReply_t,
337 *pMpi2ToolboxDiagnosticCliReply_t;
338
339
340
341
342
343
344
345typedef struct _MPI2_TOOLBOX_TEXT_DISPLAY_REQUEST {
346 U8 Tool;
347 U8 Reserved1;
348 U8 ChainOffset;
349 U8 Function;
350 U16 Reserved2;
351 U8 Reserved3;
352 U8 MsgFlags;
353 U8 VP_ID;
354 U8 VF_ID;
355 U16 Reserved4;
356 U8 Console;
357 U8 Flags;
358 U16 Reserved6;
359 U8 TextToDisplay[4];
360} MPI2_TOOLBOX_TEXT_DISPLAY_REQUEST,
361*PTR_MPI2_TOOLBOX_TEXT_DISPLAY_REQUEST,
362Mpi2ToolboxTextDisplayRequest_t,
363*pMpi2ToolboxTextDisplayRequest_t;
364
365
366#define MPI2_TOOLBOX_CONSOLE_TYPE_MASK (0xF0)
367#define MPI2_TOOLBOX_CONSOLE_TYPE_DEFAULT (0x00)
368#define MPI2_TOOLBOX_CONSOLE_TYPE_UART (0x10)
369#define MPI2_TOOLBOX_CONSOLE_TYPE_ETHERNET (0x20)
370
371#define MPI2_TOOLBOX_CONSOLE_NUMBER_MASK (0x0F)
372
373
374#define MPI2_TOOLBOX_CONSOLE_FLAG_TIMESTAMP (0x01)
375
376
377
378
379
380
381
382
383
384
385
386
387
388typedef struct _MPI2_DIAG_BUFFER_POST_REQUEST {
389 U8 ExtendedType;
390 U8 BufferType;
391 U8 ChainOffset;
392 U8 Function;
393 U16 Reserved2;
394 U8 Reserved3;
395 U8 MsgFlags;
396 U8 VP_ID;
397 U8 VF_ID;
398 U16 Reserved4;
399 U64 BufferAddress;
400 U32 BufferLength;
401 U32 Reserved5;
402 U32 Reserved6;
403 U32 Flags;
404 U32 ProductSpecific[23];
405} MPI2_DIAG_BUFFER_POST_REQUEST, *PTR_MPI2_DIAG_BUFFER_POST_REQUEST,
406 Mpi2DiagBufferPostRequest_t, *pMpi2DiagBufferPostRequest_t;
407
408
409#define MPI2_DIAG_EXTENDED_TYPE_UTILIZATION (0x02)
410
411
412#define MPI2_DIAG_BUF_TYPE_TRACE (0x00)
413#define MPI2_DIAG_BUF_TYPE_SNAPSHOT (0x01)
414#define MPI2_DIAG_BUF_TYPE_EXTENDED (0x02)
415
416#define MPI2_DIAG_BUF_TYPE_COUNT (0x03)
417
418
419#define MPI2_DIAG_BUF_FLAG_RELEASE_ON_FULL (0x00000002)
420#define MPI2_DIAG_BUF_FLAG_IMMEDIATE_RELEASE (0x00000001)
421
422
423
424
425
426typedef struct _MPI2_DIAG_BUFFER_POST_REPLY {
427 U8 ExtendedType;
428 U8 BufferType;
429 U8 MsgLength;
430 U8 Function;
431 U16 Reserved2;
432 U8 Reserved3;
433 U8 MsgFlags;
434 U8 VP_ID;
435 U8 VF_ID;
436 U16 Reserved4;
437 U16 Reserved5;
438 U16 IOCStatus;
439 U32 IOCLogInfo;
440 U32 TransferLength;
441} MPI2_DIAG_BUFFER_POST_REPLY, *PTR_MPI2_DIAG_BUFFER_POST_REPLY,
442 Mpi2DiagBufferPostReply_t, *pMpi2DiagBufferPostReply_t;
443
444
445
446
447
448typedef struct _MPI2_DIAG_RELEASE_REQUEST {
449 U8 Reserved1;
450 U8 BufferType;
451 U8 ChainOffset;
452 U8 Function;
453 U16 Reserved2;
454 U8 Reserved3;
455 U8 MsgFlags;
456 U8 VP_ID;
457 U8 VF_ID;
458 U16 Reserved4;
459} MPI2_DIAG_RELEASE_REQUEST, *PTR_MPI2_DIAG_RELEASE_REQUEST,
460 Mpi2DiagReleaseRequest_t, *pMpi2DiagReleaseRequest_t;
461
462
463
464
465
466typedef struct _MPI2_DIAG_RELEASE_REPLY {
467 U8 Reserved1;
468 U8 BufferType;
469 U8 MsgLength;
470 U8 Function;
471 U16 Reserved2;
472 U8 Reserved3;
473 U8 MsgFlags;
474 U8 VP_ID;
475 U8 VF_ID;
476 U16 Reserved4;
477 U16 Reserved5;
478 U16 IOCStatus;
479 U32 IOCLogInfo;
480} MPI2_DIAG_RELEASE_REPLY, *PTR_MPI2_DIAG_RELEASE_REPLY,
481 Mpi2DiagReleaseReply_t, *pMpi2DiagReleaseReply_t;
482
483#endif
484