diff options
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_init.h')
| -rw-r--r-- | drivers/scsi/mpt2sas/mpi/mpi2_init.h | 24 | 
1 files changed, 21 insertions, 3 deletions
diff --git a/drivers/scsi/mpt2sas/mpi/mpi2_init.h b/drivers/scsi/mpt2sas/mpi/mpi2_init.h index c4c99dfcb82..9d284dae655 100644 --- a/drivers/scsi/mpt2sas/mpi/mpi2_init.h +++ b/drivers/scsi/mpt2sas/mpi/mpi2_init.h @@ -1,12 +1,12 @@  /* - *  Copyright (c) 2000-2010 LSI Corporation. + *  Copyright (c) 2000-2013 LSI Corporation.   *   *   *           Name:  mpi2_init.h   *          Title:  MPI SCSI initiator mode messages and structures   *  Creation Date:  June 23, 2006   * - *    mpi2_init.h Version:  02.00.09 + *    mpi2_init.h Version:  02.00.14   *   *  Version History   *  --------------- @@ -21,7 +21,7 @@   *  05-21-08  02.00.05  Fixed typo in name of Mpi2SepRequest_t.   *  10-02-08  02.00.06  Removed Untagged and No Disconnect values from SCSI IO   *                      Control field Task Attribute flags. - *                      Moved LUN field defines to mpi2.h becasue they are + *                      Moved LUN field defines to mpi2.h because they are   *                      common to many structures.   *  05-06-09  02.00.07  Changed task management type of Query Unit Attention to   *                      Query Asynchronous Event. @@ -32,6 +32,11 @@   *                      Added ResponseInfo field to MPI2_SCSI_TASK_MANAGE_REPLY.   *                      Added MPI2_SCSITASKMGMT_RSP_TM_OVERLAPPED_TAG define.   *  02-10-10  02.00.09  Removed unused structure that had "#if 0" around it. + *  05-12-10  02.00.10  Added optional vendor-unique region to SCSI IO Request. + *  11-10-10  02.00.11  Added MPI2_SCSIIO_NUM_SGLOFFSETS define. + *  02-06-12  02.00.13  Added alternate defines for Task Priority / Command + *                      Priority to match SAM-4. + *  07-10-12  02.00.14  Added MPI2_SCSIIO_CONTROL_SHIFT_DATADIRECTION.   *  --------------------------------------------------------------------------   */ @@ -98,7 +103,13 @@ typedef struct _MPI2_SCSI_IO_REQUEST      U8                      LUN[8];                         /* 0x34 */      U32                     Control;                        /* 0x3C */      MPI2_SCSI_IO_CDB_UNION  CDB;                            /* 0x40 */ + +#ifdef MPI2_SCSI_IO_VENDOR_UNIQUE_REGION /* typically this is left undefined */ +	MPI2_SCSI_IO_VENDOR_UNIQUE VendorRegion; +#endif +      MPI2_SGE_IO_UNION       SGL;                            /* 0x60 */ +  } MPI2_SCSI_IO_REQUEST, MPI2_POINTER PTR_MPI2_SCSI_IO_REQUEST,    Mpi2SCSIIORequest_t, MPI2_POINTER pMpi2SCSIIORequest_t; @@ -132,6 +143,9 @@ typedef struct _MPI2_SCSI_IO_REQUEST  #define MPI2_SCSIIO_SGLFLAGS_SGL1_SHIFT             (4)  #define MPI2_SCSIIO_SGLFLAGS_SGL0_SHIFT             (0) +/* number of SGLOffset fields */ +#define MPI2_SCSIIO_NUM_SGLOFFSETS                  (4) +  /* SCSI IO IoFlags bits */  /* Large CDB Address Space */ @@ -176,6 +190,7 @@ typedef struct _MPI2_SCSI_IO_REQUEST  #define MPI2_SCSIIO_CONTROL_ADDCDBLEN_SHIFT     (26)  #define MPI2_SCSIIO_CONTROL_DATADIRECTION_MASK  (0x03000000) +#define MPI2_SCSIIO_CONTROL_SHIFT_DATADIRECTION (24)  #define MPI2_SCSIIO_CONTROL_NODATATRANSFER      (0x00000000)  #define MPI2_SCSIIO_CONTROL_WRITE               (0x01000000)  #define MPI2_SCSIIO_CONTROL_READ                (0x02000000) @@ -183,6 +198,9 @@ typedef struct _MPI2_SCSI_IO_REQUEST  #define MPI2_SCSIIO_CONTROL_TASKPRI_MASK        (0x00007800)  #define MPI2_SCSIIO_CONTROL_TASKPRI_SHIFT       (11) +/* alternate name for the previous field; called Command Priority in SAM-4 */ +#define MPI2_SCSIIO_CONTROL_CMDPRI_MASK         (0x00007800) +#define MPI2_SCSIIO_CONTROL_CMDPRI_SHIFT        (11)  #define MPI2_SCSIIO_CONTROL_TASKATTRIBUTE_MASK  (0x00000700)  #define MPI2_SCSIIO_CONTROL_SIMPLEQ             (0x00000000)  | 
