mpi_tool.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:6k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  *  Copyright (c) 2001 LSI Logic Corporation.
  3.  *
  4.  *
  5.  *           Name:  MPI_TOOL.H
  6.  *          Title:  MPI Toolbox structures and definitions
  7.  *  Creation Date:  July 30, 2001
  8.  *
  9.  *    MPI Version:  01.02.02
  10.  *
  11.  *  Version History
  12.  *  ---------------
  13.  *
  14.  *  Date      Version   Description
  15.  *  --------  --------  ------------------------------------------------------
  16.  *  08-08-01  01.02.01  Original release.
  17.  *  08-29-01  01.02.02  Added DIAG_DATA_UPLOAD_HEADER and related defines.
  18.  *  --------------------------------------------------------------------------
  19.  */
  20. #ifndef MPI_TOOL_H
  21. #define MPI_TOOL_H
  22. #define MPI_TOOLBOX_CLEAN_TOOL                      (0x00)
  23. #define MPI_TOOLBOX_MEMORY_MOVE_TOOL                (0x01)
  24. #define MPI_TOOLBOX_DIAG_DATA_UPLOAD_TOOL           (0x02)
  25. /****************************************************************************/
  26. /* Toolbox reply                                                            */
  27. /****************************************************************************/
  28. typedef struct _MSG_TOOLBOX_REPLY
  29. {
  30.     U8                      Tool;                       /* 00h */
  31.     U8                      Reserved;                   /* 01h */
  32.     U8                      MsgLength;                  /* 02h */
  33.     U8                      Function;                   /* 03h */
  34.     U16                     Reserved1;                  /* 04h */
  35.     U8                      Reserved2;                  /* 06h */
  36.     U8                      MsgFlags;                   /* 07h */
  37.     U32                     MsgContext;                 /* 08h */
  38.     U16                     Reserved3;                  /* 0Ch */
  39.     U16                     IOCStatus;                  /* 0Eh */
  40.     U32                     IOCLogInfo;                 /* 10h */
  41. } MSG_TOOLBOX_REPLY, MPI_POINTER PTR_MSG_TOOLBOX_REPLY,
  42.   ToolboxReply_t, MPI_POINTER pToolboxReply_t;
  43. /****************************************************************************/
  44. /* Toolbox Clean Tool request                                               */
  45. /****************************************************************************/
  46. typedef struct _MSG_TOOLBOX_CLEAN_REQUEST
  47. {
  48.     U8                      Tool;                       /* 00h */
  49.     U8                      Reserved;                   /* 01h */
  50.     U8                      ChainOffset;                /* 02h */
  51.     U8                      Function;                   /* 03h */
  52.     U16                     Reserved1;                  /* 04h */
  53.     U8                      Reserved2;                  /* 06h */
  54.     U8                      MsgFlags;                   /* 07h */
  55.     U32                     MsgContext;                 /* 08h */
  56.     U32                     Flags;                      /* 0Ch */
  57. } MSG_TOOLBOX_CLEAN_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_CLEAN_REQUEST,
  58.   ToolboxCleanRequest_t, MPI_POINTER pToolboxCleanRequest_t;
  59. #define MPI_TOOLBOX_CLEAN_NVSRAM                    (0x00000001)
  60. #define MPI_TOOLBOX_CLEAN_SEEPROM                   (0x00000002)
  61. #define MPI_TOOLBOX_CLEAN_FLASH                     (0x00000004)
  62. /****************************************************************************/
  63. /* Toolbox Memory Move request                                              */
  64. /****************************************************************************/
  65. typedef struct _MSG_TOOLBOX_MEM_MOVE_REQUEST
  66. {
  67.     U8                      Tool;                       /* 00h */
  68.     U8                      Reserved;                   /* 01h */
  69.     U8                      ChainOffset;                /* 02h */
  70.     U8                      Function;                   /* 03h */
  71.     U16                     Reserved1;                  /* 04h */
  72.     U8                      Reserved2;                  /* 06h */
  73.     U8                      MsgFlags;                   /* 07h */
  74.     U32                     MsgContext;                 /* 08h */
  75.     SGE_SIMPLE_UNION        SGL;                        /* 0Ch */
  76. } MSG_TOOLBOX_MEM_MOVE_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_MEM_MOVE_REQUEST,
  77.   ToolboxMemMoveRequest_t, MPI_POINTER pToolboxMemMoveRequest_t;
  78. /****************************************************************************/
  79. /* Toolbox Diagnostic Data Upload request                                   */
  80. /****************************************************************************/
  81. typedef struct _MSG_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST
  82. {
  83.     U8                      Tool;                       /* 00h */
  84.     U8                      Reserved;                   /* 01h */
  85.     U8                      ChainOffset;                /* 02h */
  86.     U8                      Function;                   /* 03h */
  87.     U16                     Reserved1;                  /* 04h */
  88.     U8                      Reserved2;                  /* 06h */
  89.     U8                      MsgFlags;                   /* 07h */
  90.     U32                     MsgContext;                 /* 08h */
  91.     U32                     Flags;                      /* 0Ch */
  92.     U32                     Reserved3;                  /* 10h */
  93.     SGE_SIMPLE_UNION        SGL;                        /* 14h */
  94. } MSG_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST,
  95.   ToolboxDiagDataUploadRequest_t, MPI_POINTER pToolboxDiagDataUploadRequest_t;
  96. typedef struct _DIAG_DATA_UPLOAD_HEADER
  97. {
  98.     U32                     DiagDataLength;             /* 00h */
  99.     U8                      FormatCode;                 /* 04h */
  100.     U8                      Reserved;                   /* 05h */
  101.     U16                     Reserved1;                  /* 06h */
  102. } DIAG_DATA_UPLOAD_HEADER, MPI_POINTER PTR_DIAG_DATA_UPLOAD_HEADER,
  103.   DiagDataUploadHeader_t, MPI_POINTER pDiagDataUploadHeader_t;
  104. #define MPI_TB_DIAG_FORMAT_SCSI_PRINTF_1            (0x01)
  105. #define MPI_TB_DIAG_FORMAT_SCSI_2                   (0x02)
  106. #define MPI_TB_DIAG_FORMAT_SCSI_3                   (0x03)
  107. #define MPI_TB_DIAG_FORMAT_FC_TRACE_1               (0x04)
  108. #endif