18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2000-2008 LSI Corporation. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Name: mpi_fc.h 78c2ecf20Sopenharmony_ci * Title: MPI Fibre Channel messages and structures 88c2ecf20Sopenharmony_ci * Creation Date: June 12, 2000 98c2ecf20Sopenharmony_ci * 108c2ecf20Sopenharmony_ci * mpi_fc.h Version: 01.05.01 118c2ecf20Sopenharmony_ci * 128c2ecf20Sopenharmony_ci * Version History 138c2ecf20Sopenharmony_ci * --------------- 148c2ecf20Sopenharmony_ci * 158c2ecf20Sopenharmony_ci * Date Version Description 168c2ecf20Sopenharmony_ci * -------- -------- ------------------------------------------------------ 178c2ecf20Sopenharmony_ci * 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000. 188c2ecf20Sopenharmony_ci * 06-06-00 01.00.01 Update version number for 1.0 release. 198c2ecf20Sopenharmony_ci * 06-12-00 01.00.02 Added _MSG_FC_ABORT_REPLY structure. 208c2ecf20Sopenharmony_ci * 11-02-00 01.01.01 Original release for post 1.0 work 218c2ecf20Sopenharmony_ci * 12-04-00 01.01.02 Added messages for Common Transport Send and 228c2ecf20Sopenharmony_ci * Primitive Send. 238c2ecf20Sopenharmony_ci * 01-09-01 01.01.03 Modifed some of the new flags to have an MPI prefix 248c2ecf20Sopenharmony_ci * and modified the FcPrimitiveSend flags. 258c2ecf20Sopenharmony_ci * 01-25-01 01.01.04 Move InitiatorIndex in LinkServiceRsp reply to a larger 268c2ecf20Sopenharmony_ci * field. 278c2ecf20Sopenharmony_ci * Added FC_ABORT_TYPE_CT_SEND_REQUEST and 288c2ecf20Sopenharmony_ci * FC_ABORT_TYPE_EXLINKSEND_REQUEST for FcAbort request. 298c2ecf20Sopenharmony_ci * Added MPI_FC_PRIM_SEND_FLAGS_STOP_SEND. 308c2ecf20Sopenharmony_ci * 02-20-01 01.01.05 Started using MPI_POINTER. 318c2ecf20Sopenharmony_ci * 03-27-01 01.01.06 Added Flags field to MSG_LINK_SERVICE_BUFFER_POST_REPLY 328c2ecf20Sopenharmony_ci * and defined MPI_LS_BUF_POST_REPLY_FLAG_NO_RSP_NEEDED. 338c2ecf20Sopenharmony_ci * Added MPI_FC_PRIM_SEND_FLAGS_RESET_LINK define. 348c2ecf20Sopenharmony_ci * Added structure offset comments. 358c2ecf20Sopenharmony_ci * 04-09-01 01.01.07 Added RspLength field to MSG_LINK_SERVICE_RSP_REQUEST. 368c2ecf20Sopenharmony_ci * 08-08-01 01.02.01 Original release for v1.2 work. 378c2ecf20Sopenharmony_ci * 09-28-01 01.02.02 Change name of reserved field in 388c2ecf20Sopenharmony_ci * MSG_LINK_SERVICE_RSP_REPLY. 398c2ecf20Sopenharmony_ci * 05-31-02 01.02.03 Adding AliasIndex to FC Direct Access requests. 408c2ecf20Sopenharmony_ci * 01-16-04 01.02.04 Added define for MPI_FC_PRIM_SEND_FLAGS_ML_RESET_LINK. 418c2ecf20Sopenharmony_ci * 05-11-04 01.03.01 Original release for MPI v1.3. 428c2ecf20Sopenharmony_ci * 08-19-04 01.05.01 Original release for MPI v1.5. 438c2ecf20Sopenharmony_ci * -------------------------------------------------------------------------- 448c2ecf20Sopenharmony_ci */ 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci#ifndef MPI_FC_H 478c2ecf20Sopenharmony_ci#define MPI_FC_H 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ci/***************************************************************************** 518c2ecf20Sopenharmony_ci* 528c2ecf20Sopenharmony_ci* F C D i r e c t A c c e s s M e s s a g e s 538c2ecf20Sopenharmony_ci* 548c2ecf20Sopenharmony_ci*****************************************************************************/ 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci/****************************************************************************/ 578c2ecf20Sopenharmony_ci/* Link Service Buffer Post messages */ 588c2ecf20Sopenharmony_ci/****************************************************************************/ 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_citypedef struct _MSG_LINK_SERVICE_BUFFER_POST_REQUEST 618c2ecf20Sopenharmony_ci{ 628c2ecf20Sopenharmony_ci U8 BufferPostFlags; /* 00h */ 638c2ecf20Sopenharmony_ci U8 BufferCount; /* 01h */ 648c2ecf20Sopenharmony_ci U8 ChainOffset; /* 02h */ 658c2ecf20Sopenharmony_ci U8 Function; /* 03h */ 668c2ecf20Sopenharmony_ci U16 Reserved; /* 04h */ 678c2ecf20Sopenharmony_ci U8 Reserved1; /* 06h */ 688c2ecf20Sopenharmony_ci U8 MsgFlags; /* 07h */ 698c2ecf20Sopenharmony_ci U32 MsgContext; /* 08h */ 708c2ecf20Sopenharmony_ci SGE_TRANS_SIMPLE_UNION SGL; 718c2ecf20Sopenharmony_ci} MSG_LINK_SERVICE_BUFFER_POST_REQUEST, 728c2ecf20Sopenharmony_ci MPI_POINTER PTR_MSG_LINK_SERVICE_BUFFER_POST_REQUEST, 738c2ecf20Sopenharmony_ci LinkServiceBufferPostRequest_t, MPI_POINTER pLinkServiceBufferPostRequest_t; 748c2ecf20Sopenharmony_ci 758c2ecf20Sopenharmony_ci#define LINK_SERVICE_BUFFER_POST_FLAGS_PORT_MASK (0x01) 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_citypedef struct _WWNFORMAT 788c2ecf20Sopenharmony_ci{ 798c2ecf20Sopenharmony_ci U32 PortNameHigh; /* 00h */ 808c2ecf20Sopenharmony_ci U32 PortNameLow; /* 04h */ 818c2ecf20Sopenharmony_ci U32 NodeNameHigh; /* 08h */ 828c2ecf20Sopenharmony_ci U32 NodeNameLow; /* 0Ch */ 838c2ecf20Sopenharmony_ci} WWNFORMAT, 848c2ecf20Sopenharmony_ci WwnFormat_t; 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_ci/* Link Service Buffer Post Reply */ 878c2ecf20Sopenharmony_citypedef struct _MSG_LINK_SERVICE_BUFFER_POST_REPLY 888c2ecf20Sopenharmony_ci{ 898c2ecf20Sopenharmony_ci U8 Flags; /* 00h */ 908c2ecf20Sopenharmony_ci U8 Reserved; /* 01h */ 918c2ecf20Sopenharmony_ci U8 MsgLength; /* 02h */ 928c2ecf20Sopenharmony_ci U8 Function; /* 03h */ 938c2ecf20Sopenharmony_ci U16 Reserved1; /* 04h */ 948c2ecf20Sopenharmony_ci U8 PortNumber; /* 06h */ 958c2ecf20Sopenharmony_ci U8 MsgFlags; /* 07h */ 968c2ecf20Sopenharmony_ci U32 MsgContext; /* 08h */ 978c2ecf20Sopenharmony_ci U16 Reserved2; /* 0Ch */ 988c2ecf20Sopenharmony_ci U16 IOCStatus; /* 0Eh */ 998c2ecf20Sopenharmony_ci U32 IOCLogInfo; /* 10h */ 1008c2ecf20Sopenharmony_ci U32 TransferLength; /* 14h */ 1018c2ecf20Sopenharmony_ci U32 TransactionContext; /* 18h */ 1028c2ecf20Sopenharmony_ci U32 Rctl_Did; /* 1Ch */ 1038c2ecf20Sopenharmony_ci U32 Csctl_Sid; /* 20h */ 1048c2ecf20Sopenharmony_ci U32 Type_Fctl; /* 24h */ 1058c2ecf20Sopenharmony_ci U16 SeqCnt; /* 28h */ 1068c2ecf20Sopenharmony_ci U8 Dfctl; /* 2Ah */ 1078c2ecf20Sopenharmony_ci U8 SeqId; /* 2Bh */ 1088c2ecf20Sopenharmony_ci U16 Rxid; /* 2Ch */ 1098c2ecf20Sopenharmony_ci U16 Oxid; /* 2Eh */ 1108c2ecf20Sopenharmony_ci U32 Parameter; /* 30h */ 1118c2ecf20Sopenharmony_ci WWNFORMAT Wwn; /* 34h */ 1128c2ecf20Sopenharmony_ci} MSG_LINK_SERVICE_BUFFER_POST_REPLY, MPI_POINTER PTR_MSG_LINK_SERVICE_BUFFER_POST_REPLY, 1138c2ecf20Sopenharmony_ci LinkServiceBufferPostReply_t, MPI_POINTER pLinkServiceBufferPostReply_t; 1148c2ecf20Sopenharmony_ci 1158c2ecf20Sopenharmony_ci#define MPI_LS_BUF_POST_REPLY_FLAG_NO_RSP_NEEDED (0x80) 1168c2ecf20Sopenharmony_ci 1178c2ecf20Sopenharmony_ci#define MPI_FC_DID_MASK (0x00FFFFFF) 1188c2ecf20Sopenharmony_ci#define MPI_FC_DID_SHIFT (0) 1198c2ecf20Sopenharmony_ci#define MPI_FC_RCTL_MASK (0xFF000000) 1208c2ecf20Sopenharmony_ci#define MPI_FC_RCTL_SHIFT (24) 1218c2ecf20Sopenharmony_ci#define MPI_FC_SID_MASK (0x00FFFFFF) 1228c2ecf20Sopenharmony_ci#define MPI_FC_SID_SHIFT (0) 1238c2ecf20Sopenharmony_ci#define MPI_FC_CSCTL_MASK (0xFF000000) 1248c2ecf20Sopenharmony_ci#define MPI_FC_CSCTL_SHIFT (24) 1258c2ecf20Sopenharmony_ci#define MPI_FC_FCTL_MASK (0x00FFFFFF) 1268c2ecf20Sopenharmony_ci#define MPI_FC_FCTL_SHIFT (0) 1278c2ecf20Sopenharmony_ci#define MPI_FC_TYPE_MASK (0xFF000000) 1288c2ecf20Sopenharmony_ci#define MPI_FC_TYPE_SHIFT (24) 1298c2ecf20Sopenharmony_ci 1308c2ecf20Sopenharmony_ci/* obsolete name for the above */ 1318c2ecf20Sopenharmony_ci#define FCP_TARGET_DID_MASK (0x00FFFFFF) 1328c2ecf20Sopenharmony_ci#define FCP_TARGET_DID_SHIFT (0) 1338c2ecf20Sopenharmony_ci#define FCP_TARGET_RCTL_MASK (0xFF000000) 1348c2ecf20Sopenharmony_ci#define FCP_TARGET_RCTL_SHIFT (24) 1358c2ecf20Sopenharmony_ci#define FCP_TARGET_SID_MASK (0x00FFFFFF) 1368c2ecf20Sopenharmony_ci#define FCP_TARGET_SID_SHIFT (0) 1378c2ecf20Sopenharmony_ci#define FCP_TARGET_CSCTL_MASK (0xFF000000) 1388c2ecf20Sopenharmony_ci#define FCP_TARGET_CSCTL_SHIFT (24) 1398c2ecf20Sopenharmony_ci#define FCP_TARGET_FCTL_MASK (0x00FFFFFF) 1408c2ecf20Sopenharmony_ci#define FCP_TARGET_FCTL_SHIFT (0) 1418c2ecf20Sopenharmony_ci#define FCP_TARGET_TYPE_MASK (0xFF000000) 1428c2ecf20Sopenharmony_ci#define FCP_TARGET_TYPE_SHIFT (24) 1438c2ecf20Sopenharmony_ci 1448c2ecf20Sopenharmony_ci 1458c2ecf20Sopenharmony_ci/****************************************************************************/ 1468c2ecf20Sopenharmony_ci/* Link Service Response messages */ 1478c2ecf20Sopenharmony_ci/****************************************************************************/ 1488c2ecf20Sopenharmony_ci 1498c2ecf20Sopenharmony_citypedef struct _MSG_LINK_SERVICE_RSP_REQUEST 1508c2ecf20Sopenharmony_ci{ 1518c2ecf20Sopenharmony_ci U8 RspFlags; /* 00h */ 1528c2ecf20Sopenharmony_ci U8 RspLength; /* 01h */ 1538c2ecf20Sopenharmony_ci U8 ChainOffset; /* 02h */ 1548c2ecf20Sopenharmony_ci U8 Function; /* 03h */ 1558c2ecf20Sopenharmony_ci U16 Reserved1; /* 04h */ 1568c2ecf20Sopenharmony_ci U8 Reserved2; /* 06h */ 1578c2ecf20Sopenharmony_ci U8 MsgFlags; /* 07h */ 1588c2ecf20Sopenharmony_ci U32 MsgContext; /* 08h */ 1598c2ecf20Sopenharmony_ci U32 Rctl_Did; /* 0Ch */ 1608c2ecf20Sopenharmony_ci U32 Csctl_Sid; /* 10h */ 1618c2ecf20Sopenharmony_ci U32 Type_Fctl; /* 14h */ 1628c2ecf20Sopenharmony_ci U16 SeqCnt; /* 18h */ 1638c2ecf20Sopenharmony_ci U8 Dfctl; /* 1Ah */ 1648c2ecf20Sopenharmony_ci U8 SeqId; /* 1Bh */ 1658c2ecf20Sopenharmony_ci U16 Rxid; /* 1Ch */ 1668c2ecf20Sopenharmony_ci U16 Oxid; /* 1Eh */ 1678c2ecf20Sopenharmony_ci U32 Parameter; /* 20h */ 1688c2ecf20Sopenharmony_ci SGE_SIMPLE_UNION SGL; /* 24h */ 1698c2ecf20Sopenharmony_ci} MSG_LINK_SERVICE_RSP_REQUEST, MPI_POINTER PTR_MSG_LINK_SERVICE_RSP_REQUEST, 1708c2ecf20Sopenharmony_ci LinkServiceRspRequest_t, MPI_POINTER pLinkServiceRspRequest_t; 1718c2ecf20Sopenharmony_ci 1728c2ecf20Sopenharmony_ci#define LINK_SERVICE_RSP_FLAGS_IMMEDIATE (0x80) 1738c2ecf20Sopenharmony_ci#define LINK_SERVICE_RSP_FLAGS_PORT_MASK (0x01) 1748c2ecf20Sopenharmony_ci 1758c2ecf20Sopenharmony_ci 1768c2ecf20Sopenharmony_ci/* Link Service Response Reply */ 1778c2ecf20Sopenharmony_citypedef struct _MSG_LINK_SERVICE_RSP_REPLY 1788c2ecf20Sopenharmony_ci{ 1798c2ecf20Sopenharmony_ci U16 Reserved; /* 00h */ 1808c2ecf20Sopenharmony_ci U8 MsgLength; /* 02h */ 1818c2ecf20Sopenharmony_ci U8 Function; /* 03h */ 1828c2ecf20Sopenharmony_ci U16 Reserved1; /* 04h */ 1838c2ecf20Sopenharmony_ci U8 Reserved_0100_InitiatorIndex; /* 06h */ /* obsolete InitiatorIndex */ 1848c2ecf20Sopenharmony_ci U8 MsgFlags; /* 07h */ 1858c2ecf20Sopenharmony_ci U32 MsgContext; /* 08h */ 1868c2ecf20Sopenharmony_ci U16 Reserved3; /* 0Ch */ 1878c2ecf20Sopenharmony_ci U16 IOCStatus; /* 0Eh */ 1888c2ecf20Sopenharmony_ci U32 IOCLogInfo; /* 10h */ 1898c2ecf20Sopenharmony_ci U32 InitiatorIndex; /* 14h */ 1908c2ecf20Sopenharmony_ci} MSG_LINK_SERVICE_RSP_REPLY, MPI_POINTER PTR_MSG_LINK_SERVICE_RSP_REPLY, 1918c2ecf20Sopenharmony_ci LinkServiceRspReply_t, MPI_POINTER pLinkServiceRspReply_t; 1928c2ecf20Sopenharmony_ci 1938c2ecf20Sopenharmony_ci 1948c2ecf20Sopenharmony_ci/****************************************************************************/ 1958c2ecf20Sopenharmony_ci/* Extended Link Service Send messages */ 1968c2ecf20Sopenharmony_ci/****************************************************************************/ 1978c2ecf20Sopenharmony_ci 1988c2ecf20Sopenharmony_citypedef struct _MSG_EXLINK_SERVICE_SEND_REQUEST 1998c2ecf20Sopenharmony_ci{ 2008c2ecf20Sopenharmony_ci U8 SendFlags; /* 00h */ 2018c2ecf20Sopenharmony_ci U8 AliasIndex; /* 01h */ 2028c2ecf20Sopenharmony_ci U8 ChainOffset; /* 02h */ 2038c2ecf20Sopenharmony_ci U8 Function; /* 03h */ 2048c2ecf20Sopenharmony_ci U32 MsgFlags_Did; /* 04h */ 2058c2ecf20Sopenharmony_ci U32 MsgContext; /* 08h */ 2068c2ecf20Sopenharmony_ci U32 ElsCommandCode; /* 0Ch */ 2078c2ecf20Sopenharmony_ci SGE_SIMPLE_UNION SGL; /* 10h */ 2088c2ecf20Sopenharmony_ci} MSG_EXLINK_SERVICE_SEND_REQUEST, MPI_POINTER PTR_MSG_EXLINK_SERVICE_SEND_REQUEST, 2098c2ecf20Sopenharmony_ci ExLinkServiceSendRequest_t, MPI_POINTER pExLinkServiceSendRequest_t; 2108c2ecf20Sopenharmony_ci 2118c2ecf20Sopenharmony_ci#define EX_LINK_SERVICE_SEND_DID_MASK (0x00FFFFFF) 2128c2ecf20Sopenharmony_ci#define EX_LINK_SERVICE_SEND_DID_SHIFT (0) 2138c2ecf20Sopenharmony_ci#define EX_LINK_SERVICE_SEND_MSGFLAGS_MASK (0xFF000000) 2148c2ecf20Sopenharmony_ci#define EX_LINK_SERVICE_SEND_MSGFLAGS_SHIFT (24) 2158c2ecf20Sopenharmony_ci 2168c2ecf20Sopenharmony_ci 2178c2ecf20Sopenharmony_ci/* Extended Link Service Send Reply */ 2188c2ecf20Sopenharmony_citypedef struct _MSG_EXLINK_SERVICE_SEND_REPLY 2198c2ecf20Sopenharmony_ci{ 2208c2ecf20Sopenharmony_ci U8 Reserved; /* 00h */ 2218c2ecf20Sopenharmony_ci U8 AliasIndex; /* 01h */ 2228c2ecf20Sopenharmony_ci U8 MsgLength; /* 02h */ 2238c2ecf20Sopenharmony_ci U8 Function; /* 03h */ 2248c2ecf20Sopenharmony_ci U16 Reserved1; /* 04h */ 2258c2ecf20Sopenharmony_ci U8 Reserved2; /* 06h */ 2268c2ecf20Sopenharmony_ci U8 MsgFlags; /* 07h */ 2278c2ecf20Sopenharmony_ci U32 MsgContext; /* 08h */ 2288c2ecf20Sopenharmony_ci U16 Reserved3; /* 0Ch */ 2298c2ecf20Sopenharmony_ci U16 IOCStatus; /* 0Eh */ 2308c2ecf20Sopenharmony_ci U32 IOCLogInfo; /* 10h */ 2318c2ecf20Sopenharmony_ci U32 ResponseLength; /* 14h */ 2328c2ecf20Sopenharmony_ci} MSG_EXLINK_SERVICE_SEND_REPLY, MPI_POINTER PTR_MSG_EXLINK_SERVICE_SEND_REPLY, 2338c2ecf20Sopenharmony_ci ExLinkServiceSendReply_t, MPI_POINTER pExLinkServiceSendReply_t; 2348c2ecf20Sopenharmony_ci 2358c2ecf20Sopenharmony_ci/****************************************************************************/ 2368c2ecf20Sopenharmony_ci/* FC Abort messages */ 2378c2ecf20Sopenharmony_ci/****************************************************************************/ 2388c2ecf20Sopenharmony_ci 2398c2ecf20Sopenharmony_citypedef struct _MSG_FC_ABORT_REQUEST 2408c2ecf20Sopenharmony_ci{ 2418c2ecf20Sopenharmony_ci U8 AbortFlags; /* 00h */ 2428c2ecf20Sopenharmony_ci U8 AbortType; /* 01h */ 2438c2ecf20Sopenharmony_ci U8 ChainOffset; /* 02h */ 2448c2ecf20Sopenharmony_ci U8 Function; /* 03h */ 2458c2ecf20Sopenharmony_ci U16 Reserved1; /* 04h */ 2468c2ecf20Sopenharmony_ci U8 Reserved2; /* 06h */ 2478c2ecf20Sopenharmony_ci U8 MsgFlags; /* 07h */ 2488c2ecf20Sopenharmony_ci U32 MsgContext; /* 08h */ 2498c2ecf20Sopenharmony_ci U32 TransactionContextToAbort; /* 0Ch */ 2508c2ecf20Sopenharmony_ci} MSG_FC_ABORT_REQUEST, MPI_POINTER PTR_MSG_FC_ABORT_REQUEST, 2518c2ecf20Sopenharmony_ci FcAbortRequest_t, MPI_POINTER pFcAbortRequest_t; 2528c2ecf20Sopenharmony_ci 2538c2ecf20Sopenharmony_ci#define FC_ABORT_FLAG_PORT_MASK (0x01) 2548c2ecf20Sopenharmony_ci 2558c2ecf20Sopenharmony_ci#define FC_ABORT_TYPE_ALL_FC_BUFFERS (0x00) 2568c2ecf20Sopenharmony_ci#define FC_ABORT_TYPE_EXACT_FC_BUFFER (0x01) 2578c2ecf20Sopenharmony_ci#define FC_ABORT_TYPE_CT_SEND_REQUEST (0x02) 2588c2ecf20Sopenharmony_ci#define FC_ABORT_TYPE_EXLINKSEND_REQUEST (0x03) 2598c2ecf20Sopenharmony_ci 2608c2ecf20Sopenharmony_ci/* FC Abort Reply */ 2618c2ecf20Sopenharmony_citypedef struct _MSG_FC_ABORT_REPLY 2628c2ecf20Sopenharmony_ci{ 2638c2ecf20Sopenharmony_ci U16 Reserved; /* 00h */ 2648c2ecf20Sopenharmony_ci U8 MsgLength; /* 02h */ 2658c2ecf20Sopenharmony_ci U8 Function; /* 03h */ 2668c2ecf20Sopenharmony_ci U16 Reserved1; /* 04h */ 2678c2ecf20Sopenharmony_ci U8 Reserved2; /* 06h */ 2688c2ecf20Sopenharmony_ci U8 MsgFlags; /* 07h */ 2698c2ecf20Sopenharmony_ci U32 MsgContext; /* 08h */ 2708c2ecf20Sopenharmony_ci U16 Reserved3; /* 0Ch */ 2718c2ecf20Sopenharmony_ci U16 IOCStatus; /* 0Eh */ 2728c2ecf20Sopenharmony_ci U32 IOCLogInfo; /* 10h */ 2738c2ecf20Sopenharmony_ci} MSG_FC_ABORT_REPLY, MPI_POINTER PTR_MSG_FC_ABORT_REPLY, 2748c2ecf20Sopenharmony_ci FcAbortReply_t, MPI_POINTER pFcAbortReply_t; 2758c2ecf20Sopenharmony_ci 2768c2ecf20Sopenharmony_ci 2778c2ecf20Sopenharmony_ci/****************************************************************************/ 2788c2ecf20Sopenharmony_ci/* FC Common Transport Send messages */ 2798c2ecf20Sopenharmony_ci/****************************************************************************/ 2808c2ecf20Sopenharmony_ci 2818c2ecf20Sopenharmony_citypedef struct _MSG_FC_COMMON_TRANSPORT_SEND_REQUEST 2828c2ecf20Sopenharmony_ci{ 2838c2ecf20Sopenharmony_ci U8 SendFlags; /* 00h */ 2848c2ecf20Sopenharmony_ci U8 AliasIndex; /* 01h */ 2858c2ecf20Sopenharmony_ci U8 ChainOffset; /* 02h */ 2868c2ecf20Sopenharmony_ci U8 Function; /* 03h */ 2878c2ecf20Sopenharmony_ci U32 MsgFlags_Did; /* 04h */ 2888c2ecf20Sopenharmony_ci U32 MsgContext; /* 08h */ 2898c2ecf20Sopenharmony_ci U16 CTCommandCode; /* 0Ch */ 2908c2ecf20Sopenharmony_ci U8 FsType; /* 0Eh */ 2918c2ecf20Sopenharmony_ci U8 Reserved1; /* 0Fh */ 2928c2ecf20Sopenharmony_ci SGE_SIMPLE_UNION SGL; /* 10h */ 2938c2ecf20Sopenharmony_ci} MSG_FC_COMMON_TRANSPORT_SEND_REQUEST, 2948c2ecf20Sopenharmony_ci MPI_POINTER PTR_MSG_FC_COMMON_TRANSPORT_SEND_REQUEST, 2958c2ecf20Sopenharmony_ci FcCommonTransportSendRequest_t, MPI_POINTER pFcCommonTransportSendRequest_t; 2968c2ecf20Sopenharmony_ci 2978c2ecf20Sopenharmony_ci#define MPI_FC_CT_SEND_DID_MASK (0x00FFFFFF) 2988c2ecf20Sopenharmony_ci#define MPI_FC_CT_SEND_DID_SHIFT (0) 2998c2ecf20Sopenharmony_ci#define MPI_FC_CT_SEND_MSGFLAGS_MASK (0xFF000000) 3008c2ecf20Sopenharmony_ci#define MPI_FC_CT_SEND_MSGFLAGS_SHIFT (24) 3018c2ecf20Sopenharmony_ci 3028c2ecf20Sopenharmony_ci 3038c2ecf20Sopenharmony_ci/* FC Common Transport Send Reply */ 3048c2ecf20Sopenharmony_citypedef struct _MSG_FC_COMMON_TRANSPORT_SEND_REPLY 3058c2ecf20Sopenharmony_ci{ 3068c2ecf20Sopenharmony_ci U8 Reserved; /* 00h */ 3078c2ecf20Sopenharmony_ci U8 AliasIndex; /* 01h */ 3088c2ecf20Sopenharmony_ci U8 MsgLength; /* 02h */ 3098c2ecf20Sopenharmony_ci U8 Function; /* 03h */ 3108c2ecf20Sopenharmony_ci U16 Reserved1; /* 04h */ 3118c2ecf20Sopenharmony_ci U8 Reserved2; /* 06h */ 3128c2ecf20Sopenharmony_ci U8 MsgFlags; /* 07h */ 3138c2ecf20Sopenharmony_ci U32 MsgContext; /* 08h */ 3148c2ecf20Sopenharmony_ci U16 Reserved3; /* 0Ch */ 3158c2ecf20Sopenharmony_ci U16 IOCStatus; /* 0Eh */ 3168c2ecf20Sopenharmony_ci U32 IOCLogInfo; /* 10h */ 3178c2ecf20Sopenharmony_ci U32 ResponseLength; /* 14h */ 3188c2ecf20Sopenharmony_ci} MSG_FC_COMMON_TRANSPORT_SEND_REPLY, MPI_POINTER PTR_MSG_FC_COMMON_TRANSPORT_SEND_REPLY, 3198c2ecf20Sopenharmony_ci FcCommonTransportSendReply_t, MPI_POINTER pFcCommonTransportSendReply_t; 3208c2ecf20Sopenharmony_ci 3218c2ecf20Sopenharmony_ci 3228c2ecf20Sopenharmony_ci/****************************************************************************/ 3238c2ecf20Sopenharmony_ci/* FC Primitive Send messages */ 3248c2ecf20Sopenharmony_ci/****************************************************************************/ 3258c2ecf20Sopenharmony_ci 3268c2ecf20Sopenharmony_citypedef struct _MSG_FC_PRIMITIVE_SEND_REQUEST 3278c2ecf20Sopenharmony_ci{ 3288c2ecf20Sopenharmony_ci U8 SendFlags; /* 00h */ 3298c2ecf20Sopenharmony_ci U8 Reserved; /* 01h */ 3308c2ecf20Sopenharmony_ci U8 ChainOffset; /* 02h */ 3318c2ecf20Sopenharmony_ci U8 Function; /* 03h */ 3328c2ecf20Sopenharmony_ci U16 Reserved1; /* 04h */ 3338c2ecf20Sopenharmony_ci U8 Reserved2; /* 06h */ 3348c2ecf20Sopenharmony_ci U8 MsgFlags; /* 07h */ 3358c2ecf20Sopenharmony_ci U32 MsgContext; /* 08h */ 3368c2ecf20Sopenharmony_ci U8 FcPrimitive[4]; /* 0Ch */ 3378c2ecf20Sopenharmony_ci} MSG_FC_PRIMITIVE_SEND_REQUEST, MPI_POINTER PTR_MSG_FC_PRIMITIVE_SEND_REQUEST, 3388c2ecf20Sopenharmony_ci FcPrimitiveSendRequest_t, MPI_POINTER pFcPrimitiveSendRequest_t; 3398c2ecf20Sopenharmony_ci 3408c2ecf20Sopenharmony_ci#define MPI_FC_PRIM_SEND_FLAGS_PORT_MASK (0x01) 3418c2ecf20Sopenharmony_ci#define MPI_FC_PRIM_SEND_FLAGS_ML_RESET_LINK (0x02) 3428c2ecf20Sopenharmony_ci#define MPI_FC_PRIM_SEND_FLAGS_RESET_LINK (0x04) 3438c2ecf20Sopenharmony_ci#define MPI_FC_PRIM_SEND_FLAGS_STOP_SEND (0x08) 3448c2ecf20Sopenharmony_ci#define MPI_FC_PRIM_SEND_FLAGS_SEND_ONCE (0x10) 3458c2ecf20Sopenharmony_ci#define MPI_FC_PRIM_SEND_FLAGS_SEND_AROUND (0x20) 3468c2ecf20Sopenharmony_ci#define MPI_FC_PRIM_SEND_FLAGS_UNTIL_FULL (0x40) 3478c2ecf20Sopenharmony_ci#define MPI_FC_PRIM_SEND_FLAGS_FOREVER (0x80) 3488c2ecf20Sopenharmony_ci 3498c2ecf20Sopenharmony_ci/* FC Primitive Send Reply */ 3508c2ecf20Sopenharmony_citypedef struct _MSG_FC_PRIMITIVE_SEND_REPLY 3518c2ecf20Sopenharmony_ci{ 3528c2ecf20Sopenharmony_ci U8 SendFlags; /* 00h */ 3538c2ecf20Sopenharmony_ci U8 Reserved; /* 01h */ 3548c2ecf20Sopenharmony_ci U8 MsgLength; /* 02h */ 3558c2ecf20Sopenharmony_ci U8 Function; /* 03h */ 3568c2ecf20Sopenharmony_ci U16 Reserved1; /* 04h */ 3578c2ecf20Sopenharmony_ci U8 Reserved2; /* 06h */ 3588c2ecf20Sopenharmony_ci U8 MsgFlags; /* 07h */ 3598c2ecf20Sopenharmony_ci U32 MsgContext; /* 08h */ 3608c2ecf20Sopenharmony_ci U16 Reserved3; /* 0Ch */ 3618c2ecf20Sopenharmony_ci U16 IOCStatus; /* 0Eh */ 3628c2ecf20Sopenharmony_ci U32 IOCLogInfo; /* 10h */ 3638c2ecf20Sopenharmony_ci} MSG_FC_PRIMITIVE_SEND_REPLY, MPI_POINTER PTR_MSG_FC_PRIMITIVE_SEND_REPLY, 3648c2ecf20Sopenharmony_ci FcPrimitiveSendReply_t, MPI_POINTER pFcPrimitiveSendReply_t; 3658c2ecf20Sopenharmony_ci 3668c2ecf20Sopenharmony_ci#endif 3678c2ecf20Sopenharmony_ci 368