18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci *  Copyright (c) 2004-2008 LSI Corporation.
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci *           Name:  mpi_sas.h
78c2ecf20Sopenharmony_ci *          Title:  MPI Serial Attached SCSI structures and definitions
88c2ecf20Sopenharmony_ci *  Creation Date:  August 19, 2004
98c2ecf20Sopenharmony_ci *
108c2ecf20Sopenharmony_ci *    mpi_sas.h Version:  01.05.05
118c2ecf20Sopenharmony_ci *
128c2ecf20Sopenharmony_ci *  Version History
138c2ecf20Sopenharmony_ci *  ---------------
148c2ecf20Sopenharmony_ci *
158c2ecf20Sopenharmony_ci *  Date      Version   Description
168c2ecf20Sopenharmony_ci *  --------  --------  ------------------------------------------------------
178c2ecf20Sopenharmony_ci *  08-19-04  01.05.01  Original release.
188c2ecf20Sopenharmony_ci *  08-30-05  01.05.02  Added DeviceInfo bit for SEP.
198c2ecf20Sopenharmony_ci *                      Added PrimFlags and Primitive field to SAS IO Unit
208c2ecf20Sopenharmony_ci *                      Control request, and added a new operation code.
218c2ecf20Sopenharmony_ci *  03-27-06  01.05.03  Added Force Full Discovery, Transmit Port Select Signal,
228c2ecf20Sopenharmony_ci *                      and Remove Device operations to SAS IO Unit Control.
238c2ecf20Sopenharmony_ci *                      Added DevHandle field to SAS IO Unit Control request and
248c2ecf20Sopenharmony_ci *                      reply.
258c2ecf20Sopenharmony_ci *  10-11-06  01.05.04  Fixed the name of a define for Operation field of SAS IO
268c2ecf20Sopenharmony_ci *                      Unit Control request.
278c2ecf20Sopenharmony_ci *  01-15-08  01.05.05  Added support for MPI_SAS_OP_SET_IOC_PARAMETER,
288c2ecf20Sopenharmony_ci *                      including adding IOCParameter and IOCParameter value
298c2ecf20Sopenharmony_ci *                      fields to SAS IO Unit Control Request.
308c2ecf20Sopenharmony_ci *                      Added MPI_SAS_DEVICE_INFO_PRODUCT_SPECIFIC define.
318c2ecf20Sopenharmony_ci *  --------------------------------------------------------------------------
328c2ecf20Sopenharmony_ci */
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci#ifndef MPI_SAS_H
358c2ecf20Sopenharmony_ci#define MPI_SAS_H
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci/*
398c2ecf20Sopenharmony_ci * Values for SASStatus.
408c2ecf20Sopenharmony_ci */
418c2ecf20Sopenharmony_ci#define MPI_SASSTATUS_SUCCESS                           (0x00)
428c2ecf20Sopenharmony_ci#define MPI_SASSTATUS_UNKNOWN_ERROR                     (0x01)
438c2ecf20Sopenharmony_ci#define MPI_SASSTATUS_INVALID_FRAME                     (0x02)
448c2ecf20Sopenharmony_ci#define MPI_SASSTATUS_UTC_BAD_DEST                      (0x03)
458c2ecf20Sopenharmony_ci#define MPI_SASSTATUS_UTC_BREAK_RECEIVED                (0x04)
468c2ecf20Sopenharmony_ci#define MPI_SASSTATUS_UTC_CONNECT_RATE_NOT_SUPPORTED    (0x05)
478c2ecf20Sopenharmony_ci#define MPI_SASSTATUS_UTC_PORT_LAYER_REQUEST            (0x06)
488c2ecf20Sopenharmony_ci#define MPI_SASSTATUS_UTC_PROTOCOL_NOT_SUPPORTED        (0x07)
498c2ecf20Sopenharmony_ci#define MPI_SASSTATUS_UTC_STP_RESOURCES_BUSY            (0x08)
508c2ecf20Sopenharmony_ci#define MPI_SASSTATUS_UTC_WRONG_DESTINATION             (0x09)
518c2ecf20Sopenharmony_ci#define MPI_SASSTATUS_SHORT_INFORMATION_UNIT            (0x0A)
528c2ecf20Sopenharmony_ci#define MPI_SASSTATUS_LONG_INFORMATION_UNIT             (0x0B)
538c2ecf20Sopenharmony_ci#define MPI_SASSTATUS_XFER_RDY_INCORRECT_WRITE_DATA     (0x0C)
548c2ecf20Sopenharmony_ci#define MPI_SASSTATUS_XFER_RDY_REQUEST_OFFSET_ERROR     (0x0D)
558c2ecf20Sopenharmony_ci#define MPI_SASSTATUS_XFER_RDY_NOT_EXPECTED             (0x0E)
568c2ecf20Sopenharmony_ci#define MPI_SASSTATUS_DATA_INCORRECT_DATA_LENGTH        (0x0F)
578c2ecf20Sopenharmony_ci#define MPI_SASSTATUS_DATA_TOO_MUCH_READ_DATA           (0x10)
588c2ecf20Sopenharmony_ci#define MPI_SASSTATUS_DATA_OFFSET_ERROR                 (0x11)
598c2ecf20Sopenharmony_ci#define MPI_SASSTATUS_SDSF_NAK_RECEIVED                 (0x12)
608c2ecf20Sopenharmony_ci#define MPI_SASSTATUS_SDSF_CONNECTION_FAILED            (0x13)
618c2ecf20Sopenharmony_ci#define MPI_SASSTATUS_INITIATOR_RESPONSE_TIMEOUT        (0x14)
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ci/*
658c2ecf20Sopenharmony_ci * Values for the SAS DeviceInfo field used in SAS Device Status Change Event
668c2ecf20Sopenharmony_ci * data and SAS IO Unit Configuration pages.
678c2ecf20Sopenharmony_ci */
688c2ecf20Sopenharmony_ci#define MPI_SAS_DEVICE_INFO_PRODUCT_SPECIFIC    (0xF0000000)
698c2ecf20Sopenharmony_ci
708c2ecf20Sopenharmony_ci#define MPI_SAS_DEVICE_INFO_SEP                 (0x00004000)
718c2ecf20Sopenharmony_ci#define MPI_SAS_DEVICE_INFO_ATAPI_DEVICE        (0x00002000)
728c2ecf20Sopenharmony_ci#define MPI_SAS_DEVICE_INFO_LSI_DEVICE          (0x00001000)
738c2ecf20Sopenharmony_ci#define MPI_SAS_DEVICE_INFO_DIRECT_ATTACH       (0x00000800)
748c2ecf20Sopenharmony_ci#define MPI_SAS_DEVICE_INFO_SSP_TARGET          (0x00000400)
758c2ecf20Sopenharmony_ci#define MPI_SAS_DEVICE_INFO_STP_TARGET          (0x00000200)
768c2ecf20Sopenharmony_ci#define MPI_SAS_DEVICE_INFO_SMP_TARGET          (0x00000100)
778c2ecf20Sopenharmony_ci#define MPI_SAS_DEVICE_INFO_SATA_DEVICE         (0x00000080)
788c2ecf20Sopenharmony_ci#define MPI_SAS_DEVICE_INFO_SSP_INITIATOR       (0x00000040)
798c2ecf20Sopenharmony_ci#define MPI_SAS_DEVICE_INFO_STP_INITIATOR       (0x00000020)
808c2ecf20Sopenharmony_ci#define MPI_SAS_DEVICE_INFO_SMP_INITIATOR       (0x00000010)
818c2ecf20Sopenharmony_ci#define MPI_SAS_DEVICE_INFO_SATA_HOST           (0x00000008)
828c2ecf20Sopenharmony_ci
838c2ecf20Sopenharmony_ci#define MPI_SAS_DEVICE_INFO_MASK_DEVICE_TYPE    (0x00000007)
848c2ecf20Sopenharmony_ci#define MPI_SAS_DEVICE_INFO_NO_DEVICE           (0x00000000)
858c2ecf20Sopenharmony_ci#define MPI_SAS_DEVICE_INFO_END_DEVICE          (0x00000001)
868c2ecf20Sopenharmony_ci#define MPI_SAS_DEVICE_INFO_EDGE_EXPANDER       (0x00000002)
878c2ecf20Sopenharmony_ci#define MPI_SAS_DEVICE_INFO_FANOUT_EXPANDER     (0x00000003)
888c2ecf20Sopenharmony_ci
898c2ecf20Sopenharmony_ci
908c2ecf20Sopenharmony_ci
918c2ecf20Sopenharmony_ci/*****************************************************************************
928c2ecf20Sopenharmony_ci*
938c2ecf20Sopenharmony_ci*        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
948c2ecf20Sopenharmony_ci*
958c2ecf20Sopenharmony_ci*****************************************************************************/
968c2ecf20Sopenharmony_ci
978c2ecf20Sopenharmony_ci/****************************************************************************/
988c2ecf20Sopenharmony_ci/* Serial Management Protocol Passthrough Request                           */
998c2ecf20Sopenharmony_ci/****************************************************************************/
1008c2ecf20Sopenharmony_ci
1018c2ecf20Sopenharmony_citypedef struct _MSG_SMP_PASSTHROUGH_REQUEST
1028c2ecf20Sopenharmony_ci{
1038c2ecf20Sopenharmony_ci    U8                      PassthroughFlags;   /* 00h */
1048c2ecf20Sopenharmony_ci    U8                      PhysicalPort;       /* 01h */
1058c2ecf20Sopenharmony_ci    U8                      ChainOffset;        /* 02h */
1068c2ecf20Sopenharmony_ci    U8                      Function;           /* 03h */
1078c2ecf20Sopenharmony_ci    U16                     RequestDataLength;  /* 04h */
1088c2ecf20Sopenharmony_ci    U8                      ConnectionRate;     /* 06h */
1098c2ecf20Sopenharmony_ci    U8                      MsgFlags;           /* 07h */
1108c2ecf20Sopenharmony_ci    U32                     MsgContext;         /* 08h */
1118c2ecf20Sopenharmony_ci    U32                     Reserved1;          /* 0Ch */
1128c2ecf20Sopenharmony_ci    U64                     SASAddress;         /* 10h */
1138c2ecf20Sopenharmony_ci    U32                     Reserved2;          /* 18h */
1148c2ecf20Sopenharmony_ci    U32                     Reserved3;          /* 1Ch */
1158c2ecf20Sopenharmony_ci    SGE_SIMPLE_UNION        SGL;                /* 20h */
1168c2ecf20Sopenharmony_ci} MSG_SMP_PASSTHROUGH_REQUEST, MPI_POINTER PTR_MSG_SMP_PASSTHROUGH_REQUEST,
1178c2ecf20Sopenharmony_ci  SmpPassthroughRequest_t, MPI_POINTER pSmpPassthroughRequest_t;
1188c2ecf20Sopenharmony_ci
1198c2ecf20Sopenharmony_ci/* values for PassthroughFlags field */
1208c2ecf20Sopenharmony_ci#define MPI_SMP_PT_REQ_PT_FLAGS_IMMEDIATE       (0x80)
1218c2ecf20Sopenharmony_ci
1228c2ecf20Sopenharmony_ci/* values for ConnectionRate field */
1238c2ecf20Sopenharmony_ci#define MPI_SMP_PT_REQ_CONNECT_RATE_NEGOTIATED  (0x00)
1248c2ecf20Sopenharmony_ci#define MPI_SMP_PT_REQ_CONNECT_RATE_1_5         (0x08)
1258c2ecf20Sopenharmony_ci#define MPI_SMP_PT_REQ_CONNECT_RATE_3_0         (0x09)
1268c2ecf20Sopenharmony_ci
1278c2ecf20Sopenharmony_ci
1288c2ecf20Sopenharmony_ci/* Serial Management Protocol Passthrough Reply */
1298c2ecf20Sopenharmony_citypedef struct _MSG_SMP_PASSTHROUGH_REPLY
1308c2ecf20Sopenharmony_ci{
1318c2ecf20Sopenharmony_ci    U8                      PassthroughFlags;   /* 00h */
1328c2ecf20Sopenharmony_ci    U8                      PhysicalPort;       /* 01h */
1338c2ecf20Sopenharmony_ci    U8                      MsgLength;          /* 02h */
1348c2ecf20Sopenharmony_ci    U8                      Function;           /* 03h */
1358c2ecf20Sopenharmony_ci    U16                     ResponseDataLength; /* 04h */
1368c2ecf20Sopenharmony_ci    U8                      Reserved1;          /* 06h */
1378c2ecf20Sopenharmony_ci    U8                      MsgFlags;           /* 07h */
1388c2ecf20Sopenharmony_ci    U32                     MsgContext;         /* 08h */
1398c2ecf20Sopenharmony_ci    U8                      Reserved2;          /* 0Ch */
1408c2ecf20Sopenharmony_ci    U8                      SASStatus;          /* 0Dh */
1418c2ecf20Sopenharmony_ci    U16                     IOCStatus;          /* 0Eh */
1428c2ecf20Sopenharmony_ci    U32                     IOCLogInfo;         /* 10h */
1438c2ecf20Sopenharmony_ci    U32                     Reserved3;          /* 14h */
1448c2ecf20Sopenharmony_ci    U8                      ResponseData[4];    /* 18h */
1458c2ecf20Sopenharmony_ci} MSG_SMP_PASSTHROUGH_REPLY, MPI_POINTER PTR_MSG_SMP_PASSTHROUGH_REPLY,
1468c2ecf20Sopenharmony_ci  SmpPassthroughReply_t, MPI_POINTER pSmpPassthroughReply_t;
1478c2ecf20Sopenharmony_ci
1488c2ecf20Sopenharmony_ci#define MPI_SMP_PT_REPLY_PT_FLAGS_IMMEDIATE     (0x80)
1498c2ecf20Sopenharmony_ci
1508c2ecf20Sopenharmony_ci
1518c2ecf20Sopenharmony_ci/****************************************************************************/
1528c2ecf20Sopenharmony_ci/* SATA Passthrough Request                                                 */
1538c2ecf20Sopenharmony_ci/****************************************************************************/
1548c2ecf20Sopenharmony_ci
1558c2ecf20Sopenharmony_citypedef struct _MSG_SATA_PASSTHROUGH_REQUEST
1568c2ecf20Sopenharmony_ci{
1578c2ecf20Sopenharmony_ci    U8                      TargetID;           /* 00h */
1588c2ecf20Sopenharmony_ci    U8                      Bus;                /* 01h */
1598c2ecf20Sopenharmony_ci    U8                      ChainOffset;        /* 02h */
1608c2ecf20Sopenharmony_ci    U8                      Function;           /* 03h */
1618c2ecf20Sopenharmony_ci    U16                     PassthroughFlags;   /* 04h */
1628c2ecf20Sopenharmony_ci    U8                      ConnectionRate;     /* 06h */
1638c2ecf20Sopenharmony_ci    U8                      MsgFlags;           /* 07h */
1648c2ecf20Sopenharmony_ci    U32                     MsgContext;         /* 08h */
1658c2ecf20Sopenharmony_ci    U32                     Reserved1;          /* 0Ch */
1668c2ecf20Sopenharmony_ci    U32                     Reserved2;          /* 10h */
1678c2ecf20Sopenharmony_ci    U32                     Reserved3;          /* 14h */
1688c2ecf20Sopenharmony_ci    U32                     DataLength;         /* 18h */
1698c2ecf20Sopenharmony_ci    U8                      CommandFIS[20];     /* 1Ch */
1708c2ecf20Sopenharmony_ci    SGE_SIMPLE_UNION        SGL;                /* 30h */
1718c2ecf20Sopenharmony_ci} MSG_SATA_PASSTHROUGH_REQUEST, MPI_POINTER PTR_MSG_SATA_PASSTHROUGH_REQUEST,
1728c2ecf20Sopenharmony_ci  SataPassthroughRequest_t, MPI_POINTER pSataPassthroughRequest_t;
1738c2ecf20Sopenharmony_ci
1748c2ecf20Sopenharmony_ci/* values for PassthroughFlags field */
1758c2ecf20Sopenharmony_ci#define MPI_SATA_PT_REQ_PT_FLAGS_RESET_DEVICE   (0x0200)
1768c2ecf20Sopenharmony_ci#define MPI_SATA_PT_REQ_PT_FLAGS_EXECUTE_DIAG   (0x0100)
1778c2ecf20Sopenharmony_ci#define MPI_SATA_PT_REQ_PT_FLAGS_DMA_QUEUED     (0x0080)
1788c2ecf20Sopenharmony_ci#define MPI_SATA_PT_REQ_PT_FLAGS_PACKET_COMMAND (0x0040)
1798c2ecf20Sopenharmony_ci#define MPI_SATA_PT_REQ_PT_FLAGS_DMA            (0x0020)
1808c2ecf20Sopenharmony_ci#define MPI_SATA_PT_REQ_PT_FLAGS_PIO            (0x0010)
1818c2ecf20Sopenharmony_ci#define MPI_SATA_PT_REQ_PT_FLAGS_UNSPECIFIED_VU (0x0004)
1828c2ecf20Sopenharmony_ci#define MPI_SATA_PT_REQ_PT_FLAGS_WRITE          (0x0002)
1838c2ecf20Sopenharmony_ci#define MPI_SATA_PT_REQ_PT_FLAGS_READ           (0x0001)
1848c2ecf20Sopenharmony_ci
1858c2ecf20Sopenharmony_ci/* values for ConnectionRate field */
1868c2ecf20Sopenharmony_ci#define MPI_SATA_PT_REQ_CONNECT_RATE_NEGOTIATED (0x00)
1878c2ecf20Sopenharmony_ci#define MPI_SATA_PT_REQ_CONNECT_RATE_1_5        (0x08)
1888c2ecf20Sopenharmony_ci#define MPI_SATA_PT_REQ_CONNECT_RATE_3_0        (0x09)
1898c2ecf20Sopenharmony_ci
1908c2ecf20Sopenharmony_ci
1918c2ecf20Sopenharmony_ci/* SATA Passthrough Reply */
1928c2ecf20Sopenharmony_citypedef struct _MSG_SATA_PASSTHROUGH_REPLY
1938c2ecf20Sopenharmony_ci{
1948c2ecf20Sopenharmony_ci    U8                      TargetID;           /* 00h */
1958c2ecf20Sopenharmony_ci    U8                      Bus;                /* 01h */
1968c2ecf20Sopenharmony_ci    U8                      MsgLength;          /* 02h */
1978c2ecf20Sopenharmony_ci    U8                      Function;           /* 03h */
1988c2ecf20Sopenharmony_ci    U16                     PassthroughFlags;   /* 04h */
1998c2ecf20Sopenharmony_ci    U8                      Reserved1;          /* 06h */
2008c2ecf20Sopenharmony_ci    U8                      MsgFlags;           /* 07h */
2018c2ecf20Sopenharmony_ci    U32                     MsgContext;         /* 08h */
2028c2ecf20Sopenharmony_ci    U8                      Reserved2;          /* 0Ch */
2038c2ecf20Sopenharmony_ci    U8                      SASStatus;          /* 0Dh */
2048c2ecf20Sopenharmony_ci    U16                     IOCStatus;          /* 0Eh */
2058c2ecf20Sopenharmony_ci    U32                     IOCLogInfo;         /* 10h */
2068c2ecf20Sopenharmony_ci    U8                      StatusFIS[20];      /* 14h */
2078c2ecf20Sopenharmony_ci    U32                     StatusControlRegisters; /* 28h */
2088c2ecf20Sopenharmony_ci    U32                     TransferCount;      /* 2Ch */
2098c2ecf20Sopenharmony_ci} MSG_SATA_PASSTHROUGH_REPLY, MPI_POINTER PTR_MSG_SATA_PASSTHROUGH_REPLY,
2108c2ecf20Sopenharmony_ci  SataPassthroughReply_t, MPI_POINTER pSataPassthroughReply_t;
2118c2ecf20Sopenharmony_ci
2128c2ecf20Sopenharmony_ci
2138c2ecf20Sopenharmony_ci
2148c2ecf20Sopenharmony_ci
2158c2ecf20Sopenharmony_ci/****************************************************************************/
2168c2ecf20Sopenharmony_ci/* SAS IO Unit Control Request                                              */
2178c2ecf20Sopenharmony_ci/****************************************************************************/
2188c2ecf20Sopenharmony_ci
2198c2ecf20Sopenharmony_citypedef struct _MSG_SAS_IOUNIT_CONTROL_REQUEST
2208c2ecf20Sopenharmony_ci{
2218c2ecf20Sopenharmony_ci    U8                      Operation;          /* 00h */
2228c2ecf20Sopenharmony_ci    U8                      Reserved1;          /* 01h */
2238c2ecf20Sopenharmony_ci    U8                      ChainOffset;        /* 02h */
2248c2ecf20Sopenharmony_ci    U8                      Function;           /* 03h */
2258c2ecf20Sopenharmony_ci    U16                     DevHandle;          /* 04h */
2268c2ecf20Sopenharmony_ci    U8                      IOCParameter;       /* 06h */
2278c2ecf20Sopenharmony_ci    U8                      MsgFlags;           /* 07h */
2288c2ecf20Sopenharmony_ci    U32                     MsgContext;         /* 08h */
2298c2ecf20Sopenharmony_ci    U8                      TargetID;           /* 0Ch */
2308c2ecf20Sopenharmony_ci    U8                      Bus;                /* 0Dh */
2318c2ecf20Sopenharmony_ci    U8                      PhyNum;             /* 0Eh */
2328c2ecf20Sopenharmony_ci    U8                      PrimFlags;          /* 0Fh */
2338c2ecf20Sopenharmony_ci    U32                     Primitive;          /* 10h */
2348c2ecf20Sopenharmony_ci    U64                     SASAddress;         /* 14h */
2358c2ecf20Sopenharmony_ci    U32                     IOCParameterValue;  /* 1Ch */
2368c2ecf20Sopenharmony_ci} MSG_SAS_IOUNIT_CONTROL_REQUEST, MPI_POINTER PTR_MSG_SAS_IOUNIT_CONTROL_REQUEST,
2378c2ecf20Sopenharmony_ci  SasIoUnitControlRequest_t, MPI_POINTER pSasIoUnitControlRequest_t;
2388c2ecf20Sopenharmony_ci
2398c2ecf20Sopenharmony_ci/* values for the Operation field */
2408c2ecf20Sopenharmony_ci#define MPI_SAS_OP_CLEAR_NOT_PRESENT            (0x01)
2418c2ecf20Sopenharmony_ci#define MPI_SAS_OP_CLEAR_ALL_PERSISTENT         (0x02)
2428c2ecf20Sopenharmony_ci#define MPI_SAS_OP_PHY_LINK_RESET               (0x06)
2438c2ecf20Sopenharmony_ci#define MPI_SAS_OP_PHY_HARD_RESET               (0x07)
2448c2ecf20Sopenharmony_ci#define MPI_SAS_OP_PHY_CLEAR_ERROR_LOG          (0x08)
2458c2ecf20Sopenharmony_ci#define MPI_SAS_OP_MAP_CURRENT                  (0x09)
2468c2ecf20Sopenharmony_ci#define MPI_SAS_OP_SEND_PRIMITIVE               (0x0A)
2478c2ecf20Sopenharmony_ci#define MPI_SAS_OP_FORCE_FULL_DISCOVERY         (0x0B)
2488c2ecf20Sopenharmony_ci#define MPI_SAS_OP_TRANSMIT_PORT_SELECT_SIGNAL  (0x0C)
2498c2ecf20Sopenharmony_ci#define MPI_SAS_OP_TRANSMIT_REMOVE_DEVICE       (0x0D)  /* obsolete name */
2508c2ecf20Sopenharmony_ci#define MPI_SAS_OP_REMOVE_DEVICE                (0x0D)
2518c2ecf20Sopenharmony_ci#define MPI_SAS_OP_SET_IOC_PARAMETER            (0x0E)
2528c2ecf20Sopenharmony_ci#define MPI_SAS_OP_PRODUCT_SPECIFIC_MIN         (0x80)
2538c2ecf20Sopenharmony_ci
2548c2ecf20Sopenharmony_ci/* values for the PrimFlags field */
2558c2ecf20Sopenharmony_ci#define MPI_SAS_PRIMFLAGS_SINGLE                (0x08)
2568c2ecf20Sopenharmony_ci#define MPI_SAS_PRIMFLAGS_TRIPLE                (0x02)
2578c2ecf20Sopenharmony_ci#define MPI_SAS_PRIMFLAGS_REDUNDANT             (0x01)
2588c2ecf20Sopenharmony_ci
2598c2ecf20Sopenharmony_ci
2608c2ecf20Sopenharmony_ci/* SAS IO Unit Control Reply */
2618c2ecf20Sopenharmony_citypedef struct _MSG_SAS_IOUNIT_CONTROL_REPLY
2628c2ecf20Sopenharmony_ci{
2638c2ecf20Sopenharmony_ci    U8                      Operation;          /* 00h */
2648c2ecf20Sopenharmony_ci    U8                      Reserved1;          /* 01h */
2658c2ecf20Sopenharmony_ci    U8                      MsgLength;          /* 02h */
2668c2ecf20Sopenharmony_ci    U8                      Function;           /* 03h */
2678c2ecf20Sopenharmony_ci    U16                     DevHandle;          /* 04h */
2688c2ecf20Sopenharmony_ci    U8                      IOCParameter;       /* 06h */
2698c2ecf20Sopenharmony_ci    U8                      MsgFlags;           /* 07h */
2708c2ecf20Sopenharmony_ci    U32                     MsgContext;         /* 08h */
2718c2ecf20Sopenharmony_ci    U16                     Reserved4;          /* 0Ch */
2728c2ecf20Sopenharmony_ci    U16                     IOCStatus;          /* 0Eh */
2738c2ecf20Sopenharmony_ci    U32                     IOCLogInfo;         /* 10h */
2748c2ecf20Sopenharmony_ci} MSG_SAS_IOUNIT_CONTROL_REPLY, MPI_POINTER PTR_MSG_SAS_IOUNIT_CONTROL_REPLY,
2758c2ecf20Sopenharmony_ci  SasIoUnitControlReply_t, MPI_POINTER pSasIoUnitControlReply_t;
2768c2ecf20Sopenharmony_ci
2778c2ecf20Sopenharmony_ci#endif
2788c2ecf20Sopenharmony_ci
2798c2ecf20Sopenharmony_ci
280