mpi2_tool.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  1. /*
  2. * Copyright (c) 2000-2014 LSI Corporation.
  3. *
  4. *
  5. * Name: mpi2_tool.h
  6. * Title: MPI diagnostic tool structures and definitions
  7. * Creation Date: March 26, 2007
  8. *
  9. * mpi2_tool.h Version: 02.00.12
  10. *
  11. * Version History
  12. * ---------------
  13. *
  14. * Date Version Description
  15. * -------- -------- ------------------------------------------------------
  16. * 04-30-07 02.00.00 Corresponds to Fusion-MPT MPI Specification Rev A.
  17. * 12-18-07 02.00.01 Added Diagnostic Buffer Post and Diagnostic Release
  18. * structures and defines.
  19. * 02-29-08 02.00.02 Modified various names to make them 32-character unique.
  20. * 05-06-09 02.00.03 Added ISTWI Read Write Tool and Diagnostic CLI Tool.
  21. * 07-30-09 02.00.04 Added ExtendedType field to DiagnosticBufferPost request
  22. * and reply messages.
  23. * Added MPI2_DIAG_BUF_TYPE_EXTENDED.
  24. * Incremented MPI2_DIAG_BUF_TYPE_COUNT.
  25. * 05-12-10 02.00.05 Added Diagnostic Data Upload tool.
  26. * 08-11-10 02.00.06 Added defines that were missing for Diagnostic Buffer
  27. * Post Request.
  28. * 05-25-11 02.00.07 Added Flags field and related defines to
  29. * MPI2_TOOLBOX_ISTWI_READ_WRITE_REQUEST.
  30. * 11-18-11 02.00.08 Incorporating additions for MPI v2.5.
  31. * 07-10-12 02.00.09 Add MPI v2.5 Toolbox Diagnostic CLI Tool Request
  32. * message.
  33. * 07-26-12 02.00.10 Modified MPI2_TOOLBOX_DIAGNOSTIC_CLI_REQUEST so that
  34. * it uses MPI Chain SGE as well as MPI Simple SGE.
  35. * 08-19-13 02.00.11 Added MPI2_TOOLBOX_TEXT_DISPLAY_TOOL and related info.
  36. * 01-08-14 02.00.12 Added MPI2_TOOLBOX_CLEAN_BIT26_PRODUCT_SPECIFIC.
  37. * --------------------------------------------------------------------------
  38. */
  39. #ifndef MPI2_TOOL_H
  40. #define MPI2_TOOL_H
  41. /*****************************************************************************
  42. *
  43. * Toolbox Messages
  44. *
  45. *****************************************************************************/
  46. /*defines for the Tools */
  47. #define MPI2_TOOLBOX_CLEAN_TOOL (0x00)
  48. #define MPI2_TOOLBOX_MEMORY_MOVE_TOOL (0x01)
  49. #define MPI2_TOOLBOX_DIAG_DATA_UPLOAD_TOOL (0x02)
  50. #define MPI2_TOOLBOX_ISTWI_READ_WRITE_TOOL (0x03)
  51. #define MPI2_TOOLBOX_BEACON_TOOL (0x05)
  52. #define MPI2_TOOLBOX_DIAGNOSTIC_CLI_TOOL (0x06)
  53. #define MPI2_TOOLBOX_TEXT_DISPLAY_TOOL (0x07)
  54. /****************************************************************************
  55. * Toolbox reply
  56. ****************************************************************************/
  57. typedef struct _MPI2_TOOLBOX_REPLY {
  58. U8 Tool; /*0x00 */
  59. U8 Reserved1; /*0x01 */
  60. U8 MsgLength; /*0x02 */
  61. U8 Function; /*0x03 */
  62. U16 Reserved2; /*0x04 */
  63. U8 Reserved3; /*0x06 */
  64. U8 MsgFlags; /*0x07 */
  65. U8 VP_ID; /*0x08 */
  66. U8 VF_ID; /*0x09 */
  67. U16 Reserved4; /*0x0A */
  68. U16 Reserved5; /*0x0C */
  69. U16 IOCStatus; /*0x0E */
  70. U32 IOCLogInfo; /*0x10 */
  71. } MPI2_TOOLBOX_REPLY, *PTR_MPI2_TOOLBOX_REPLY,
  72. Mpi2ToolboxReply_t, *pMpi2ToolboxReply_t;
  73. /****************************************************************************
  74. * Toolbox Clean Tool request
  75. ****************************************************************************/
  76. typedef struct _MPI2_TOOLBOX_CLEAN_REQUEST {
  77. U8 Tool; /*0x00 */
  78. U8 Reserved1; /*0x01 */
  79. U8 ChainOffset; /*0x02 */
  80. U8 Function; /*0x03 */
  81. U16 Reserved2; /*0x04 */
  82. U8 Reserved3; /*0x06 */
  83. U8 MsgFlags; /*0x07 */
  84. U8 VP_ID; /*0x08 */
  85. U8 VF_ID; /*0x09 */
  86. U16 Reserved4; /*0x0A */
  87. U32 Flags; /*0x0C */
  88. } MPI2_TOOLBOX_CLEAN_REQUEST, *PTR_MPI2_TOOLBOX_CLEAN_REQUEST,
  89. Mpi2ToolboxCleanRequest_t, *pMpi2ToolboxCleanRequest_t;
  90. /*values for the Flags field */
  91. #define MPI2_TOOLBOX_CLEAN_BOOT_SERVICES (0x80000000)
  92. #define MPI2_TOOLBOX_CLEAN_PERSIST_MANUFACT_PAGES (0x40000000)
  93. #define MPI2_TOOLBOX_CLEAN_OTHER_PERSIST_PAGES (0x20000000)
  94. #define MPI2_TOOLBOX_CLEAN_FW_CURRENT (0x10000000)
  95. #define MPI2_TOOLBOX_CLEAN_FW_BACKUP (0x08000000)
  96. #define MPI2_TOOLBOX_CLEAN_BIT26_PRODUCT_SPECIFIC (0x04000000)
  97. #define MPI2_TOOLBOX_CLEAN_MEGARAID (0x02000000)
  98. #define MPI2_TOOLBOX_CLEAN_INITIALIZATION (0x01000000)
  99. #define MPI2_TOOLBOX_CLEAN_FLASH (0x00000004)
  100. #define MPI2_TOOLBOX_CLEAN_SEEPROM (0x00000002)
  101. #define MPI2_TOOLBOX_CLEAN_NVSRAM (0x00000001)
  102. /****************************************************************************
  103. * Toolbox Memory Move request
  104. ****************************************************************************/
  105. typedef struct _MPI2_TOOLBOX_MEM_MOVE_REQUEST {
  106. U8 Tool; /*0x00 */
  107. U8 Reserved1; /*0x01 */
  108. U8 ChainOffset; /*0x02 */
  109. U8 Function; /*0x03 */
  110. U16 Reserved2; /*0x04 */
  111. U8 Reserved3; /*0x06 */
  112. U8 MsgFlags; /*0x07 */
  113. U8 VP_ID; /*0x08 */
  114. U8 VF_ID; /*0x09 */
  115. U16 Reserved4; /*0x0A */
  116. MPI2_SGE_SIMPLE_UNION SGL; /*0x0C */
  117. } MPI2_TOOLBOX_MEM_MOVE_REQUEST, *PTR_MPI2_TOOLBOX_MEM_MOVE_REQUEST,
  118. Mpi2ToolboxMemMoveRequest_t, *pMpi2ToolboxMemMoveRequest_t;
  119. /****************************************************************************
  120. * Toolbox Diagnostic Data Upload request
  121. ****************************************************************************/
  122. typedef struct _MPI2_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST {
  123. U8 Tool; /*0x00 */
  124. U8 Reserved1; /*0x01 */
  125. U8 ChainOffset; /*0x02 */
  126. U8 Function; /*0x03 */
  127. U16 Reserved2; /*0x04 */
  128. U8 Reserved3; /*0x06 */
  129. U8 MsgFlags; /*0x07 */
  130. U8 VP_ID; /*0x08 */
  131. U8 VF_ID; /*0x09 */
  132. U16 Reserved4; /*0x0A */
  133. U8 SGLFlags; /*0x0C */
  134. U8 Reserved5; /*0x0D */
  135. U16 Reserved6; /*0x0E */
  136. U32 Flags; /*0x10 */
  137. U32 DataLength; /*0x14 */
  138. MPI2_SGE_SIMPLE_UNION SGL; /*0x18 */
  139. } MPI2_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST,
  140. *PTR_MPI2_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST,
  141. Mpi2ToolboxDiagDataUploadRequest_t,
  142. *pMpi2ToolboxDiagDataUploadRequest_t;
  143. /*use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */
  144. typedef struct _MPI2_DIAG_DATA_UPLOAD_HEADER {
  145. U32 DiagDataLength; /*00h */
  146. U8 FormatCode; /*04h */
  147. U8 Reserved1; /*05h */
  148. U16 Reserved2; /*06h */
  149. } MPI2_DIAG_DATA_UPLOAD_HEADER, *PTR_MPI2_DIAG_DATA_UPLOAD_HEADER,
  150. Mpi2DiagDataUploadHeader_t, *pMpi2DiagDataUploadHeader_t;
  151. /****************************************************************************
  152. * Toolbox ISTWI Read Write Tool
  153. ****************************************************************************/
  154. /*Toolbox ISTWI Read Write Tool request message */
  155. typedef struct _MPI2_TOOLBOX_ISTWI_READ_WRITE_REQUEST {
  156. U8 Tool; /*0x00 */
  157. U8 Reserved1; /*0x01 */
  158. U8 ChainOffset; /*0x02 */
  159. U8 Function; /*0x03 */
  160. U16 Reserved2; /*0x04 */
  161. U8 Reserved3; /*0x06 */
  162. U8 MsgFlags; /*0x07 */
  163. U8 VP_ID; /*0x08 */
  164. U8 VF_ID; /*0x09 */
  165. U16 Reserved4; /*0x0A */
  166. U32 Reserved5; /*0x0C */
  167. U32 Reserved6; /*0x10 */
  168. U8 DevIndex; /*0x14 */
  169. U8 Action; /*0x15 */
  170. U8 SGLFlags; /*0x16 */
  171. U8 Flags; /*0x17 */
  172. U16 TxDataLength; /*0x18 */
  173. U16 RxDataLength; /*0x1A */
  174. U32 Reserved8; /*0x1C */
  175. U32 Reserved9; /*0x20 */
  176. U32 Reserved10; /*0x24 */
  177. U32 Reserved11; /*0x28 */
  178. U32 Reserved12; /*0x2C */
  179. MPI2_SGE_SIMPLE_UNION SGL; /*0x30 */
  180. } MPI2_TOOLBOX_ISTWI_READ_WRITE_REQUEST,
  181. *PTR_MPI2_TOOLBOX_ISTWI_READ_WRITE_REQUEST,
  182. Mpi2ToolboxIstwiReadWriteRequest_t,
  183. *pMpi2ToolboxIstwiReadWriteRequest_t;
  184. /*values for the Action field */
  185. #define MPI2_TOOL_ISTWI_ACTION_READ_DATA (0x01)
  186. #define MPI2_TOOL_ISTWI_ACTION_WRITE_DATA (0x02)
  187. #define MPI2_TOOL_ISTWI_ACTION_SEQUENCE (0x03)
  188. #define MPI2_TOOL_ISTWI_ACTION_RESERVE_BUS (0x10)
  189. #define MPI2_TOOL_ISTWI_ACTION_RELEASE_BUS (0x11)
  190. #define MPI2_TOOL_ISTWI_ACTION_RESET (0x12)
  191. /*use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */
  192. /*values for the Flags field */
  193. #define MPI2_TOOL_ISTWI_FLAG_AUTO_RESERVE_RELEASE (0x80)
  194. #define MPI2_TOOL_ISTWI_FLAG_PAGE_ADDR_MASK (0x07)
  195. /*Toolbox ISTWI Read Write Tool reply message */
  196. typedef struct _MPI2_TOOLBOX_ISTWI_REPLY {
  197. U8 Tool; /*0x00 */
  198. U8 Reserved1; /*0x01 */
  199. U8 MsgLength; /*0x02 */
  200. U8 Function; /*0x03 */
  201. U16 Reserved2; /*0x04 */
  202. U8 Reserved3; /*0x06 */
  203. U8 MsgFlags; /*0x07 */
  204. U8 VP_ID; /*0x08 */
  205. U8 VF_ID; /*0x09 */
  206. U16 Reserved4; /*0x0A */
  207. U16 Reserved5; /*0x0C */
  208. U16 IOCStatus; /*0x0E */
  209. U32 IOCLogInfo; /*0x10 */
  210. U8 DevIndex; /*0x14 */
  211. U8 Action; /*0x15 */
  212. U8 IstwiStatus; /*0x16 */
  213. U8 Reserved6; /*0x17 */
  214. U16 TxDataCount; /*0x18 */
  215. U16 RxDataCount; /*0x1A */
  216. } MPI2_TOOLBOX_ISTWI_REPLY, *PTR_MPI2_TOOLBOX_ISTWI_REPLY,
  217. Mpi2ToolboxIstwiReply_t, *pMpi2ToolboxIstwiReply_t;
  218. /****************************************************************************
  219. * Toolbox Beacon Tool request
  220. ****************************************************************************/
  221. typedef struct _MPI2_TOOLBOX_BEACON_REQUEST {
  222. U8 Tool; /*0x00 */
  223. U8 Reserved1; /*0x01 */
  224. U8 ChainOffset; /*0x02 */
  225. U8 Function; /*0x03 */
  226. U16 Reserved2; /*0x04 */
  227. U8 Reserved3; /*0x06 */
  228. U8 MsgFlags; /*0x07 */
  229. U8 VP_ID; /*0x08 */
  230. U8 VF_ID; /*0x09 */
  231. U16 Reserved4; /*0x0A */
  232. U8 Reserved5; /*0x0C */
  233. U8 PhysicalPort; /*0x0D */
  234. U8 Reserved6; /*0x0E */
  235. U8 Flags; /*0x0F */
  236. } MPI2_TOOLBOX_BEACON_REQUEST, *PTR_MPI2_TOOLBOX_BEACON_REQUEST,
  237. Mpi2ToolboxBeaconRequest_t, *pMpi2ToolboxBeaconRequest_t;
  238. /*values for the Flags field */
  239. #define MPI2_TOOLBOX_FLAGS_BEACONMODE_OFF (0x00)
  240. #define MPI2_TOOLBOX_FLAGS_BEACONMODE_ON (0x01)
  241. /****************************************************************************
  242. * Toolbox Diagnostic CLI Tool
  243. ****************************************************************************/
  244. #define MPI2_TOOLBOX_DIAG_CLI_CMD_LENGTH (0x5C)
  245. /*MPI v2.0 Toolbox Diagnostic CLI Tool request message */
  246. typedef struct _MPI2_TOOLBOX_DIAGNOSTIC_CLI_REQUEST {
  247. U8 Tool; /*0x00 */
  248. U8 Reserved1; /*0x01 */
  249. U8 ChainOffset; /*0x02 */
  250. U8 Function; /*0x03 */
  251. U16 Reserved2; /*0x04 */
  252. U8 Reserved3; /*0x06 */
  253. U8 MsgFlags; /*0x07 */
  254. U8 VP_ID; /*0x08 */
  255. U8 VF_ID; /*0x09 */
  256. U16 Reserved4; /*0x0A */
  257. U8 SGLFlags; /*0x0C */
  258. U8 Reserved5; /*0x0D */
  259. U16 Reserved6; /*0x0E */
  260. U32 DataLength; /*0x10 */
  261. U8 DiagnosticCliCommand[MPI2_TOOLBOX_DIAG_CLI_CMD_LENGTH];/*0x14 */
  262. MPI2_MPI_SGE_IO_UNION SGL; /*0x70 */
  263. } MPI2_TOOLBOX_DIAGNOSTIC_CLI_REQUEST,
  264. *PTR_MPI2_TOOLBOX_DIAGNOSTIC_CLI_REQUEST,
  265. Mpi2ToolboxDiagnosticCliRequest_t,
  266. *pMpi2ToolboxDiagnosticCliRequest_t;
  267. /*use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */
  268. /*MPI v2.5 Toolbox Diagnostic CLI Tool request message */
  269. typedef struct _MPI25_TOOLBOX_DIAGNOSTIC_CLI_REQUEST {
  270. U8 Tool; /*0x00 */
  271. U8 Reserved1; /*0x01 */
  272. U8 ChainOffset; /*0x02 */
  273. U8 Function; /*0x03 */
  274. U16 Reserved2; /*0x04 */
  275. U8 Reserved3; /*0x06 */
  276. U8 MsgFlags; /*0x07 */
  277. U8 VP_ID; /*0x08 */
  278. U8 VF_ID; /*0x09 */
  279. U16 Reserved4; /*0x0A */
  280. U32 Reserved5; /*0x0C */
  281. U32 DataLength; /*0x10 */
  282. U8 DiagnosticCliCommand[MPI2_TOOLBOX_DIAG_CLI_CMD_LENGTH];/*0x14 */
  283. MPI25_SGE_IO_UNION SGL; /* 0x70 */
  284. } MPI25_TOOLBOX_DIAGNOSTIC_CLI_REQUEST,
  285. *PTR_MPI25_TOOLBOX_DIAGNOSTIC_CLI_REQUEST,
  286. Mpi25ToolboxDiagnosticCliRequest_t,
  287. *pMpi25ToolboxDiagnosticCliRequest_t;
  288. /*Toolbox Diagnostic CLI Tool reply message */
  289. typedef struct _MPI2_TOOLBOX_DIAGNOSTIC_CLI_REPLY {
  290. U8 Tool; /*0x00 */
  291. U8 Reserved1; /*0x01 */
  292. U8 MsgLength; /*0x02 */
  293. U8 Function; /*0x03 */
  294. U16 Reserved2; /*0x04 */
  295. U8 Reserved3; /*0x06 */
  296. U8 MsgFlags; /*0x07 */
  297. U8 VP_ID; /*0x08 */
  298. U8 VF_ID; /*0x09 */
  299. U16 Reserved4; /*0x0A */
  300. U16 Reserved5; /*0x0C */
  301. U16 IOCStatus; /*0x0E */
  302. U32 IOCLogInfo; /*0x10 */
  303. U32 ReturnedDataLength; /*0x14 */
  304. } MPI2_TOOLBOX_DIAGNOSTIC_CLI_REPLY,
  305. *PTR_MPI2_TOOLBOX_DIAG_CLI_REPLY,
  306. Mpi2ToolboxDiagnosticCliReply_t,
  307. *pMpi2ToolboxDiagnosticCliReply_t;
  308. /****************************************************************************
  309. * Toolbox Console Text Display Tool
  310. ****************************************************************************/
  311. /* Toolbox Console Text Display Tool request message */
  312. typedef struct _MPI2_TOOLBOX_TEXT_DISPLAY_REQUEST {
  313. U8 Tool; /* 0x00 */
  314. U8 Reserved1; /* 0x01 */
  315. U8 ChainOffset; /* 0x02 */
  316. U8 Function; /* 0x03 */
  317. U16 Reserved2; /* 0x04 */
  318. U8 Reserved3; /* 0x06 */
  319. U8 MsgFlags; /* 0x07 */
  320. U8 VP_ID; /* 0x08 */
  321. U8 VF_ID; /* 0x09 */
  322. U16 Reserved4; /* 0x0A */
  323. U8 Console; /* 0x0C */
  324. U8 Flags; /* 0x0D */
  325. U16 Reserved6; /* 0x0E */
  326. U8 TextToDisplay[4]; /* 0x10 */
  327. } MPI2_TOOLBOX_TEXT_DISPLAY_REQUEST,
  328. *PTR_MPI2_TOOLBOX_TEXT_DISPLAY_REQUEST,
  329. Mpi2ToolboxTextDisplayRequest_t,
  330. *pMpi2ToolboxTextDisplayRequest_t;
  331. /* defines for the Console field */
  332. #define MPI2_TOOLBOX_CONSOLE_TYPE_MASK (0xF0)
  333. #define MPI2_TOOLBOX_CONSOLE_TYPE_DEFAULT (0x00)
  334. #define MPI2_TOOLBOX_CONSOLE_TYPE_UART (0x10)
  335. #define MPI2_TOOLBOX_CONSOLE_TYPE_ETHERNET (0x20)
  336. #define MPI2_TOOLBOX_CONSOLE_NUMBER_MASK (0x0F)
  337. /* defines for the Flags field */
  338. #define MPI2_TOOLBOX_CONSOLE_FLAG_TIMESTAMP (0x01)
  339. /*****************************************************************************
  340. *
  341. * Diagnostic Buffer Messages
  342. *
  343. *****************************************************************************/
  344. /****************************************************************************
  345. * Diagnostic Buffer Post request
  346. ****************************************************************************/
  347. typedef struct _MPI2_DIAG_BUFFER_POST_REQUEST {
  348. U8 ExtendedType; /*0x00 */
  349. U8 BufferType; /*0x01 */
  350. U8 ChainOffset; /*0x02 */
  351. U8 Function; /*0x03 */
  352. U16 Reserved2; /*0x04 */
  353. U8 Reserved3; /*0x06 */
  354. U8 MsgFlags; /*0x07 */
  355. U8 VP_ID; /*0x08 */
  356. U8 VF_ID; /*0x09 */
  357. U16 Reserved4; /*0x0A */
  358. U64 BufferAddress; /*0x0C */
  359. U32 BufferLength; /*0x14 */
  360. U32 Reserved5; /*0x18 */
  361. U32 Reserved6; /*0x1C */
  362. U32 Flags; /*0x20 */
  363. U32 ProductSpecific[23]; /*0x24 */
  364. } MPI2_DIAG_BUFFER_POST_REQUEST, *PTR_MPI2_DIAG_BUFFER_POST_REQUEST,
  365. Mpi2DiagBufferPostRequest_t, *pMpi2DiagBufferPostRequest_t;
  366. /*values for the ExtendedType field */
  367. #define MPI2_DIAG_EXTENDED_TYPE_UTILIZATION (0x02)
  368. /*values for the BufferType field */
  369. #define MPI2_DIAG_BUF_TYPE_TRACE (0x00)
  370. #define MPI2_DIAG_BUF_TYPE_SNAPSHOT (0x01)
  371. #define MPI2_DIAG_BUF_TYPE_EXTENDED (0x02)
  372. /*count of the number of buffer types */
  373. #define MPI2_DIAG_BUF_TYPE_COUNT (0x03)
  374. /*values for the Flags field */
  375. #define MPI2_DIAG_BUF_FLAG_RELEASE_ON_FULL (0x00000002)
  376. #define MPI2_DIAG_BUF_FLAG_IMMEDIATE_RELEASE (0x00000001)
  377. /****************************************************************************
  378. * Diagnostic Buffer Post reply
  379. ****************************************************************************/
  380. typedef struct _MPI2_DIAG_BUFFER_POST_REPLY {
  381. U8 ExtendedType; /*0x00 */
  382. U8 BufferType; /*0x01 */
  383. U8 MsgLength; /*0x02 */
  384. U8 Function; /*0x03 */
  385. U16 Reserved2; /*0x04 */
  386. U8 Reserved3; /*0x06 */
  387. U8 MsgFlags; /*0x07 */
  388. U8 VP_ID; /*0x08 */
  389. U8 VF_ID; /*0x09 */
  390. U16 Reserved4; /*0x0A */
  391. U16 Reserved5; /*0x0C */
  392. U16 IOCStatus; /*0x0E */
  393. U32 IOCLogInfo; /*0x10 */
  394. U32 TransferLength; /*0x14 */
  395. } MPI2_DIAG_BUFFER_POST_REPLY, *PTR_MPI2_DIAG_BUFFER_POST_REPLY,
  396. Mpi2DiagBufferPostReply_t, *pMpi2DiagBufferPostReply_t;
  397. /****************************************************************************
  398. * Diagnostic Release request
  399. ****************************************************************************/
  400. typedef struct _MPI2_DIAG_RELEASE_REQUEST {
  401. U8 Reserved1; /*0x00 */
  402. U8 BufferType; /*0x01 */
  403. U8 ChainOffset; /*0x02 */
  404. U8 Function; /*0x03 */
  405. U16 Reserved2; /*0x04 */
  406. U8 Reserved3; /*0x06 */
  407. U8 MsgFlags; /*0x07 */
  408. U8 VP_ID; /*0x08 */
  409. U8 VF_ID; /*0x09 */
  410. U16 Reserved4; /*0x0A */
  411. } MPI2_DIAG_RELEASE_REQUEST, *PTR_MPI2_DIAG_RELEASE_REQUEST,
  412. Mpi2DiagReleaseRequest_t, *pMpi2DiagReleaseRequest_t;
  413. /****************************************************************************
  414. * Diagnostic Buffer Post reply
  415. ****************************************************************************/
  416. typedef struct _MPI2_DIAG_RELEASE_REPLY {
  417. U8 Reserved1; /*0x00 */
  418. U8 BufferType; /*0x01 */
  419. U8 MsgLength; /*0x02 */
  420. U8 Function; /*0x03 */
  421. U16 Reserved2; /*0x04 */
  422. U8 Reserved3; /*0x06 */
  423. U8 MsgFlags; /*0x07 */
  424. U8 VP_ID; /*0x08 */
  425. U8 VF_ID; /*0x09 */
  426. U16 Reserved4; /*0x0A */
  427. U16 Reserved5; /*0x0C */
  428. U16 IOCStatus; /*0x0E */
  429. U32 IOCLogInfo; /*0x10 */
  430. } MPI2_DIAG_RELEASE_REPLY, *PTR_MPI2_DIAG_RELEASE_REPLY,
  431. Mpi2DiagReleaseReply_t, *pMpi2DiagReleaseReply_t;
  432. #endif