📄 mpi_tool.h
字号:
/* * Copyright (c) 2001-2005 LSI Logic Corporation. * * * Name: mpi_tool.h * Title: MPI Toolbox structures and definitions * Creation Date: July 30, 2001 * * mpi_tool.h Version: 01.05.03 * * Version History * --------------- * * Date Version Description * -------- -------- ------------------------------------------------------ * 08-08-01 01.02.01 Original release. * 08-29-01 01.02.02 Added DIAG_DATA_UPLOAD_HEADER and related defines. * 01-16-04 01.02.03 Added defines and structures for new tools *. MPI_TOOLBOX_ISTWI_READ_WRITE_TOOL and * MPI_TOOLBOX_FC_MANAGEMENT_TOOL. * 04-29-04 01.02.04 Added message structures for Diagnostic Buffer Post and * Diagnostic Release requests and replies. * 05-11-04 01.03.01 Original release for MPI v1.3. * 08-19-04 01.05.01 Original release for MPI v1.5. * 10-06-04 01.05.02 Added define for MPI_DIAG_BUF_TYPE_COUNT. * 02-09-05 01.05.03 Added frame size option to FC management tool. * Added Beacon tool to the Toolbox. * -------------------------------------------------------------------------- */#ifndef MPI_TOOL_H#define MPI_TOOL_H#define MPI_TOOLBOX_CLEAN_TOOL (0x00)#define MPI_TOOLBOX_MEMORY_MOVE_TOOL (0x01)#define MPI_TOOLBOX_DIAG_DATA_UPLOAD_TOOL (0x02)#define MPI_TOOLBOX_ISTWI_READ_WRITE_TOOL (0x03)#define MPI_TOOLBOX_FC_MANAGEMENT_TOOL (0x04)#define MPI_TOOLBOX_BEACON_TOOL (0x05)/****************************************************************************//* Toolbox reply *//****************************************************************************/typedef struct _MSG_TOOLBOX_REPLY{ U8 Tool; /* 00h */ U8 Reserved; /* 01h */ U8 MsgLength; /* 02h */ U8 Function; /* 03h */ U16 Reserved1; /* 04h */ U8 Reserved2; /* 06h */ U8 MsgFlags; /* 07h */ U32 MsgContext; /* 08h */ U16 Reserved3; /* 0Ch */ U16 IOCStatus; /* 0Eh */ U32 IOCLogInfo; /* 10h */} MSG_TOOLBOX_REPLY, MPI_POINTER PTR_MSG_TOOLBOX_REPLY, ToolboxReply_t, MPI_POINTER pToolboxReply_t;/****************************************************************************//* Toolbox Clean Tool request *//****************************************************************************/typedef struct _MSG_TOOLBOX_CLEAN_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 */ U32 Flags; /* 0Ch */} MSG_TOOLBOX_CLEAN_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_CLEAN_REQUEST, ToolboxCleanRequest_t, MPI_POINTER pToolboxCleanRequest_t;#define MPI_TOOLBOX_CLEAN_NVSRAM (0x00000001)#define MPI_TOOLBOX_CLEAN_SEEPROM (0x00000002)#define MPI_TOOLBOX_CLEAN_FLASH (0x00000004)#define MPI_TOOLBOX_CLEAN_BOOTLOADER (0x04000000)#define MPI_TOOLBOX_CLEAN_FW_BACKUP (0x08000000)#define MPI_TOOLBOX_CLEAN_FW_CURRENT (0x10000000)#define MPI_TOOLBOX_CLEAN_OTHER_PERSIST_PAGES (0x20000000)#define MPI_TOOLBOX_CLEAN_PERSIST_MANUFACT_PAGES (0x40000000)#define MPI_TOOLBOX_CLEAN_BOOT_SERVICES (0x80000000)/****************************************************************************//* Toolbox Memory Move request *//****************************************************************************/typedef struct _MSG_TOOLBOX_MEM_MOVE_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 */ SGE_SIMPLE_UNION SGL; /* 0Ch */} MSG_TOOLBOX_MEM_MOVE_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_MEM_MOVE_REQUEST, ToolboxMemMoveRequest_t, MPI_POINTER pToolboxMemMoveRequest_t;/****************************************************************************//* Toolbox Diagnostic Data Upload request *//****************************************************************************/typedef struct _MSG_TOOLBOX_DIAG_DATA_UPLOAD_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 */ U32 Flags; /* 0Ch */ U32 Reserved3; /* 10h */ SGE_SIMPLE_UNION SGL; /* 14h */} MSG_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST, ToolboxDiagDataUploadRequest_t, MPI_POINTER pToolboxDiagDataUploadRequest_t;typedef struct _DIAG_DATA_UPLOAD_HEADER{ U32 DiagDataLength; /* 00h */ U8 FormatCode; /* 04h */ U8 Reserved; /* 05h */ U16 Reserved1; /* 06h */} DIAG_DATA_UPLOAD_HEADER, MPI_POINTER PTR_DIAG_DATA_UPLOAD_HEADER, DiagDataUploadHeader_t, MPI_POINTER pDiagDataUploadHeader_t;#define MPI_TB_DIAG_FORMAT_SCSI_PRINTF_1 (0x01)#define MPI_TB_DIAG_FORMAT_SCSI_2 (0x02)#define MPI_TB_DIAG_FORMAT_SCSI_3 (0x03)#define MPI_TB_DIAG_FORMAT_FC_TRACE_1 (0x04)/****************************************************************************//* Toolbox ISTWI Read Write request *//****************************************************************************/typedef struct _MSG_TOOLBOX_ISTWI_READ_WRITE_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 Flags; /* 0Ch */ U8 BusNum; /* 0Dh */ U16 Reserved3; /* 0Eh */ U8 NumAddressBytes; /* 10h */ U8 Reserved4; /* 11h */ U16 DataLength; /* 12h */ U8 DeviceAddr; /* 14h */ U8 Addr1; /* 15h */ U8 Addr2; /* 16h */ U8 Addr3; /* 17h */ U32 Reserved5; /* 18h */ SGE_SIMPLE_UNION SGL; /* 1Ch */} MSG_TOOLBOX_ISTWI_READ_WRITE_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_ISTWI_READ_WRITE_REQUEST, ToolboxIstwiReadWriteRequest_t, MPI_POINTER pToolboxIstwiReadWriteRequest_t;#define MPI_TB_ISTWI_FLAGS_WRITE (0x00)#define MPI_TB_ISTWI_FLAGS_READ (0x01)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -