mpi2_tool.h 17 KB

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