📄 mpi_tool.h
字号:
/****************************************************************************//* Toolbox FC Management request *//****************************************************************************//* ActionInfo for Bus and TargetId */typedef struct _MPI_TB_FC_MANAGE_BUS_TID_AI{ U16 Reserved; /* 00h */ U8 Bus; /* 02h */ U8 TargetId; /* 03h */} MPI_TB_FC_MANAGE_BUS_TID_AI, MPI_POINTER PTR_MPI_TB_FC_MANAGE_BUS_TID_AI, MpiTbFcManageBusTidAi_t, MPI_POINTER pMpiTbFcManageBusTidAi_t;/* ActionInfo for port identifier */typedef struct _MPI_TB_FC_MANAGE_PID_AI{ U32 PortIdentifier; /* 00h */} MPI_TB_FC_MANAGE_PID_AI, MPI_POINTER PTR_MPI_TB_FC_MANAGE_PID_AI, MpiTbFcManagePidAi_t, MPI_POINTER pMpiTbFcManagePidAi_t;/* ActionInfo for set max frame size */typedef struct _MPI_TB_FC_MANAGE_FRAME_SIZE_AI{ U16 FrameSize; /* 00h */ U8 PortNum; /* 02h */ U8 Reserved1; /* 03h */} MPI_TB_FC_MANAGE_FRAME_SIZE_AI, MPI_POINTER PTR_MPI_TB_FC_MANAGE_FRAME_SIZE_AI, MpiTbFcManageFrameSizeAi_t, MPI_POINTER pMpiTbFcManageFrameSizeAi_t;/* union of ActionInfo */typedef union _MPI_TB_FC_MANAGE_AI_UNION{ MPI_TB_FC_MANAGE_BUS_TID_AI BusTid; MPI_TB_FC_MANAGE_PID_AI Port; MPI_TB_FC_MANAGE_FRAME_SIZE_AI FrameSize;} MPI_TB_FC_MANAGE_AI_UNION, MPI_POINTER PTR_MPI_TB_FC_MANAGE_AI_UNION, MpiTbFcManageAiUnion_t, MPI_POINTER pMpiTbFcManageAiUnion_t;typedef struct _MSG_TOOLBOX_FC_MANAGE_REQUEST{ U8 Tool; /* 00h */ U8 Reserved; /* 01h */ U8 ChainOffset; /* 02h */ U8 Function; /* 03h */ U16 Reserved1; /* 04h */ U8 Reserved2; /* 06h */ U8 MsgFlags; /* 07h */ U32 MsgContext; /* 08h */ U8 Action; /* 0Ch */ U8 Reserved3; /* 0Dh */ U16 Reserved4; /* 0Eh */ MPI_TB_FC_MANAGE_AI_UNION ActionInfo; /* 10h */} MSG_TOOLBOX_FC_MANAGE_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_FC_MANAGE_REQUEST, ToolboxFcManageRequest_t, MPI_POINTER pToolboxFcManageRequest_t;/* defines for the Action field */#define MPI_TB_FC_MANAGE_ACTION_DISC_ALL (0x00)#define MPI_TB_FC_MANAGE_ACTION_DISC_PID (0x01)#define MPI_TB_FC_MANAGE_ACTION_DISC_BUS_TID (0x02)#define MPI_TB_FC_MANAGE_ACTION_SET_MAX_FRAME_SIZE (0x03)/****************************************************************************//* Toolbox Beacon Tool request *//****************************************************************************/typedef struct _MSG_TOOLBOX_BEACON_REQUEST{ U8 Tool; /* 00h */ U8 Reserved; /* 01h */ U8 ChainOffset; /* 02h */ U8 Function; /* 03h */ U16 Reserved1; /* 04h */ U8 Reserved2; /* 06h */ U8 MsgFlags; /* 07h */ U32 MsgContext; /* 08h */ U8 ConnectNum; /* 0Ch */ U8 PortNum; /* 0Dh */ U8 Reserved3; /* 0Eh */ U8 Flags; /* 0Fh */} MSG_TOOLBOX_BEACON_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_BEACON_REQUEST, ToolboxBeaconRequest_t, MPI_POINTER pToolboxBeaconRequest_t;#define MPI_TOOLBOX_FLAGS_BEACON_MODE_OFF (0x00)#define MPI_TOOLBOX_FLAGS_BEACON_MODE_ON (0x01)/****************************************************************************//* Diagnostic Buffer Post request *//****************************************************************************/typedef struct _MSG_DIAG_BUFFER_POST_REQUEST{ U8 TraceLevel; /* 00h */ U8 BufferType; /* 01h */ U8 ChainOffset; /* 02h */ U8 Function; /* 03h */ U16 Reserved1; /* 04h */ U8 Reserved2; /* 06h */ U8 MsgFlags; /* 07h */ U32 MsgContext; /* 08h */ U32 ExtendedType; /* 0Ch */ U32 BufferLength; /* 10h */ U32 ProductSpecific[4]; /* 14h */ U32 Reserved3; /* 24h */ U64 BufferAddress; /* 28h */} MSG_DIAG_BUFFER_POST_REQUEST, MPI_POINTER PTR_MSG_DIAG_BUFFER_POST_REQUEST, DiagBufferPostRequest_t, MPI_POINTER pDiagBufferPostRequest_t;#define MPI_DIAG_BUF_TYPE_TRACE (0x00)#define MPI_DIAG_BUF_TYPE_SNAPSHOT (0x01)#define MPI_DIAG_BUF_TYPE_EXTENDED (0x02)/* count of the number of buffer types */#define MPI_DIAG_BUF_TYPE_COUNT (0x03)#define MPI_DIAG_EXTENDED_QTAG (0x00000001)/* Diagnostic Buffer Post reply */typedef struct _MSG_DIAG_BUFFER_POST_REPLY{ U8 Reserved1; /* 00h */ U8 BufferType; /* 01h */ U8 MsgLength; /* 02h */ U8 Function; /* 03h */ U16 Reserved2; /* 04h */ U8 Reserved3; /* 06h */ U8 MsgFlags; /* 07h */ U32 MsgContext; /* 08h */ U16 Reserved4; /* 0Ch */ U16 IOCStatus; /* 0Eh */ U32 IOCLogInfo; /* 10h */ U32 TransferLength; /* 14h */} MSG_DIAG_BUFFER_POST_REPLY, MPI_POINTER PTR_MSG_DIAG_BUFFER_POST_REPLY, DiagBufferPostReply_t, MPI_POINTER pDiagBufferPostReply_t;/****************************************************************************//* Diagnostic Release request *//****************************************************************************/typedef struct _MSG_DIAG_RELEASE_REQUEST{ U8 Reserved1; /* 00h */ U8 BufferType; /* 01h */ U8 ChainOffset; /* 02h */ U8 Function; /* 03h */ U16 Reserved2; /* 04h */ U8 Reserved3; /* 06h */ U8 MsgFlags; /* 07h */ U32 MsgContext; /* 08h */} MSG_DIAG_RELEASE_REQUEST, MPI_POINTER PTR_MSG_DIAG_RELEASE_REQUEST, DiagReleaseRequest_t, MPI_POINTER pDiagReleaseRequest_t;/* Diagnostic Release reply */typedef struct _MSG_DIAG_RELEASE_REPLY{ U8 Reserved1; /* 00h */ U8 BufferType; /* 01h */ U8 MsgLength; /* 02h */ U8 Function; /* 03h */ U16 Reserved2; /* 04h */ U8 Reserved3; /* 06h */ U8 MsgFlags; /* 07h */ U32 MsgContext; /* 08h */ U16 Reserved4; /* 0Ch */ U16 IOCStatus; /* 0Eh */ U32 IOCLogInfo; /* 10h */} MSG_DIAG_RELEASE_REPLY, MPI_POINTER PTR_MSG_DIAG_RELEASE_REPLY, DiagReleaseReply_t, MPI_POINTER pDiagReleaseReply_t;#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -