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