xref: /freebsd/sys/dev/mpt/mpilib/mpi_sas.h (revision 7282444b103e0b3e7c8cd053413ff6c068831cc6)
19de3c85cSMatt Jacob /* $FreeBSD$ */
29de3c85cSMatt Jacob /*-
3*7282444bSPedro F. Giffuni  * SPDX-License-Identifier: BSD-3-Clause
4*7282444bSPedro F. Giffuni  *
512af29abSMarius Strobl  * Copyright (c) 2000-2010, LSI Logic Corporation and its contributors.
69de3c85cSMatt Jacob  * All rights reserved.
79de3c85cSMatt Jacob  *
89de3c85cSMatt Jacob  * Redistribution and use in source and binary forms, with or without
99de3c85cSMatt Jacob  * modification, are permitted provided that the following conditions are
109de3c85cSMatt Jacob  * met:
119de3c85cSMatt Jacob  * 1. Redistributions of source code must retain the above copyright
129de3c85cSMatt Jacob  *    notice, this list of conditions and the following disclaimer.
139de3c85cSMatt Jacob  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
149de3c85cSMatt Jacob  *    substantially similar to the "NO WARRANTY" disclaimer below
159de3c85cSMatt Jacob  *    ("Disclaimer") and any redistribution must be conditioned upon including
169de3c85cSMatt Jacob  *    a substantially similar Disclaimer requirement for further binary
179de3c85cSMatt Jacob  *    redistribution.
189de3c85cSMatt Jacob  * 3. Neither the name of the LSI Logic Corporation nor the names of its
199de3c85cSMatt Jacob  *    contributors may be used to endorse or promote products derived from
209de3c85cSMatt Jacob  *    this software without specific prior written permission.
219de3c85cSMatt Jacob  *
229de3c85cSMatt Jacob  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
239de3c85cSMatt Jacob  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
249de3c85cSMatt Jacob  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
259de3c85cSMatt Jacob  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
269de3c85cSMatt Jacob  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
279de3c85cSMatt Jacob  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
289de3c85cSMatt Jacob  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
299de3c85cSMatt Jacob  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
309de3c85cSMatt Jacob  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
319de3c85cSMatt Jacob  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF THE COPYRIGHT
329de3c85cSMatt Jacob  * OWNER OR CONTRIBUTOR IS ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
339de3c85cSMatt Jacob  *
349de3c85cSMatt Jacob  *           Name:  mpi_sas.h
359de3c85cSMatt Jacob  *          Title:  MPI Serial Attached SCSI structures and definitions
369de3c85cSMatt Jacob  *  Creation Date:  August 19, 2004
379de3c85cSMatt Jacob  *
3812af29abSMarius Strobl  *    mpi_sas.h Version:  01.05.05
399de3c85cSMatt Jacob  *
409de3c85cSMatt Jacob  *  Version History
419de3c85cSMatt Jacob  *  ---------------
429de3c85cSMatt Jacob  *
439de3c85cSMatt Jacob  *  Date      Version   Description
449de3c85cSMatt Jacob  *  --------  --------  ------------------------------------------------------
459de3c85cSMatt Jacob  *  08-19-04  01.05.01  Original release.
460b80d21bSMatt Jacob  *  08-30-05  01.05.02  Added DeviceInfo bit for SEP.
470b80d21bSMatt Jacob  *                      Added PrimFlags and Primitive field to SAS IO Unit
480b80d21bSMatt Jacob  *                      Control request, and added a new operation code.
4962ae194dSScott Long  *  03-27-06  01.05.03  Added Force Full Discovery, Transmit Port Select Signal,
5062ae194dSScott Long  *                      and Remove Device operations to SAS IO Unit Control.
5162ae194dSScott Long  *                      Added DevHandle field to SAS IO Unit Control request and
5262ae194dSScott Long  *                      reply.
5362ae194dSScott Long  *  10-11-06  01.05.04  Fixed the name of a define for Operation field of SAS IO
5462ae194dSScott Long  *                      Unit Control request.
5512af29abSMarius Strobl  *  01-15-08  01.05.05  Added support for MPI_SAS_OP_SET_IOC_PARAMETER,
5612af29abSMarius Strobl  *                      including adding IOCParameter and IOCParameter value
5712af29abSMarius Strobl  *                      fields to SAS IO Unit Control Request.
5812af29abSMarius Strobl  *                      Added MPI_SAS_DEVICE_INFO_PRODUCT_SPECIFIC define.
599de3c85cSMatt Jacob  *  --------------------------------------------------------------------------
609de3c85cSMatt Jacob  */
619de3c85cSMatt Jacob 
629de3c85cSMatt Jacob #ifndef MPI_SAS_H
639de3c85cSMatt Jacob #define MPI_SAS_H
649de3c85cSMatt Jacob 
659de3c85cSMatt Jacob 
669de3c85cSMatt Jacob /*
679de3c85cSMatt Jacob  * Values for SASStatus.
689de3c85cSMatt Jacob  */
699de3c85cSMatt Jacob #define MPI_SASSTATUS_SUCCESS                           (0x00)
709de3c85cSMatt Jacob #define MPI_SASSTATUS_UNKNOWN_ERROR                     (0x01)
719de3c85cSMatt Jacob #define MPI_SASSTATUS_INVALID_FRAME                     (0x02)
729de3c85cSMatt Jacob #define MPI_SASSTATUS_UTC_BAD_DEST                      (0x03)
739de3c85cSMatt Jacob #define MPI_SASSTATUS_UTC_BREAK_RECEIVED                (0x04)
749de3c85cSMatt Jacob #define MPI_SASSTATUS_UTC_CONNECT_RATE_NOT_SUPPORTED    (0x05)
759de3c85cSMatt Jacob #define MPI_SASSTATUS_UTC_PORT_LAYER_REQUEST            (0x06)
769de3c85cSMatt Jacob #define MPI_SASSTATUS_UTC_PROTOCOL_NOT_SUPPORTED        (0x07)
779de3c85cSMatt Jacob #define MPI_SASSTATUS_UTC_STP_RESOURCES_BUSY            (0x08)
789de3c85cSMatt Jacob #define MPI_SASSTATUS_UTC_WRONG_DESTINATION             (0x09)
799de3c85cSMatt Jacob #define MPI_SASSTATUS_SHORT_INFORMATION_UNIT            (0x0A)
809de3c85cSMatt Jacob #define MPI_SASSTATUS_LONG_INFORMATION_UNIT             (0x0B)
819de3c85cSMatt Jacob #define MPI_SASSTATUS_XFER_RDY_INCORRECT_WRITE_DATA     (0x0C)
829de3c85cSMatt Jacob #define MPI_SASSTATUS_XFER_RDY_REQUEST_OFFSET_ERROR     (0x0D)
839de3c85cSMatt Jacob #define MPI_SASSTATUS_XFER_RDY_NOT_EXPECTED             (0x0E)
849de3c85cSMatt Jacob #define MPI_SASSTATUS_DATA_INCORRECT_DATA_LENGTH        (0x0F)
859de3c85cSMatt Jacob #define MPI_SASSTATUS_DATA_TOO_MUCH_READ_DATA           (0x10)
869de3c85cSMatt Jacob #define MPI_SASSTATUS_DATA_OFFSET_ERROR                 (0x11)
879de3c85cSMatt Jacob #define MPI_SASSTATUS_SDSF_NAK_RECEIVED                 (0x12)
889de3c85cSMatt Jacob #define MPI_SASSTATUS_SDSF_CONNECTION_FAILED            (0x13)
899de3c85cSMatt Jacob #define MPI_SASSTATUS_INITIATOR_RESPONSE_TIMEOUT        (0x14)
909de3c85cSMatt Jacob 
919de3c85cSMatt Jacob 
929de3c85cSMatt Jacob /*
939de3c85cSMatt Jacob  * Values for the SAS DeviceInfo field used in SAS Device Status Change Event
949de3c85cSMatt Jacob  * data and SAS IO Unit Configuration pages.
959de3c85cSMatt Jacob  */
9612af29abSMarius Strobl #define MPI_SAS_DEVICE_INFO_PRODUCT_SPECIFIC    (0xF0000000)
9712af29abSMarius Strobl 
980b80d21bSMatt Jacob #define MPI_SAS_DEVICE_INFO_SEP                 (0x00004000)
999de3c85cSMatt Jacob #define MPI_SAS_DEVICE_INFO_ATAPI_DEVICE        (0x00002000)
1009de3c85cSMatt Jacob #define MPI_SAS_DEVICE_INFO_LSI_DEVICE          (0x00001000)
1019de3c85cSMatt Jacob #define MPI_SAS_DEVICE_INFO_DIRECT_ATTACH       (0x00000800)
1029de3c85cSMatt Jacob #define MPI_SAS_DEVICE_INFO_SSP_TARGET          (0x00000400)
1039de3c85cSMatt Jacob #define MPI_SAS_DEVICE_INFO_STP_TARGET          (0x00000200)
1049de3c85cSMatt Jacob #define MPI_SAS_DEVICE_INFO_SMP_TARGET          (0x00000100)
1059de3c85cSMatt Jacob #define MPI_SAS_DEVICE_INFO_SATA_DEVICE         (0x00000080)
1069de3c85cSMatt Jacob #define MPI_SAS_DEVICE_INFO_SSP_INITIATOR       (0x00000040)
1079de3c85cSMatt Jacob #define MPI_SAS_DEVICE_INFO_STP_INITIATOR       (0x00000020)
1089de3c85cSMatt Jacob #define MPI_SAS_DEVICE_INFO_SMP_INITIATOR       (0x00000010)
1099de3c85cSMatt Jacob #define MPI_SAS_DEVICE_INFO_SATA_HOST           (0x00000008)
1109de3c85cSMatt Jacob 
1119de3c85cSMatt Jacob #define MPI_SAS_DEVICE_INFO_MASK_DEVICE_TYPE    (0x00000007)
1129de3c85cSMatt Jacob #define MPI_SAS_DEVICE_INFO_NO_DEVICE           (0x00000000)
1139de3c85cSMatt Jacob #define MPI_SAS_DEVICE_INFO_END_DEVICE          (0x00000001)
1149de3c85cSMatt Jacob #define MPI_SAS_DEVICE_INFO_EDGE_EXPANDER       (0x00000002)
1159de3c85cSMatt Jacob #define MPI_SAS_DEVICE_INFO_FANOUT_EXPANDER     (0x00000003)
1169de3c85cSMatt Jacob 
1179de3c85cSMatt Jacob 
1189de3c85cSMatt Jacob 
1199de3c85cSMatt Jacob /*****************************************************************************
1209de3c85cSMatt Jacob *
1219de3c85cSMatt Jacob *        S e r i a l    A t t a c h e d    S C S I     M e s s a g e s
1229de3c85cSMatt Jacob *
1239de3c85cSMatt Jacob *****************************************************************************/
1249de3c85cSMatt Jacob 
1259de3c85cSMatt Jacob /****************************************************************************/
1269de3c85cSMatt Jacob /* Serial Management Protocol Passthrough Request                           */
1279de3c85cSMatt Jacob /****************************************************************************/
1289de3c85cSMatt Jacob 
1299de3c85cSMatt Jacob typedef struct _MSG_SMP_PASSTHROUGH_REQUEST
1309de3c85cSMatt Jacob {
1319de3c85cSMatt Jacob     U8                      PassthroughFlags;   /* 00h */
1329de3c85cSMatt Jacob     U8                      PhysicalPort;       /* 01h */
1339de3c85cSMatt Jacob     U8                      ChainOffset;        /* 02h */
1349de3c85cSMatt Jacob     U8                      Function;           /* 03h */
1359de3c85cSMatt Jacob     U16                     RequestDataLength;  /* 04h */
1369de3c85cSMatt Jacob     U8                      ConnectionRate;     /* 06h */
1379de3c85cSMatt Jacob     U8                      MsgFlags;           /* 07h */
1389de3c85cSMatt Jacob     U32                     MsgContext;         /* 08h */
1399de3c85cSMatt Jacob     U32                     Reserved1;          /* 0Ch */
1409de3c85cSMatt Jacob     U64                     SASAddress;         /* 10h */
1419de3c85cSMatt Jacob     U32                     Reserved2;          /* 18h */
1429de3c85cSMatt Jacob     U32                     Reserved3;          /* 1Ch */
1439de3c85cSMatt Jacob     SGE_SIMPLE_UNION        SGL;                /* 20h */
1449de3c85cSMatt Jacob } MSG_SMP_PASSTHROUGH_REQUEST, MPI_POINTER PTR_MSG_SMP_PASSTHROUGH_REQUEST,
1459de3c85cSMatt Jacob   SmpPassthroughRequest_t, MPI_POINTER pSmpPassthroughRequest_t;
1469de3c85cSMatt Jacob 
1479de3c85cSMatt Jacob /* values for PassthroughFlags field */
1489de3c85cSMatt Jacob #define MPI_SMP_PT_REQ_PT_FLAGS_IMMEDIATE       (0x80)
1499de3c85cSMatt Jacob 
1509de3c85cSMatt Jacob /* values for ConnectionRate field */
1519de3c85cSMatt Jacob #define MPI_SMP_PT_REQ_CONNECT_RATE_NEGOTIATED  (0x00)
1529de3c85cSMatt Jacob #define MPI_SMP_PT_REQ_CONNECT_RATE_1_5         (0x08)
1539de3c85cSMatt Jacob #define MPI_SMP_PT_REQ_CONNECT_RATE_3_0         (0x09)
1549de3c85cSMatt Jacob 
1559de3c85cSMatt Jacob 
1569de3c85cSMatt Jacob /* Serial Management Protocol Passthrough Reply */
1579de3c85cSMatt Jacob typedef struct _MSG_SMP_PASSTHROUGH_REPLY
1589de3c85cSMatt Jacob {
1599de3c85cSMatt Jacob     U8                      PassthroughFlags;   /* 00h */
1609de3c85cSMatt Jacob     U8                      PhysicalPort;       /* 01h */
1619de3c85cSMatt Jacob     U8                      MsgLength;          /* 02h */
1629de3c85cSMatt Jacob     U8                      Function;           /* 03h */
1639de3c85cSMatt Jacob     U16                     ResponseDataLength; /* 04h */
1649de3c85cSMatt Jacob     U8                      Reserved1;          /* 06h */
1659de3c85cSMatt Jacob     U8                      MsgFlags;           /* 07h */
1669de3c85cSMatt Jacob     U32                     MsgContext;         /* 08h */
1679de3c85cSMatt Jacob     U8                      Reserved2;          /* 0Ch */
1689de3c85cSMatt Jacob     U8                      SASStatus;          /* 0Dh */
1699de3c85cSMatt Jacob     U16                     IOCStatus;          /* 0Eh */
1709de3c85cSMatt Jacob     U32                     IOCLogInfo;         /* 10h */
1719de3c85cSMatt Jacob     U32                     Reserved3;          /* 14h */
1729de3c85cSMatt Jacob     U8                      ResponseData[4];    /* 18h */
1739de3c85cSMatt Jacob } MSG_SMP_PASSTHROUGH_REPLY, MPI_POINTER PTR_MSG_SMP_PASSTHROUGH_REPLY,
1749de3c85cSMatt Jacob   SmpPassthroughReply_t, MPI_POINTER pSmpPassthroughReply_t;
1759de3c85cSMatt Jacob 
1769de3c85cSMatt Jacob #define MPI_SMP_PT_REPLY_PT_FLAGS_IMMEDIATE     (0x80)
1779de3c85cSMatt Jacob 
1789de3c85cSMatt Jacob 
1799de3c85cSMatt Jacob /****************************************************************************/
1809de3c85cSMatt Jacob /* SATA Passthrough Request                                                 */
1819de3c85cSMatt Jacob /****************************************************************************/
1829de3c85cSMatt Jacob 
1839de3c85cSMatt Jacob typedef struct _MSG_SATA_PASSTHROUGH_REQUEST
1849de3c85cSMatt Jacob {
1859de3c85cSMatt Jacob     U8                      TargetID;           /* 00h */
1869de3c85cSMatt Jacob     U8                      Bus;                /* 01h */
1879de3c85cSMatt Jacob     U8                      ChainOffset;        /* 02h */
1889de3c85cSMatt Jacob     U8                      Function;           /* 03h */
1899de3c85cSMatt Jacob     U16                     PassthroughFlags;   /* 04h */
1909de3c85cSMatt Jacob     U8                      ConnectionRate;     /* 06h */
1919de3c85cSMatt Jacob     U8                      MsgFlags;           /* 07h */
1929de3c85cSMatt Jacob     U32                     MsgContext;         /* 08h */
1939de3c85cSMatt Jacob     U32                     Reserved1;          /* 0Ch */
1949de3c85cSMatt Jacob     U32                     Reserved2;          /* 10h */
1959de3c85cSMatt Jacob     U32                     Reserved3;          /* 14h */
1969de3c85cSMatt Jacob     U32                     DataLength;         /* 18h */
1979de3c85cSMatt Jacob     U8                      CommandFIS[20];     /* 1Ch */
1989de3c85cSMatt Jacob     SGE_SIMPLE_UNION        SGL;                /* 30h */
1999de3c85cSMatt Jacob } MSG_SATA_PASSTHROUGH_REQUEST, MPI_POINTER PTR_MSG_SATA_PASSTHROUGH_REQUEST,
2009de3c85cSMatt Jacob   SataPassthroughRequest_t, MPI_POINTER pSataPassthroughRequest_t;
2019de3c85cSMatt Jacob 
2029de3c85cSMatt Jacob /* values for PassthroughFlags field */
2039de3c85cSMatt Jacob #define MPI_SATA_PT_REQ_PT_FLAGS_RESET_DEVICE   (0x0200)
2049de3c85cSMatt Jacob #define MPI_SATA_PT_REQ_PT_FLAGS_EXECUTE_DIAG   (0x0100)
2059de3c85cSMatt Jacob #define MPI_SATA_PT_REQ_PT_FLAGS_DMA_QUEUED     (0x0080)
2069de3c85cSMatt Jacob #define MPI_SATA_PT_REQ_PT_FLAGS_PACKET_COMMAND (0x0040)
2079de3c85cSMatt Jacob #define MPI_SATA_PT_REQ_PT_FLAGS_DMA            (0x0020)
2089de3c85cSMatt Jacob #define MPI_SATA_PT_REQ_PT_FLAGS_PIO            (0x0010)
2099de3c85cSMatt Jacob #define MPI_SATA_PT_REQ_PT_FLAGS_UNSPECIFIED_VU (0x0004)
2109de3c85cSMatt Jacob #define MPI_SATA_PT_REQ_PT_FLAGS_WRITE          (0x0002)
2119de3c85cSMatt Jacob #define MPI_SATA_PT_REQ_PT_FLAGS_READ           (0x0001)
2129de3c85cSMatt Jacob 
2139de3c85cSMatt Jacob /* values for ConnectionRate field */
2149de3c85cSMatt Jacob #define MPI_SATA_PT_REQ_CONNECT_RATE_NEGOTIATED (0x00)
2159de3c85cSMatt Jacob #define MPI_SATA_PT_REQ_CONNECT_RATE_1_5        (0x08)
2169de3c85cSMatt Jacob #define MPI_SATA_PT_REQ_CONNECT_RATE_3_0        (0x09)
2179de3c85cSMatt Jacob 
2189de3c85cSMatt Jacob 
2199de3c85cSMatt Jacob /* SATA Passthrough Reply */
2209de3c85cSMatt Jacob typedef struct _MSG_SATA_PASSTHROUGH_REPLY
2219de3c85cSMatt Jacob {
2229de3c85cSMatt Jacob     U8                      TargetID;           /* 00h */
2239de3c85cSMatt Jacob     U8                      Bus;                /* 01h */
2249de3c85cSMatt Jacob     U8                      MsgLength;          /* 02h */
2259de3c85cSMatt Jacob     U8                      Function;           /* 03h */
2269de3c85cSMatt Jacob     U16                     PassthroughFlags;   /* 04h */
2279de3c85cSMatt Jacob     U8                      Reserved1;          /* 06h */
2289de3c85cSMatt Jacob     U8                      MsgFlags;           /* 07h */
2299de3c85cSMatt Jacob     U32                     MsgContext;         /* 08h */
2309de3c85cSMatt Jacob     U8                      Reserved2;          /* 0Ch */
2319de3c85cSMatt Jacob     U8                      SASStatus;          /* 0Dh */
2329de3c85cSMatt Jacob     U16                     IOCStatus;          /* 0Eh */
2339de3c85cSMatt Jacob     U32                     IOCLogInfo;         /* 10h */
2349de3c85cSMatt Jacob     U8                      StatusFIS[20];      /* 14h */
2359de3c85cSMatt Jacob     U32                     StatusControlRegisters; /* 28h */
2369de3c85cSMatt Jacob     U32                     TransferCount;      /* 2Ch */
2379de3c85cSMatt Jacob } MSG_SATA_PASSTHROUGH_REPLY, MPI_POINTER PTR_MSG_SATA_PASSTHROUGH_REPLY,
2389de3c85cSMatt Jacob   SataPassthroughReply_t, MPI_POINTER pSataPassthroughReply_t;
2399de3c85cSMatt Jacob 
2409de3c85cSMatt Jacob 
2419de3c85cSMatt Jacob 
2429de3c85cSMatt Jacob 
2439de3c85cSMatt Jacob /****************************************************************************/
2449de3c85cSMatt Jacob /* SAS IO Unit Control Request                                              */
2459de3c85cSMatt Jacob /****************************************************************************/
2469de3c85cSMatt Jacob 
2479de3c85cSMatt Jacob typedef struct _MSG_SAS_IOUNIT_CONTROL_REQUEST
2489de3c85cSMatt Jacob {
2499de3c85cSMatt Jacob     U8                      Operation;          /* 00h */
2509de3c85cSMatt Jacob     U8                      Reserved1;          /* 01h */
2519de3c85cSMatt Jacob     U8                      ChainOffset;        /* 02h */
2529de3c85cSMatt Jacob     U8                      Function;           /* 03h */
25362ae194dSScott Long     U16                     DevHandle;          /* 04h */
25412af29abSMarius Strobl     U8                      IOCParameter;       /* 06h */
2559de3c85cSMatt Jacob     U8                      MsgFlags;           /* 07h */
2569de3c85cSMatt Jacob     U32                     MsgContext;         /* 08h */
2579de3c85cSMatt Jacob     U8                      TargetID;           /* 0Ch */
2589de3c85cSMatt Jacob     U8                      Bus;                /* 0Dh */
2599de3c85cSMatt Jacob     U8                      PhyNum;             /* 0Eh */
2600b80d21bSMatt Jacob     U8                      PrimFlags;          /* 0Fh */
2610b80d21bSMatt Jacob     U32                     Primitive;          /* 10h */
2629de3c85cSMatt Jacob     U64                     SASAddress;         /* 14h */
26312af29abSMarius Strobl     U32                     IOCParameterValue;  /* 1Ch */
2649de3c85cSMatt Jacob } MSG_SAS_IOUNIT_CONTROL_REQUEST, MPI_POINTER PTR_MSG_SAS_IOUNIT_CONTROL_REQUEST,
2659de3c85cSMatt Jacob   SasIoUnitControlRequest_t, MPI_POINTER pSasIoUnitControlRequest_t;
2669de3c85cSMatt Jacob 
2679de3c85cSMatt Jacob /* values for the Operation field */
2689de3c85cSMatt Jacob #define MPI_SAS_OP_CLEAR_NOT_PRESENT            (0x01)
2699de3c85cSMatt Jacob #define MPI_SAS_OP_CLEAR_ALL_PERSISTENT         (0x02)
2709de3c85cSMatt Jacob #define MPI_SAS_OP_PHY_LINK_RESET               (0x06)
2719de3c85cSMatt Jacob #define MPI_SAS_OP_PHY_HARD_RESET               (0x07)
2729de3c85cSMatt Jacob #define MPI_SAS_OP_PHY_CLEAR_ERROR_LOG          (0x08)
2739de3c85cSMatt Jacob #define MPI_SAS_OP_MAP_CURRENT                  (0x09)
2740b80d21bSMatt Jacob #define MPI_SAS_OP_SEND_PRIMITIVE               (0x0A)
27562ae194dSScott Long #define MPI_SAS_OP_FORCE_FULL_DISCOVERY         (0x0B)
27662ae194dSScott Long #define MPI_SAS_OP_TRANSMIT_PORT_SELECT_SIGNAL  (0x0C)
27762ae194dSScott Long #define MPI_SAS_OP_TRANSMIT_REMOVE_DEVICE       (0x0D)  /* obsolete name */
27862ae194dSScott Long #define MPI_SAS_OP_REMOVE_DEVICE                (0x0D)
27912af29abSMarius Strobl #define MPI_SAS_OP_SET_IOC_PARAMETER            (0x0E)
28012af29abSMarius Strobl #define MPI_SAS_OP_PRODUCT_SPECIFIC_MIN         (0x80)
2810b80d21bSMatt Jacob 
2820b80d21bSMatt Jacob /* values for the PrimFlags field */
2830b80d21bSMatt Jacob #define MPI_SAS_PRIMFLAGS_SINGLE                (0x08)
2840b80d21bSMatt Jacob #define MPI_SAS_PRIMFLAGS_TRIPLE                (0x02)
2850b80d21bSMatt Jacob #define MPI_SAS_PRIMFLAGS_REDUNDANT             (0x01)
2869de3c85cSMatt Jacob 
2879de3c85cSMatt Jacob 
2889de3c85cSMatt Jacob /* SAS IO Unit Control Reply */
2899de3c85cSMatt Jacob typedef struct _MSG_SAS_IOUNIT_CONTROL_REPLY
2909de3c85cSMatt Jacob {
2919de3c85cSMatt Jacob     U8                      Operation;          /* 00h */
2929de3c85cSMatt Jacob     U8                      Reserved1;          /* 01h */
2939de3c85cSMatt Jacob     U8                      MsgLength;          /* 02h */
2949de3c85cSMatt Jacob     U8                      Function;           /* 03h */
29562ae194dSScott Long     U16                     DevHandle;          /* 04h */
29612af29abSMarius Strobl     U8                      IOCParameter;       /* 06h */
2979de3c85cSMatt Jacob     U8                      MsgFlags;           /* 07h */
2989de3c85cSMatt Jacob     U32                     MsgContext;         /* 08h */
2999de3c85cSMatt Jacob     U16                     Reserved4;          /* 0Ch */
3009de3c85cSMatt Jacob     U16                     IOCStatus;          /* 0Eh */
3019de3c85cSMatt Jacob     U32                     IOCLogInfo;         /* 10h */
3029de3c85cSMatt Jacob } MSG_SAS_IOUNIT_CONTROL_REPLY, MPI_POINTER PTR_MSG_SAS_IOUNIT_CONTROL_REPLY,
3039de3c85cSMatt Jacob   SasIoUnitControlReply_t, MPI_POINTER pSasIoUnitControlReply_t;
3049de3c85cSMatt Jacob 
3059de3c85cSMatt Jacob #endif
3060b80d21bSMatt Jacob 
3070b80d21bSMatt Jacob 
308