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.

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/scsi/adapters/mpt_sas3/mpi/mpi2_raid.h
          +++ new/usr/src/uts/common/sys/scsi/adapters/mpt_sas3/mpi/mpi2_raid.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23      - * Copyright (c) 2000 to 2009, LSI Corporation.
  24      - * All rights reserved.
       23 + *  Copyright (c) 2000-2012 LSI Corporation.
  25   24   *
  26   25   * Redistribution and use in source and binary forms of all code within
  27   26   * this file that is exclusively owned by LSI, with or without
  28   27   * modification, is permitted provided that, in addition to the CDDL 1.0
  29   28   * License requirements, the following conditions are met:
  30   29   *
  31   30   *    Neither the name of the author nor the names of its contributors may be
  32   31   *    used to endorse or promote products derived from this software without
  33   32   *    specific prior written permission.
  34   33   *
↓ open down ↓ 9 lines elided ↑ open up ↑
  44   43   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  45   44   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
  46   45   * DAMAGE.
  47   46   */
  48   47  
  49   48  /*
  50   49   *           Name:  mpi2_raid.h
  51   50   *          Title:  MPI Integrated RAID messages and structures
  52   51   *  Creation Date:  April 26, 2007
  53   52   *
  54      - *    mpi2_raid.h Version:  02.00.04
       53 + *    mpi2_raid.h Version:  02.00.05
  55   54   *
  56   55   *  Version History
  57   56   *  ---------------
  58   57   *
  59   58   *  Date      Version   Description
  60   59   *  --------  --------  ------------------------------------------------------
  61   60   *  04-30-07  02.00.00  Corresponds to Fusion-MPT MPI Specification Rev A.
  62   61   *  08-31-07  02.00.01  Modifications to RAID Action request and reply,
  63   62   *                      including the Actions and ActionData.
  64   63   *  02-29-08  02.00.02  Added MPI2_RAID_ACTION_ADATA_DISABL_FULL_REBUILD.
  65   64   *  05-21-08  02.00.03  Added MPI2_RAID_VOL_CREATION_NUM_PHYSDISKS so that
  66   65   *                      the PhysDisk array in MPI2_RAID_VOLUME_CREATION_STRUCT
  67   66   *                      can be sized by the build environment.
  68   67   *  07-30-09  02.00.04  Added proper define for the Use Default Settings bit of
  69   68   *                      VolumeCreationFlags and marked the old one as obsolete.
       69 + *  05-12-10  02.00.05  Added MPI2_RAID_VOL_FLAGS_OP_MDC define.
  70   70   *  --------------------------------------------------------------------------
  71   71   */
  72   72  
  73   73  #ifndef MPI2_RAID_H
  74   74  #define MPI2_RAID_H
  75   75  
  76   76  /*****************************************************************************
  77   77  *
  78   78  *               Integrated RAID Messages
  79   79  *
↓ open down ↓ 133 lines elided ↑ open up ↑
 213  213  #define MPI2_RAID_ACTION_DEVICE_FW_UPDATE_MODE      (0x15)
 214  214  #define MPI2_RAID_ACTION_CHANGE_VOL_WRITE_CACHE     (0x17)
 215  215  #define MPI2_RAID_ACTION_SET_VOLUME_NAME            (0x18)
 216  216  #define MPI2_RAID_ACTION_SET_RAID_FUNCTION_RATE     (0x19)
 217  217  #define MPI2_RAID_ACTION_ENABLE_FAILED_VOLUME       (0x1C)
 218  218  #define MPI2_RAID_ACTION_CREATE_HOT_SPARE           (0x1D)
 219  219  #define MPI2_RAID_ACTION_DELETE_HOT_SPARE           (0x1E)
 220  220  #define MPI2_RAID_ACTION_SYSTEM_SHUTDOWN_INITIATED  (0x20)
 221  221  #define MPI2_RAID_ACTION_START_RAID_FUNCTION        (0x21)
 222  222  #define MPI2_RAID_ACTION_STOP_RAID_FUNCTION         (0x22)
 223      -
      223 +#define MPI2_RAID_ACTION_FAST_PATH_PERMITTED        (0x24)
 224  224  
 225  225  /* RAID Volume Creation Structure */
 226  226  
 227  227  /*
 228  228   * The following define can be customized for the targeted product.
 229  229   */
 230  230  #ifndef MPI2_RAID_VOL_CREATION_NUM_PHYSDISKS
 231  231  #define MPI2_RAID_VOL_CREATION_NUM_PHYSDISKS        (1)
 232  232  #endif
 233  233  
↓ open down ↓ 64 lines elided ↑ open up ↑
 298  298      U32                     Flags;                          /* 0x10 */
 299  299  } MPI2_RAID_VOL_INDICATOR, MPI2_POINTER PTR_MPI2_RAID_VOL_INDICATOR,
 300  300    Mpi2RaidVolIndicator_t, MPI2_POINTER pMpi2RaidVolIndicator_t;
 301  301  
 302  302  /* defines for RAID Volume Indicator Flags field */
 303  303  #define MPI2_RAID_VOL_FLAGS_OP_MASK                 (0x0000000F)
 304  304  #define MPI2_RAID_VOL_FLAGS_OP_BACKGROUND_INIT      (0x00000000)
 305  305  #define MPI2_RAID_VOL_FLAGS_OP_ONLINE_CAP_EXPANSION (0x00000001)
 306  306  #define MPI2_RAID_VOL_FLAGS_OP_CONSISTENCY_CHECK    (0x00000002)
 307  307  #define MPI2_RAID_VOL_FLAGS_OP_RESYNC               (0x00000003)
      308 +#define MPI2_RAID_VOL_FLAGS_OP_MDC                  (0x00000004)
 308  309  
 309  310  
 310  311  /* RAID Action Reply ActionData union */
 311  312  typedef union _MPI2_RAID_ACTION_REPLY_DATA
 312  313  {
 313  314      U32                     Word[5];
 314  315      MPI2_RAID_VOL_INDICATOR RaidVolumeIndicator;
 315  316      U16                     VolDevHandle;
 316  317      U8                      VolumeState;
 317  318      U8                      PhysDiskNum;
↓ open down ↓ 29 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX