1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24#ifndef MPI2_TOOL_H
25#define MPI2_TOOL_H
26
27
28
29
30
31
32
33
34#define MPI2_TOOLBOX_CLEAN_TOOL (0x00)
35#define MPI2_TOOLBOX_MEMORY_MOVE_TOOL (0x01)
36#define MPI2_TOOLBOX_ISTWI_READ_WRITE_TOOL (0x03)
37#define MPI2_TOOLBOX_BEACON_TOOL (0x05)
38#define MPI2_TOOLBOX_DIAGNOSTIC_CLI_TOOL (0x06)
39
40
41
42
43
44
45typedef struct _MPI2_TOOLBOX_REPLY
46{
47 U8 Tool;
48 U8 Reserved1;
49 U8 MsgLength;
50 U8 Function;
51 U16 Reserved2;
52 U8 Reserved3;
53 U8 MsgFlags;
54 U8 VP_ID;
55 U8 VF_ID;
56 U16 Reserved4;
57 U16 Reserved5;
58 U16 IOCStatus;
59 U32 IOCLogInfo;
60} MPI2_TOOLBOX_REPLY, MPI2_POINTER PTR_MPI2_TOOLBOX_REPLY,
61 Mpi2ToolboxReply_t, MPI2_POINTER pMpi2ToolboxReply_t;
62
63
64
65
66
67
68typedef struct _MPI2_TOOLBOX_CLEAN_REQUEST
69{
70 U8 Tool;
71 U8 Reserved1;
72 U8 ChainOffset;
73 U8 Function;
74 U16 Reserved2;
75 U8 Reserved3;
76 U8 MsgFlags;
77 U8 VP_ID;
78 U8 VF_ID;
79 U16 Reserved4;
80 U32 Flags;
81 } MPI2_TOOLBOX_CLEAN_REQUEST, MPI2_POINTER PTR_MPI2_TOOLBOX_CLEAN_REQUEST,
82 Mpi2ToolboxCleanRequest_t, MPI2_POINTER pMpi2ToolboxCleanRequest_t;
83
84
85#define MPI2_TOOLBOX_CLEAN_BOOT_SERVICES (0x80000000)
86#define MPI2_TOOLBOX_CLEAN_PERSIST_MANUFACT_PAGES (0x40000000)
87#define MPI2_TOOLBOX_CLEAN_OTHER_PERSIST_PAGES (0x20000000)
88#define MPI2_TOOLBOX_CLEAN_FW_CURRENT (0x10000000)
89#define MPI2_TOOLBOX_CLEAN_FW_BACKUP (0x08000000)
90#define MPI2_TOOLBOX_CLEAN_MEGARAID (0x02000000)
91#define MPI2_TOOLBOX_CLEAN_INITIALIZATION (0x01000000)
92#define MPI2_TOOLBOX_CLEAN_FLASH (0x00000004)
93#define MPI2_TOOLBOX_CLEAN_SEEPROM (0x00000002)
94#define MPI2_TOOLBOX_CLEAN_NVSRAM (0x00000001)
95
96
97
98
99
100
101typedef struct _MPI2_TOOLBOX_MEM_MOVE_REQUEST
102{
103 U8 Tool;
104 U8 Reserved1;
105 U8 ChainOffset;
106 U8 Function;
107 U16 Reserved2;
108 U8 Reserved3;
109 U8 MsgFlags;
110 U8 VP_ID;
111 U8 VF_ID;
112 U16 Reserved4;
113 MPI2_SGE_SIMPLE_UNION SGL;
114} MPI2_TOOLBOX_MEM_MOVE_REQUEST, MPI2_POINTER PTR_MPI2_TOOLBOX_MEM_MOVE_REQUEST,
115 Mpi2ToolboxMemMoveRequest_t, MPI2_POINTER pMpi2ToolboxMemMoveRequest_t;
116
117
118
119
120
121
122
123typedef struct _MPI2_TOOLBOX_ISTWI_READ_WRITE_REQUEST {
124 U8 Tool;
125 U8 Reserved1;
126 U8 ChainOffset;
127 U8 Function;
128 U16 Reserved2;
129 U8 Reserved3;
130 U8 MsgFlags;
131 U8 VP_ID;
132 U8 VF_ID;
133 U16 Reserved4;
134 U32 Reserved5;
135 U32 Reserved6;
136 U8 DevIndex;
137 U8 Action;
138 U8 SGLFlags;
139 U8 Reserved7;
140 U16 TxDataLength;
141 U16 RxDataLength;
142 U32 Reserved8;
143 U32 Reserved9;
144 U32 Reserved10;
145 U32 Reserved11;
146 U32 Reserved12;
147 MPI2_SGE_SIMPLE_UNION SGL;
148} MPI2_TOOLBOX_ISTWI_READ_WRITE_REQUEST,
149 MPI2_POINTER PTR_MPI2_TOOLBOX_ISTWI_READ_WRITE_REQUEST,
150 Mpi2ToolboxIstwiReadWriteRequest_t,
151 MPI2_POINTER pMpi2ToolboxIstwiReadWriteRequest_t;
152
153
154#define MPI2_TOOL_ISTWI_ACTION_READ_DATA (0x01)
155#define MPI2_TOOL_ISTWI_ACTION_WRITE_DATA (0x02)
156#define MPI2_TOOL_ISTWI_ACTION_SEQUENCE (0x03)
157#define MPI2_TOOL_ISTWI_ACTION_RESERVE_BUS (0x10)
158#define MPI2_TOOL_ISTWI_ACTION_RELEASE_BUS (0x11)
159#define MPI2_TOOL_ISTWI_ACTION_RESET (0x12)
160
161
162
163
164
165typedef struct _MPI2_TOOLBOX_ISTWI_REPLY {
166 U8 Tool;
167 U8 Reserved1;
168 U8 MsgLength;
169 U8 Function;
170 U16 Reserved2;
171 U8 Reserved3;
172 U8 MsgFlags;
173 U8 VP_ID;
174 U8 VF_ID;
175 U16 Reserved4;
176 U16 Reserved5;
177 U16 IOCStatus;
178 U32 IOCLogInfo;
179 U8 DevIndex;
180 U8 Action;
181 U8 IstwiStatus;
182 U8 Reserved6;
183 U16 TxDataCount;
184 U16 RxDataCount;
185} MPI2_TOOLBOX_ISTWI_REPLY, MPI2_POINTER PTR_MPI2_TOOLBOX_ISTWI_REPLY,
186 Mpi2ToolboxIstwiReply_t, MPI2_POINTER pMpi2ToolboxIstwiReply_t;
187
188
189
190
191
192
193typedef struct _MPI2_TOOLBOX_BEACON_REQUEST
194{
195 U8 Tool;
196 U8 Reserved1;
197 U8 ChainOffset;
198 U8 Function;
199 U16 Reserved2;
200 U8 Reserved3;
201 U8 MsgFlags;
202 U8 VP_ID;
203 U8 VF_ID;
204 U16 Reserved4;
205 U8 Reserved5;
206 U8 PhysicalPort;
207 U8 Reserved6;
208 U8 Flags;
209} MPI2_TOOLBOX_BEACON_REQUEST, MPI2_POINTER PTR_MPI2_TOOLBOX_BEACON_REQUEST,
210 Mpi2ToolboxBeaconRequest_t, MPI2_POINTER pMpi2ToolboxBeaconRequest_t;
211
212
213#define MPI2_TOOLBOX_FLAGS_BEACONMODE_OFF (0x00)
214#define MPI2_TOOLBOX_FLAGS_BEACONMODE_ON (0x01)
215
216
217
218
219
220
221#define MPI2_TOOLBOX_DIAG_CLI_CMD_LENGTH (0x5C)
222
223
224typedef struct _MPI2_TOOLBOX_DIAGNOSTIC_CLI_REQUEST {
225 U8 Tool;
226 U8 Reserved1;
227 U8 ChainOffset;
228 U8 Function;
229 U16 Reserved2;
230 U8 Reserved3;
231 U8 MsgFlags;
232 U8 VP_ID;
233 U8 VF_ID;
234 U16 Reserved4;
235 U8 SGLFlags;
236 U8 Reserved5;
237 U16 Reserved6;
238 U32 DataLength;
239 U8 DiagnosticCliCommand
240 [MPI2_TOOLBOX_DIAG_CLI_CMD_LENGTH];
241 MPI2_SGE_SIMPLE_UNION SGL;
242} MPI2_TOOLBOX_DIAGNOSTIC_CLI_REQUEST,
243 MPI2_POINTER PTR_MPI2_TOOLBOX_DIAGNOSTIC_CLI_REQUEST,
244 Mpi2ToolboxDiagnosticCliRequest_t,
245 MPI2_POINTER pMpi2ToolboxDiagnosticCliRequest_t;
246
247
248
249
250
251typedef struct _MPI2_TOOLBOX_DIAGNOSTIC_CLI_REPLY {
252 U8 Tool;
253 U8 Reserved1;
254 U8 MsgLength;
255 U8 Function;
256 U16 Reserved2;
257 U8 Reserved3;
258 U8 MsgFlags;
259 U8 VP_ID;
260 U8 VF_ID;
261 U16 Reserved4;
262 U16 Reserved5;
263 U16 IOCStatus;
264 U32 IOCLogInfo;
265 U32 ReturnedDataLength;
266} MPI2_TOOLBOX_DIAGNOSTIC_CLI_REPLY,
267 MPI2_POINTER PTR_MPI2_TOOLBOX_DIAG_CLI_REPLY,
268 Mpi2ToolboxDiagnosticCliReply_t,
269 MPI2_POINTER pMpi2ToolboxDiagnosticCliReply_t;
270
271
272
273
274
275
276
277
278
279
280
281
282
283typedef struct _MPI2_DIAG_BUFFER_POST_REQUEST
284{
285 U8 Reserved1;
286 U8 BufferType;
287 U8 ChainOffset;
288 U8 Function;
289 U16 Reserved2;
290 U8 Reserved3;
291 U8 MsgFlags;
292 U8 VP_ID;
293 U8 VF_ID;
294 U16 Reserved4;
295 U64 BufferAddress;
296 U32 BufferLength;
297 U32 Reserved5;
298 U32 Reserved6;
299 U32 Flags;
300 U32 ProductSpecific[23];
301} MPI2_DIAG_BUFFER_POST_REQUEST, MPI2_POINTER PTR_MPI2_DIAG_BUFFER_POST_REQUEST,
302 Mpi2DiagBufferPostRequest_t, MPI2_POINTER pMpi2DiagBufferPostRequest_t;
303
304
305#define MPI2_DIAG_BUF_TYPE_TRACE (0x00)
306#define MPI2_DIAG_BUF_TYPE_SNAPSHOT (0x01)
307
308#define MPI2_DIAG_BUF_TYPE_COUNT (0x02)
309
310
311
312
313
314
315typedef struct _MPI2_DIAG_BUFFER_POST_REPLY
316{
317 U8 Reserved1;
318 U8 BufferType;
319 U8 MsgLength;
320 U8 Function;
321 U16 Reserved2;
322 U8 Reserved3;
323 U8 MsgFlags;
324 U8 VP_ID;
325 U8 VF_ID;
326 U16 Reserved4;
327 U16 Reserved5;
328 U16 IOCStatus;
329 U32 IOCLogInfo;
330 U32 TransferLength;
331} MPI2_DIAG_BUFFER_POST_REPLY, MPI2_POINTER PTR_MPI2_DIAG_BUFFER_POST_REPLY,
332 Mpi2DiagBufferPostReply_t, MPI2_POINTER pMpi2DiagBufferPostReply_t;
333
334
335
336
337
338
339typedef struct _MPI2_DIAG_RELEASE_REQUEST
340{
341 U8 Reserved1;
342 U8 BufferType;
343 U8 ChainOffset;
344 U8 Function;
345 U16 Reserved2;
346 U8 Reserved3;
347 U8 MsgFlags;
348 U8 VP_ID;
349 U8 VF_ID;
350 U16 Reserved4;
351} MPI2_DIAG_RELEASE_REQUEST, MPI2_POINTER PTR_MPI2_DIAG_RELEASE_REQUEST,
352 Mpi2DiagReleaseRequest_t, MPI2_POINTER pMpi2DiagReleaseRequest_t;
353
354
355
356
357
358
359typedef struct _MPI2_DIAG_RELEASE_REPLY
360{
361 U8 Reserved1;
362 U8 BufferType;
363 U8 MsgLength;
364 U8 Function;
365 U16 Reserved2;
366 U8 Reserved3;
367 U8 MsgFlags;
368 U8 VP_ID;
369 U8 VF_ID;
370 U16 Reserved4;
371 U16 Reserved5;
372 U16 IOCStatus;
373 U32 IOCLogInfo;
374} MPI2_DIAG_RELEASE_REPLY, MPI2_POINTER PTR_MPI2_DIAG_RELEASE_REPLY,
375 Mpi2DiagReleaseReply_t, MPI2_POINTER pMpi2DiagReleaseReply_t;
376
377
378#endif
379
380