Print this page
Initial modifications using the code changes present between
the LSI source code for FreeBSD drivers. Specifically the changes
between from mpslsi-source-17.00.00.00 -> mpslsi-source-03.00.00.00.
This mainly involves using a different scatter/gather element in
frame setup.


   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright (c) 2000 to 2009, LSI Corporation.
  24  * All rights reserved.
  25  *
  26  * Redistribution and use in source and binary forms of all code within
  27  * this file that is exclusively owned by LSI, with or without
  28  * modification, is permitted provided that, in addition to the CDDL 1.0
  29  * License requirements, the following conditions are met:
  30  *
  31  *    Neither the name of the author nor the names of its contributors may be
  32  *    used to endorse or promote products derived from this software without
  33  *    specific prior written permission.
  34  *
  35  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  36  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  37  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  38  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  39  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  40  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  41  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  42  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  43  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  44  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  45  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
  46  * DAMAGE.
  47  */
  48 
  49 /*
  50  *           Name:  mpi2_tool.h
  51  *          Title:  MPI diagnostic tool structures and definitions
  52  *  Creation Date:  March 26, 2007
  53  *
  54  *    mpi2_tool.h Version:  02.00.04
  55  *
  56  *  Version History
  57  *  ---------------
  58  *
  59  *  Date      Version   Description
  60  *  --------  --------  ------------------------------------------------------
  61  *  04-30-07  02.00.00  Corresponds to Fusion-MPT MPI Specification Rev A.
  62  *  12-18-07  02.00.01  Added Diagnostic Buffer Post and Diagnostic Release
  63  *                      structures and defines.
  64  *  02-29-08  02.00.02  Modified various names to make them 32-character unique.
  65  *  05-06-09  02.00.03  Added ISTWI Read Write Tool and Diagnostic CLI Tool.
  66  *  07-30-09  02.00.04  Added ExtendedType field to DiagnosticBufferPost request
  67  *                      and reply messages.
  68  *                      Added MPI2_DIAG_BUF_TYPE_EXTENDED.
  69  *                      Incremented MPI2_DIAG_BUF_TYPE_COUNT.



  70  *  --------------------------------------------------------------------------
  71  */
  72 
  73 #ifndef MPI2_TOOL_H
  74 #define MPI2_TOOL_H
  75 
  76 /*****************************************************************************
  77 *
  78 *               Toolbox Messages
  79 *
  80 *****************************************************************************/
  81 
  82 /* defines for the Tools */
  83 #define MPI2_TOOLBOX_CLEAN_TOOL                     (0x00)
  84 #define MPI2_TOOLBOX_MEMORY_MOVE_TOOL               (0x01)

  85 #define MPI2_TOOLBOX_ISTWI_READ_WRITE_TOOL          (0x03)
  86 #define MPI2_TOOLBOX_BEACON_TOOL                    (0x05)
  87 #define MPI2_TOOLBOX_DIAGNOSTIC_CLI_TOOL            (0x06)
  88 
  89 
  90 /****************************************************************************
  91 *  Toolbox reply
  92 ****************************************************************************/
  93 
  94 typedef struct _MPI2_TOOLBOX_REPLY
  95 {
  96     U8                      Tool;                       /* 0x00 */
  97     U8                      Reserved1;                  /* 0x01 */
  98     U8                      MsgLength;                  /* 0x02 */
  99     U8                      Function;                   /* 0x03 */
 100     U16                     Reserved2;                  /* 0x04 */
 101     U8                      Reserved3;                  /* 0x06 */
 102     U8                      MsgFlags;                   /* 0x07 */
 103     U8                      VP_ID;                      /* 0x08 */
 104     U8                      VF_ID;                      /* 0x09 */


 148 ****************************************************************************/
 149 
 150 typedef struct _MPI2_TOOLBOX_MEM_MOVE_REQUEST
 151 {
 152     U8                      Tool;                       /* 0x00 */
 153     U8                      Reserved1;                  /* 0x01 */
 154     U8                      ChainOffset;                /* 0x02 */
 155     U8                      Function;                   /* 0x03 */
 156     U16                     Reserved2;                  /* 0x04 */
 157     U8                      Reserved3;                  /* 0x06 */
 158     U8                      MsgFlags;                   /* 0x07 */
 159     U8                      VP_ID;                      /* 0x08 */
 160     U8                      VF_ID;                      /* 0x09 */
 161     U16                     Reserved4;                  /* 0x0A */
 162     MPI2_SGE_SIMPLE_UNION   SGL;                        /* 0x0C */
 163 } MPI2_TOOLBOX_MEM_MOVE_REQUEST, MPI2_POINTER PTR_MPI2_TOOLBOX_MEM_MOVE_REQUEST,
 164   Mpi2ToolboxMemMoveRequest_t, MPI2_POINTER pMpi2ToolboxMemMoveRequest_t;
 165 
 166 
 167 /****************************************************************************








































 168 *  Toolbox ISTWI Read Write Tool
 169 ****************************************************************************/
 170 
 171 /* Toolbox ISTWI Read Write Tool request message */
 172 typedef struct _MPI2_TOOLBOX_ISTWI_READ_WRITE_REQUEST
 173 {
 174     U8                      Tool;                       /* 0x00 */
 175     U8                      Reserved1;                  /* 0x01 */
 176     U8                      ChainOffset;                /* 0x02 */
 177     U8                      Function;                   /* 0x03 */
 178     U16                     Reserved2;                  /* 0x04 */
 179     U8                      Reserved3;                  /* 0x06 */
 180     U8                      MsgFlags;                   /* 0x07 */
 181     U8                      VP_ID;                      /* 0x08 */
 182     U8                      VF_ID;                      /* 0x09 */
 183     U16                     Reserved4;                  /* 0x0A */
 184     U32                     Reserved5;                  /* 0x0C */
 185     U32                     Reserved6;                  /* 0x10 */
 186     U8                      DevIndex;                   /* 0x14 */
 187     U8                      Action;                     /* 0x15 */


 278     U8                      Reserved1;                  /* 0x01 */
 279     U8                      ChainOffset;                /* 0x02 */
 280     U8                      Function;                   /* 0x03 */
 281     U16                     Reserved2;                  /* 0x04 */
 282     U8                      Reserved3;                  /* 0x06 */
 283     U8                      MsgFlags;                   /* 0x07 */
 284     U8                      VP_ID;                      /* 0x08 */
 285     U8                      VF_ID;                      /* 0x09 */
 286     U16                     Reserved4;                  /* 0x0A */
 287     U8                      SGLFlags;                   /* 0x0C */
 288     U8                      Reserved5;                  /* 0x0D */
 289     U16                     Reserved6;                  /* 0x0E */
 290     U32                     DataLength;                 /* 0x10 */
 291     U8                      DiagnosticCliCommand[MPI2_TOOLBOX_DIAG_CLI_CMD_LENGTH]; /* 0x14 */
 292     MPI2_SGE_SIMPLE_UNION   SGL;                        /* 0x70 */
 293 } MPI2_TOOLBOX_DIAGNOSTIC_CLI_REQUEST,
 294   MPI2_POINTER PTR_MPI2_TOOLBOX_DIAGNOSTIC_CLI_REQUEST,
 295   Mpi2ToolboxDiagnosticCliRequest_t,
 296   MPI2_POINTER pMpi2ToolboxDiagnosticCliRequest_t;
 297 
 298 /* values for SGLFlags field are in the SGL section of mpi2.h */
 299 
 300 
 301 /* Toolbox Diagnostic CLI Tool reply message */
 302 typedef struct _MPI2_TOOLBOX_DIAGNOSTIC_CLI_REPLY
 303 {
 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,


 346     U16                     Reserved4;                  /* 0x0A */
 347     U64                     BufferAddress;              /* 0x0C */
 348     U32                     BufferLength;               /* 0x14 */
 349     U32                     Reserved5;                  /* 0x18 */
 350     U32                     Reserved6;                  /* 0x1C */
 351     U32                     Flags;                      /* 0x20 */
 352     U32                     ProductSpecific[23];        /* 0x24 */
 353 } MPI2_DIAG_BUFFER_POST_REQUEST, MPI2_POINTER PTR_MPI2_DIAG_BUFFER_POST_REQUEST,
 354   Mpi2DiagBufferPostRequest_t, MPI2_POINTER pMpi2DiagBufferPostRequest_t;
 355 
 356 /* values for the ExtendedType field */
 357 #define MPI2_DIAG_EXTENDED_TYPE_UTILIZATION         (0x02)
 358 
 359 /* values for the BufferType field */
 360 #define MPI2_DIAG_BUF_TYPE_TRACE                    (0x00)
 361 #define MPI2_DIAG_BUF_TYPE_SNAPSHOT                 (0x01)
 362 #define MPI2_DIAG_BUF_TYPE_EXTENDED                 (0x02)
 363 /* count of the number of buffer types */
 364 #define MPI2_DIAG_BUF_TYPE_COUNT                    (0x03)
 365 



 366 
 367 /****************************************************************************
 368 *  Diagnostic Buffer Post reply
 369 ****************************************************************************/
 370 
 371 typedef struct _MPI2_DIAG_BUFFER_POST_REPLY
 372 {
 373     U8                      ExtendedType;               /* 0x00 */
 374     U8                      BufferType;                 /* 0x01 */
 375     U8                      MsgLength;                  /* 0x02 */
 376     U8                      Function;                   /* 0x03 */
 377     U16                     Reserved2;                  /* 0x04 */
 378     U8                      Reserved3;                  /* 0x06 */
 379     U8                      MsgFlags;                   /* 0x07 */
 380     U8                      VP_ID;                      /* 0x08 */
 381     U8                      VF_ID;                      /* 0x09 */
 382     U16                     Reserved4;                  /* 0x0A */
 383     U16                     Reserved5;                  /* 0x0C */
 384     U16                     IOCStatus;                  /* 0x0E */
 385     U32                     IOCLogInfo;                 /* 0x10 */




   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  *  Copyright (c) 2000-2012 LSI Corporation.

  24  *
  25  * Redistribution and use in source and binary forms of all code within
  26  * this file that is exclusively owned by LSI, with or without
  27  * modification, is permitted provided that, in addition to the CDDL 1.0
  28  * License requirements, the following conditions are met:
  29  *
  30  *    Neither the name of the author nor the names of its contributors may be
  31  *    used to endorse or promote products derived from this software without
  32  *    specific prior written permission.
  33  *
  34  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  35  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  36  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  37  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  38  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  39  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  40  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  41  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  42  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  43  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  44  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
  45  * DAMAGE.
  46  */
  47 
  48 /*
  49  *           Name:  mpi2_tool.h
  50  *          Title:  MPI diagnostic tool structures and definitions
  51  *  Creation Date:  March 26, 2007
  52  *
  53  *    mpi2_tool.h Version:  02.00.06
  54  *
  55  *  Version History
  56  *  ---------------
  57  *
  58  *  Date      Version   Description
  59  *  --------  --------  ------------------------------------------------------
  60  *  04-30-07  02.00.00  Corresponds to Fusion-MPT MPI Specification Rev A.
  61  *  12-18-07  02.00.01  Added Diagnostic Buffer Post and Diagnostic Release
  62  *                      structures and defines.
  63  *  02-29-08  02.00.02  Modified various names to make them 32-character unique.
  64  *  05-06-09  02.00.03  Added ISTWI Read Write Tool and Diagnostic CLI Tool.
  65  *  07-30-09  02.00.04  Added ExtendedType field to DiagnosticBufferPost request
  66  *                      and reply messages.
  67  *                      Added MPI2_DIAG_BUF_TYPE_EXTENDED.
  68  *                      Incremented MPI2_DIAG_BUF_TYPE_COUNT.
  69  *  05-12-10  02.00.05  Added Diagnostic Data Upload tool.
  70  *  08-11-10  02.00.06  Added defines that were missing for Diagnostic Buffer
  71  *                      Post Request.
  72  *  --------------------------------------------------------------------------
  73  */
  74 
  75 #ifndef MPI2_TOOL_H
  76 #define MPI2_TOOL_H
  77 
  78 /*****************************************************************************
  79 *
  80 *               Toolbox Messages
  81 *
  82 *****************************************************************************/
  83 
  84 /* defines for the Tools */
  85 #define MPI2_TOOLBOX_CLEAN_TOOL                     (0x00)
  86 #define MPI2_TOOLBOX_MEMORY_MOVE_TOOL               (0x01)
  87 #define MPI2_TOOLBOX_DIAG_DATA_UPLOAD_TOOL          (0x02)
  88 #define MPI2_TOOLBOX_ISTWI_READ_WRITE_TOOL          (0x03)
  89 #define MPI2_TOOLBOX_BEACON_TOOL                    (0x05)
  90 #define MPI2_TOOLBOX_DIAGNOSTIC_CLI_TOOL            (0x06)
  91 
  92 
  93 /****************************************************************************
  94 *  Toolbox reply
  95 ****************************************************************************/
  96 
  97 typedef struct _MPI2_TOOLBOX_REPLY
  98 {
  99     U8                      Tool;                       /* 0x00 */
 100     U8                      Reserved1;                  /* 0x01 */
 101     U8                      MsgLength;                  /* 0x02 */
 102     U8                      Function;                   /* 0x03 */
 103     U16                     Reserved2;                  /* 0x04 */
 104     U8                      Reserved3;                  /* 0x06 */
 105     U8                      MsgFlags;                   /* 0x07 */
 106     U8                      VP_ID;                      /* 0x08 */
 107     U8                      VF_ID;                      /* 0x09 */


 151 ****************************************************************************/
 152 
 153 typedef struct _MPI2_TOOLBOX_MEM_MOVE_REQUEST
 154 {
 155     U8                      Tool;                       /* 0x00 */
 156     U8                      Reserved1;                  /* 0x01 */
 157     U8                      ChainOffset;                /* 0x02 */
 158     U8                      Function;                   /* 0x03 */
 159     U16                     Reserved2;                  /* 0x04 */
 160     U8                      Reserved3;                  /* 0x06 */
 161     U8                      MsgFlags;                   /* 0x07 */
 162     U8                      VP_ID;                      /* 0x08 */
 163     U8                      VF_ID;                      /* 0x09 */
 164     U16                     Reserved4;                  /* 0x0A */
 165     MPI2_SGE_SIMPLE_UNION   SGL;                        /* 0x0C */
 166 } MPI2_TOOLBOX_MEM_MOVE_REQUEST, MPI2_POINTER PTR_MPI2_TOOLBOX_MEM_MOVE_REQUEST,
 167   Mpi2ToolboxMemMoveRequest_t, MPI2_POINTER pMpi2ToolboxMemMoveRequest_t;
 168 
 169 
 170 /****************************************************************************
 171 *  Toolbox Diagnostic Data Upload request
 172 ****************************************************************************/
 173 
 174 typedef struct _MPI2_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST
 175 {
 176     U8                      Tool;                       /* 0x00 */
 177     U8                      Reserved1;                  /* 0x01 */
 178     U8                      ChainOffset;                /* 0x02 */
 179     U8                      Function;                   /* 0x03 */
 180     U16                     Reserved2;                  /* 0x04 */
 181     U8                      Reserved3;                  /* 0x06 */
 182     U8                      MsgFlags;                   /* 0x07 */
 183     U8                      VP_ID;                      /* 0x08 */
 184     U8                      VF_ID;                      /* 0x09 */
 185     U16                     Reserved4;                  /* 0x0A */
 186     U8                      SGLFlags;                   /* 0x0C */
 187     U8                      Reserved5;                  /* 0x0D */
 188     U16                     Reserved6;                  /* 0x0E */
 189     U32                     Flags;                      /* 0x10 */
 190     U32                     DataLength;                 /* 0x14 */
 191     MPI2_SGE_SIMPLE_UNION   SGL;                        /* 0x18 */
 192 } MPI2_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST,
 193   MPI2_POINTER PTR_MPI2_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST,
 194   Mpi2ToolboxDiagDataUploadRequest_t,
 195   MPI2_POINTER pMpi2ToolboxDiagDataUploadRequest_t;
 196 
 197 /* use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */
 198 
 199 
 200 typedef struct _MPI2_DIAG_DATA_UPLOAD_HEADER
 201 {
 202     U32                     DiagDataLength;             /* 00h */
 203     U8                      FormatCode;                 /* 04h */
 204     U8                      Reserved1;                  /* 05h */
 205     U16                     Reserved2;                  /* 06h */
 206 } MPI2_DIAG_DATA_UPLOAD_HEADER, MPI2_POINTER PTR_MPI2_DIAG_DATA_UPLOAD_HEADER,
 207   Mpi2DiagDataUploadHeader_t, MPI2_POINTER pMpi2DiagDataUploadHeader_t;
 208 
 209 
 210 /****************************************************************************
 211 *  Toolbox ISTWI Read Write Tool
 212 ****************************************************************************/
 213 
 214 /* Toolbox ISTWI Read Write Tool request message */
 215 typedef struct _MPI2_TOOLBOX_ISTWI_READ_WRITE_REQUEST
 216 {
 217     U8                      Tool;                       /* 0x00 */
 218     U8                      Reserved1;                  /* 0x01 */
 219     U8                      ChainOffset;                /* 0x02 */
 220     U8                      Function;                   /* 0x03 */
 221     U16                     Reserved2;                  /* 0x04 */
 222     U8                      Reserved3;                  /* 0x06 */
 223     U8                      MsgFlags;                   /* 0x07 */
 224     U8                      VP_ID;                      /* 0x08 */
 225     U8                      VF_ID;                      /* 0x09 */
 226     U16                     Reserved4;                  /* 0x0A */
 227     U32                     Reserved5;                  /* 0x0C */
 228     U32                     Reserved6;                  /* 0x10 */
 229     U8                      DevIndex;                   /* 0x14 */
 230     U8                      Action;                     /* 0x15 */


 321     U8                      Reserved1;                  /* 0x01 */
 322     U8                      ChainOffset;                /* 0x02 */
 323     U8                      Function;                   /* 0x03 */
 324     U16                     Reserved2;                  /* 0x04 */
 325     U8                      Reserved3;                  /* 0x06 */
 326     U8                      MsgFlags;                   /* 0x07 */
 327     U8                      VP_ID;                      /* 0x08 */
 328     U8                      VF_ID;                      /* 0x09 */
 329     U16                     Reserved4;                  /* 0x0A */
 330     U8                      SGLFlags;                   /* 0x0C */
 331     U8                      Reserved5;                  /* 0x0D */
 332     U16                     Reserved6;                  /* 0x0E */
 333     U32                     DataLength;                 /* 0x10 */
 334     U8                      DiagnosticCliCommand[MPI2_TOOLBOX_DIAG_CLI_CMD_LENGTH]; /* 0x14 */
 335     MPI2_SGE_SIMPLE_UNION   SGL;                        /* 0x70 */
 336 } MPI2_TOOLBOX_DIAGNOSTIC_CLI_REQUEST,
 337   MPI2_POINTER PTR_MPI2_TOOLBOX_DIAGNOSTIC_CLI_REQUEST,
 338   Mpi2ToolboxDiagnosticCliRequest_t,
 339   MPI2_POINTER pMpi2ToolboxDiagnosticCliRequest_t;
 340 
 341 /* use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */
 342 
 343 
 344 /* Toolbox Diagnostic CLI Tool reply message */
 345 typedef struct _MPI2_TOOLBOX_DIAGNOSTIC_CLI_REPLY
 346 {
 347     U8                      Tool;                       /* 0x00 */
 348     U8                      Reserved1;                  /* 0x01 */
 349     U8                      MsgLength;                  /* 0x02 */
 350     U8                      Function;                   /* 0x03 */
 351     U16                     Reserved2;                  /* 0x04 */
 352     U8                      Reserved3;                  /* 0x06 */
 353     U8                      MsgFlags;                   /* 0x07 */
 354     U8                      VP_ID;                      /* 0x08 */
 355     U8                      VF_ID;                      /* 0x09 */
 356     U16                     Reserved4;                  /* 0x0A */
 357     U16                     Reserved5;                  /* 0x0C */
 358     U16                     IOCStatus;                  /* 0x0E */
 359     U32                     IOCLogInfo;                 /* 0x10 */
 360     U32                     ReturnedDataLength;         /* 0x14 */
 361 } MPI2_TOOLBOX_DIAGNOSTIC_CLI_REPLY,


 389     U16                     Reserved4;                  /* 0x0A */
 390     U64                     BufferAddress;              /* 0x0C */
 391     U32                     BufferLength;               /* 0x14 */
 392     U32                     Reserved5;                  /* 0x18 */
 393     U32                     Reserved6;                  /* 0x1C */
 394     U32                     Flags;                      /* 0x20 */
 395     U32                     ProductSpecific[23];        /* 0x24 */
 396 } MPI2_DIAG_BUFFER_POST_REQUEST, MPI2_POINTER PTR_MPI2_DIAG_BUFFER_POST_REQUEST,
 397   Mpi2DiagBufferPostRequest_t, MPI2_POINTER pMpi2DiagBufferPostRequest_t;
 398 
 399 /* values for the ExtendedType field */
 400 #define MPI2_DIAG_EXTENDED_TYPE_UTILIZATION         (0x02)
 401 
 402 /* values for the BufferType field */
 403 #define MPI2_DIAG_BUF_TYPE_TRACE                    (0x00)
 404 #define MPI2_DIAG_BUF_TYPE_SNAPSHOT                 (0x01)
 405 #define MPI2_DIAG_BUF_TYPE_EXTENDED                 (0x02)
 406 /* count of the number of buffer types */
 407 #define MPI2_DIAG_BUF_TYPE_COUNT                    (0x03)
 408 
 409 /* values for the Flags field */
 410 #define MPI2_DIAG_BUF_FLAG_RELEASE_ON_FULL          (0x00000002) /* for MPI v2.0 products only */
 411 #define MPI2_DIAG_BUF_FLAG_IMMEDIATE_RELEASE        (0x00000001)
 412 
 413 /****************************************************************************
 414 *  Diagnostic Buffer Post reply
 415 ****************************************************************************/
 416 
 417 typedef struct _MPI2_DIAG_BUFFER_POST_REPLY
 418 {
 419     U8                      ExtendedType;               /* 0x00 */
 420     U8                      BufferType;                 /* 0x01 */
 421     U8                      MsgLength;                  /* 0x02 */
 422     U8                      Function;                   /* 0x03 */
 423     U16                     Reserved2;                  /* 0x04 */
 424     U8                      Reserved3;                  /* 0x06 */
 425     U8                      MsgFlags;                   /* 0x07 */
 426     U8                      VP_ID;                      /* 0x08 */
 427     U8                      VF_ID;                      /* 0x09 */
 428     U16                     Reserved4;                  /* 0x0A */
 429     U16                     Reserved5;                  /* 0x0C */
 430     U16                     IOCStatus;                  /* 0x0E */
 431     U32                     IOCLogInfo;                 /* 0x10 */