xref: /freebsd/sys/dev/mpt/mpilib/mpi_fc.h (revision 71625ec9)
1098ca2bdSWarner Losh /*-
27282444bSPedro F. Giffuni  * SPDX-License-Identifier: BSD-3-Clause
37282444bSPedro F. Giffuni  *
412af29abSMarius Strobl  * Copyright (c) 2000-2010, LSI Logic Corporation and its contributors.
5b0a2fdeeSScott Long  * All rights reserved.
6d3ecac66SMatt Jacob  *
7d3ecac66SMatt Jacob  * Redistribution and use in source and binary forms, with or without
8b0a2fdeeSScott Long  * modification, are permitted provided that the following conditions are
9b0a2fdeeSScott Long  * met:
10d3ecac66SMatt Jacob  * 1. Redistributions of source code must retain the above copyright
11b0a2fdeeSScott Long  *    notice, this list of conditions and the following disclaimer.
12b0a2fdeeSScott Long  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
13b0a2fdeeSScott Long  *    substantially similar to the "NO WARRANTY" disclaimer below
14b0a2fdeeSScott Long  *    ("Disclaimer") and any redistribution must be conditioned upon including
15b0a2fdeeSScott Long  *    a substantially similar Disclaimer requirement for further binary
16b0a2fdeeSScott Long  *    redistribution.
17b0a2fdeeSScott Long  * 3. Neither the name of the LSI Logic Corporation nor the names of its
18b0a2fdeeSScott Long  *    contributors may be used to endorse or promote products derived from
19b0a2fdeeSScott Long  *    this software without specific prior written permission.
20d3ecac66SMatt Jacob  *
21b0a2fdeeSScott Long  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22b0a2fdeeSScott Long  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23d3ecac66SMatt Jacob  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24b0a2fdeeSScott Long  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
25b0a2fdeeSScott Long  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26b0a2fdeeSScott Long  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27b0a2fdeeSScott Long  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28b0a2fdeeSScott Long  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29b0a2fdeeSScott Long  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30b0a2fdeeSScott Long  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF THE COPYRIGHT
31b0a2fdeeSScott Long  * OWNER OR CONTRIBUTOR IS ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
329b631363SMatt Jacob  *
339b631363SMatt Jacob  *
349de3c85cSMatt Jacob  *           Name:  mpi_fc.h
359b631363SMatt Jacob  *          Title:  MPI Fibre Channel messages and structures
369b631363SMatt Jacob  *  Creation Date:  June 12, 2000
379b631363SMatt Jacob  *
389de3c85cSMatt Jacob  *    mpi_fc.h Version:  01.05.01
399b631363SMatt Jacob  *
409b631363SMatt Jacob  *  Version History
419b631363SMatt Jacob  *  ---------------
429b631363SMatt Jacob  *
439b631363SMatt Jacob  *  Date      Version   Description
449b631363SMatt Jacob  *  --------  --------  ------------------------------------------------------
459b631363SMatt Jacob  *  05-08-00  00.10.01  Original release for 0.10 spec dated 4/26/2000.
469b631363SMatt Jacob  *  06-06-00  01.00.01  Update version number for 1.0 release.
479b631363SMatt Jacob  *  06-12-00  01.00.02  Added _MSG_FC_ABORT_REPLY structure.
489b631363SMatt Jacob  *  11-02-00  01.01.01  Original release for post 1.0 work
499b631363SMatt Jacob  *  12-04-00  01.01.02  Added messages for Common Transport Send and
509b631363SMatt Jacob  *                      Primitive Send.
519b631363SMatt Jacob  *  01-09-01  01.01.03  Modifed some of the new flags to have an MPI prefix
529b631363SMatt Jacob  *                      and modified the FcPrimitiveSend flags.
539b631363SMatt Jacob  *  01-25-01  01.01.04  Move InitiatorIndex in LinkServiceRsp reply to a larger
549b631363SMatt Jacob  *                      field.
559b631363SMatt Jacob  *                      Added FC_ABORT_TYPE_CT_SEND_REQUEST and
569b631363SMatt Jacob  *                      FC_ABORT_TYPE_EXLINKSEND_REQUEST for FcAbort request.
579b631363SMatt Jacob  *                      Added MPI_FC_PRIM_SEND_FLAGS_STOP_SEND.
589b631363SMatt Jacob  *  02-20-01  01.01.05  Started using MPI_POINTER.
599b631363SMatt Jacob  *  03-27-01  01.01.06  Added Flags field to MSG_LINK_SERVICE_BUFFER_POST_REPLY
609b631363SMatt Jacob  *                      and defined MPI_LS_BUF_POST_REPLY_FLAG_NO_RSP_NEEDED.
619b631363SMatt Jacob  *                      Added MPI_FC_PRIM_SEND_FLAGS_RESET_LINK define.
629b631363SMatt Jacob  *                      Added structure offset comments.
639b631363SMatt Jacob  *  04-09-01  01.01.07  Added RspLength field to MSG_LINK_SERVICE_RSP_REQUEST.
649b631363SMatt Jacob  *  08-08-01  01.02.01  Original release for v1.2 work.
659b631363SMatt Jacob  *  09-28-01  01.02.02  Change name of reserved field in
669b631363SMatt Jacob  *                      MSG_LINK_SERVICE_RSP_REPLY.
67b0a2fdeeSScott Long  *  05-31-02  01.02.03  Adding AliasIndex to FC Direct Access requests.
68b0a2fdeeSScott Long  *  01-16-04  01.02.04  Added define for MPI_FC_PRIM_SEND_FLAGS_ML_RESET_LINK.
699de3c85cSMatt Jacob  *  05-11-04  01.03.01  Original release for MPI v1.3.
709de3c85cSMatt Jacob  *  08-19-04  01.05.01  Original release for MPI v1.5.
719b631363SMatt Jacob  *  --------------------------------------------------------------------------
729b631363SMatt Jacob  */
739b631363SMatt Jacob 
749b631363SMatt Jacob #ifndef MPI_FC_H
759b631363SMatt Jacob #define MPI_FC_H
769b631363SMatt Jacob 
779b631363SMatt Jacob /*****************************************************************************
789b631363SMatt Jacob *
799de3c85cSMatt Jacob *        F C    D i r e c t    A c c e s s     M e s s a g e s
809b631363SMatt Jacob *
819b631363SMatt Jacob *****************************************************************************/
829b631363SMatt Jacob 
839b631363SMatt Jacob /****************************************************************************/
849b631363SMatt Jacob /* Link Service Buffer Post messages                                        */
859b631363SMatt Jacob /****************************************************************************/
869b631363SMatt Jacob 
879b631363SMatt Jacob typedef struct _MSG_LINK_SERVICE_BUFFER_POST_REQUEST
889b631363SMatt Jacob {
899b631363SMatt Jacob     U8                      BufferPostFlags;    /* 00h */
909b631363SMatt Jacob     U8                      BufferCount;        /* 01h */
919b631363SMatt Jacob     U8                      ChainOffset;        /* 02h */
929b631363SMatt Jacob     U8                      Function;           /* 03h */
939b631363SMatt Jacob     U16                     Reserved;           /* 04h */
949b631363SMatt Jacob     U8                      Reserved1;          /* 06h */
959b631363SMatt Jacob     U8                      MsgFlags;           /* 07h */
969b631363SMatt Jacob     U32                     MsgContext;         /* 08h */
979b631363SMatt Jacob     SGE_TRANS_SIMPLE_UNION  SGL;
989b631363SMatt Jacob } MSG_LINK_SERVICE_BUFFER_POST_REQUEST,
999b631363SMatt Jacob  MPI_POINTER PTR_MSG_LINK_SERVICE_BUFFER_POST_REQUEST,
1009b631363SMatt Jacob   LinkServiceBufferPostRequest_t, MPI_POINTER pLinkServiceBufferPostRequest_t;
1019b631363SMatt Jacob 
1029b631363SMatt Jacob #define LINK_SERVICE_BUFFER_POST_FLAGS_PORT_MASK (0x01)
1039b631363SMatt Jacob 
1049b631363SMatt Jacob typedef struct _WWNFORMAT
1059b631363SMatt Jacob {
1069b631363SMatt Jacob     U32                     PortNameHigh;       /* 00h */
1079b631363SMatt Jacob     U32                     PortNameLow;        /* 04h */
1089b631363SMatt Jacob     U32                     NodeNameHigh;       /* 08h */
1099b631363SMatt Jacob     U32                     NodeNameLow;        /* 0Ch */
1109b631363SMatt Jacob } WWNFORMAT,
1119b631363SMatt Jacob   WwnFormat_t;
1129b631363SMatt Jacob 
1139b631363SMatt Jacob /* Link Service Buffer Post Reply */
1149b631363SMatt Jacob typedef struct _MSG_LINK_SERVICE_BUFFER_POST_REPLY
1159b631363SMatt Jacob {
1169b631363SMatt Jacob     U8                      Flags;              /* 00h */
1179b631363SMatt Jacob     U8                      Reserved;           /* 01h */
1189b631363SMatt Jacob     U8                      MsgLength;          /* 02h */
1199b631363SMatt Jacob     U8                      Function;           /* 03h */
1209b631363SMatt Jacob     U16                     Reserved1;          /* 04h */
1219b631363SMatt Jacob     U8                      PortNumber;         /* 06h */
1229b631363SMatt Jacob     U8                      MsgFlags;           /* 07h */
1239b631363SMatt Jacob     U32                     MsgContext;         /* 08h */
1249b631363SMatt Jacob     U16                     Reserved2;          /* 0Ch */
1259b631363SMatt Jacob     U16                     IOCStatus;          /* 0Eh */
1269b631363SMatt Jacob     U32                     IOCLogInfo;         /* 10h */
1279b631363SMatt Jacob     U32                     TransferLength;     /* 14h */
1289b631363SMatt Jacob     U32                     TransactionContext; /* 18h */
1299b631363SMatt Jacob     U32                     Rctl_Did;           /* 1Ch */
1309b631363SMatt Jacob     U32                     Csctl_Sid;          /* 20h */
1319b631363SMatt Jacob     U32                     Type_Fctl;          /* 24h */
1329b631363SMatt Jacob     U16                     SeqCnt;             /* 28h */
1339b631363SMatt Jacob     U8                      Dfctl;              /* 2Ah */
1349b631363SMatt Jacob     U8                      SeqId;              /* 2Bh */
1359b631363SMatt Jacob     U16                     Rxid;               /* 2Ch */
1369b631363SMatt Jacob     U16                     Oxid;               /* 2Eh */
1379b631363SMatt Jacob     U32                     Parameter;          /* 30h */
1389b631363SMatt Jacob     WWNFORMAT               Wwn;                /* 34h */
1399b631363SMatt Jacob } MSG_LINK_SERVICE_BUFFER_POST_REPLY, MPI_POINTER PTR_MSG_LINK_SERVICE_BUFFER_POST_REPLY,
1409b631363SMatt Jacob   LinkServiceBufferPostReply_t, MPI_POINTER pLinkServiceBufferPostReply_t;
1419b631363SMatt Jacob 
1429b631363SMatt Jacob #define MPI_LS_BUF_POST_REPLY_FLAG_NO_RSP_NEEDED    (0x80)
1439b631363SMatt Jacob 
1449b631363SMatt Jacob #define MPI_FC_DID_MASK                             (0x00FFFFFF)
1459b631363SMatt Jacob #define MPI_FC_DID_SHIFT                            (0)
1469b631363SMatt Jacob #define MPI_FC_RCTL_MASK                            (0xFF000000)
1479b631363SMatt Jacob #define MPI_FC_RCTL_SHIFT                           (24)
1489b631363SMatt Jacob #define MPI_FC_SID_MASK                             (0x00FFFFFF)
1499b631363SMatt Jacob #define MPI_FC_SID_SHIFT                            (0)
1509b631363SMatt Jacob #define MPI_FC_CSCTL_MASK                           (0xFF000000)
1519b631363SMatt Jacob #define MPI_FC_CSCTL_SHIFT                          (24)
1529b631363SMatt Jacob #define MPI_FC_FCTL_MASK                            (0x00FFFFFF)
1539b631363SMatt Jacob #define MPI_FC_FCTL_SHIFT                           (0)
1549b631363SMatt Jacob #define MPI_FC_TYPE_MASK                            (0xFF000000)
1559b631363SMatt Jacob #define MPI_FC_TYPE_SHIFT                           (24)
1569b631363SMatt Jacob 
1579b631363SMatt Jacob /* obsolete name for the above */
1589b631363SMatt Jacob #define FCP_TARGET_DID_MASK                         (0x00FFFFFF)
1599b631363SMatt Jacob #define FCP_TARGET_DID_SHIFT                        (0)
1609b631363SMatt Jacob #define FCP_TARGET_RCTL_MASK                        (0xFF000000)
1619b631363SMatt Jacob #define FCP_TARGET_RCTL_SHIFT                       (24)
1629b631363SMatt Jacob #define FCP_TARGET_SID_MASK                         (0x00FFFFFF)
1639b631363SMatt Jacob #define FCP_TARGET_SID_SHIFT                        (0)
1649b631363SMatt Jacob #define FCP_TARGET_CSCTL_MASK                       (0xFF000000)
1659b631363SMatt Jacob #define FCP_TARGET_CSCTL_SHIFT                      (24)
1669b631363SMatt Jacob #define FCP_TARGET_FCTL_MASK                        (0x00FFFFFF)
1679b631363SMatt Jacob #define FCP_TARGET_FCTL_SHIFT                       (0)
1689b631363SMatt Jacob #define FCP_TARGET_TYPE_MASK                        (0xFF000000)
1699b631363SMatt Jacob #define FCP_TARGET_TYPE_SHIFT                       (24)
1709b631363SMatt Jacob 
1719b631363SMatt Jacob /****************************************************************************/
1729b631363SMatt Jacob /* Link Service Response messages                                           */
1739b631363SMatt Jacob /****************************************************************************/
1749b631363SMatt Jacob 
1759b631363SMatt Jacob typedef struct _MSG_LINK_SERVICE_RSP_REQUEST
1769b631363SMatt Jacob {
1779b631363SMatt Jacob     U8                      RspFlags;           /* 00h */
1789b631363SMatt Jacob     U8                      RspLength;          /* 01h */
1799b631363SMatt Jacob     U8                      ChainOffset;        /* 02h */
1809b631363SMatt Jacob     U8                      Function;           /* 03h */
1819b631363SMatt Jacob     U16                     Reserved1;          /* 04h */
1829b631363SMatt Jacob     U8                      Reserved2;          /* 06h */
1839b631363SMatt Jacob     U8                      MsgFlags;           /* 07h */
1849b631363SMatt Jacob     U32                     MsgContext;         /* 08h */
1859b631363SMatt Jacob     U32                     Rctl_Did;           /* 0Ch */
1869b631363SMatt Jacob     U32                     Csctl_Sid;          /* 10h */
1879b631363SMatt Jacob     U32                     Type_Fctl;          /* 14h */
1889b631363SMatt Jacob     U16                     SeqCnt;             /* 18h */
1899b631363SMatt Jacob     U8                      Dfctl;              /* 1Ah */
1909b631363SMatt Jacob     U8                      SeqId;              /* 1Bh */
1919b631363SMatt Jacob     U16                     Rxid;               /* 1Ch */
1929b631363SMatt Jacob     U16                     Oxid;               /* 1Eh */
1939b631363SMatt Jacob     U32                     Parameter;          /* 20h */
1949b631363SMatt Jacob     SGE_SIMPLE_UNION        SGL;                /* 24h */
1959b631363SMatt Jacob } MSG_LINK_SERVICE_RSP_REQUEST, MPI_POINTER PTR_MSG_LINK_SERVICE_RSP_REQUEST,
1969b631363SMatt Jacob   LinkServiceRspRequest_t, MPI_POINTER pLinkServiceRspRequest_t;
1979b631363SMatt Jacob 
1989b631363SMatt Jacob #define LINK_SERVICE_RSP_FLAGS_IMMEDIATE        (0x80)
1999b631363SMatt Jacob #define LINK_SERVICE_RSP_FLAGS_PORT_MASK        (0x01)
2009b631363SMatt Jacob 
2019b631363SMatt Jacob /* Link Service Response Reply  */
2029b631363SMatt Jacob typedef struct _MSG_LINK_SERVICE_RSP_REPLY
2039b631363SMatt Jacob {
2049b631363SMatt Jacob     U16                     Reserved;           /* 00h */
2059b631363SMatt Jacob     U8                      MsgLength;          /* 02h */
2069b631363SMatt Jacob     U8                      Function;           /* 03h */
2079b631363SMatt Jacob     U16                     Reserved1;          /* 04h */
2089b631363SMatt Jacob     U8                      Reserved_0100_InitiatorIndex; /* 06h */ /* obsolete InitiatorIndex */
2099b631363SMatt Jacob     U8                      MsgFlags;           /* 07h */
2109b631363SMatt Jacob     U32                     MsgContext;         /* 08h */
2119b631363SMatt Jacob     U16                     Reserved3;          /* 0Ch */
2129b631363SMatt Jacob     U16                     IOCStatus;          /* 0Eh */
2139b631363SMatt Jacob     U32                     IOCLogInfo;         /* 10h */
2149b631363SMatt Jacob     U32                     InitiatorIndex;     /* 14h */
2159b631363SMatt Jacob } MSG_LINK_SERVICE_RSP_REPLY, MPI_POINTER PTR_MSG_LINK_SERVICE_RSP_REPLY,
2169b631363SMatt Jacob   LinkServiceRspReply_t, MPI_POINTER pLinkServiceRspReply_t;
2179b631363SMatt Jacob 
2189b631363SMatt Jacob /****************************************************************************/
2199b631363SMatt Jacob /* Extended Link Service Send messages                                      */
2209b631363SMatt Jacob /****************************************************************************/
2219b631363SMatt Jacob 
2229b631363SMatt Jacob typedef struct _MSG_EXLINK_SERVICE_SEND_REQUEST
2239b631363SMatt Jacob {
2249b631363SMatt Jacob     U8                      SendFlags;          /* 00h */
225b0a2fdeeSScott Long     U8                      AliasIndex;         /* 01h */
2269b631363SMatt Jacob     U8                      ChainOffset;        /* 02h */
2279b631363SMatt Jacob     U8                      Function;           /* 03h */
2289b631363SMatt Jacob     U32                     MsgFlags_Did;       /* 04h */
2299b631363SMatt Jacob     U32                     MsgContext;         /* 08h */
2309b631363SMatt Jacob     U32                     ElsCommandCode;     /* 0Ch */
2319b631363SMatt Jacob     SGE_SIMPLE_UNION        SGL;                /* 10h */
2329b631363SMatt Jacob } MSG_EXLINK_SERVICE_SEND_REQUEST, MPI_POINTER PTR_MSG_EXLINK_SERVICE_SEND_REQUEST,
2339b631363SMatt Jacob   ExLinkServiceSendRequest_t, MPI_POINTER pExLinkServiceSendRequest_t;
2349b631363SMatt Jacob 
2359b631363SMatt Jacob #define EX_LINK_SERVICE_SEND_DID_MASK           (0x00FFFFFF)
2369b631363SMatt Jacob #define EX_LINK_SERVICE_SEND_DID_SHIFT          (0)
2379b631363SMatt Jacob #define EX_LINK_SERVICE_SEND_MSGFLAGS_MASK      (0xFF000000)
2389b631363SMatt Jacob #define EX_LINK_SERVICE_SEND_MSGFLAGS_SHIFT     (24)
2399b631363SMatt Jacob 
2409b631363SMatt Jacob /* Extended Link Service Send Reply */
2419b631363SMatt Jacob typedef struct _MSG_EXLINK_SERVICE_SEND_REPLY
2429b631363SMatt Jacob {
243b0a2fdeeSScott Long     U8                      Reserved;           /* 00h */
244b0a2fdeeSScott Long     U8                      AliasIndex;         /* 01h */
2459b631363SMatt Jacob     U8                      MsgLength;          /* 02h */
2469b631363SMatt Jacob     U8                      Function;           /* 03h */
2479b631363SMatt Jacob     U16                     Reserved1;          /* 04h */
2489b631363SMatt Jacob     U8                      Reserved2;          /* 06h */
2499b631363SMatt Jacob     U8                      MsgFlags;           /* 07h */
2509b631363SMatt Jacob     U32                     MsgContext;         /* 08h */
2519b631363SMatt Jacob     U16                     Reserved3;          /* 0Ch */
2529b631363SMatt Jacob     U16                     IOCStatus;          /* 0Eh */
2539b631363SMatt Jacob     U32                     IOCLogInfo;         /* 10h */
2549b631363SMatt Jacob     U32                     ResponseLength;     /* 14h */
2559b631363SMatt Jacob } MSG_EXLINK_SERVICE_SEND_REPLY, MPI_POINTER PTR_MSG_EXLINK_SERVICE_SEND_REPLY,
2569b631363SMatt Jacob   ExLinkServiceSendReply_t, MPI_POINTER pExLinkServiceSendReply_t;
2579b631363SMatt Jacob 
2589b631363SMatt Jacob /****************************************************************************/
2599b631363SMatt Jacob /* FC Abort messages                                                        */
2609b631363SMatt Jacob /****************************************************************************/
2619b631363SMatt Jacob 
2629b631363SMatt Jacob typedef struct _MSG_FC_ABORT_REQUEST
2639b631363SMatt Jacob {
2649b631363SMatt Jacob     U8                      AbortFlags;                 /* 00h */
2659b631363SMatt Jacob     U8                      AbortType;                  /* 01h */
2669b631363SMatt Jacob     U8                      ChainOffset;                /* 02h */
2679b631363SMatt Jacob     U8                      Function;                   /* 03h */
2689b631363SMatt Jacob     U16                     Reserved1;                  /* 04h */
2699b631363SMatt Jacob     U8                      Reserved2;                  /* 06h */
2709b631363SMatt Jacob     U8                      MsgFlags;                   /* 07h */
2719b631363SMatt Jacob     U32                     MsgContext;                 /* 08h */
2729b631363SMatt Jacob     U32                     TransactionContextToAbort;  /* 0Ch */
2739b631363SMatt Jacob } MSG_FC_ABORT_REQUEST, MPI_POINTER PTR_MSG_FC_ABORT_REQUEST,
2749b631363SMatt Jacob   FcAbortRequest_t, MPI_POINTER pFcAbortRequest_t;
2759b631363SMatt Jacob 
2769b631363SMatt Jacob #define FC_ABORT_FLAG_PORT_MASK                 (0x01)
2779b631363SMatt Jacob 
2789b631363SMatt Jacob #define FC_ABORT_TYPE_ALL_FC_BUFFERS            (0x00)
2799b631363SMatt Jacob #define FC_ABORT_TYPE_EXACT_FC_BUFFER           (0x01)
2809b631363SMatt Jacob #define FC_ABORT_TYPE_CT_SEND_REQUEST           (0x02)
2819b631363SMatt Jacob #define FC_ABORT_TYPE_EXLINKSEND_REQUEST        (0x03)
2829b631363SMatt Jacob 
2839b631363SMatt Jacob /* FC Abort Reply */
2849b631363SMatt Jacob typedef struct _MSG_FC_ABORT_REPLY
2859b631363SMatt Jacob {
2869b631363SMatt Jacob     U16                     Reserved;           /* 00h */
2879b631363SMatt Jacob     U8                      MsgLength;          /* 02h */
2889b631363SMatt Jacob     U8                      Function;           /* 03h */
2899b631363SMatt Jacob     U16                     Reserved1;          /* 04h */
2909b631363SMatt Jacob     U8                      Reserved2;          /* 06h */
2919b631363SMatt Jacob     U8                      MsgFlags;           /* 07h */
2929b631363SMatt Jacob     U32                     MsgContext;         /* 08h */
2939b631363SMatt Jacob     U16                     Reserved3;          /* 0Ch */
2949b631363SMatt Jacob     U16                     IOCStatus;          /* 0Eh */
2959b631363SMatt Jacob     U32                     IOCLogInfo;         /* 10h */
2969b631363SMatt Jacob } MSG_FC_ABORT_REPLY, MPI_POINTER PTR_MSG_FC_ABORT_REPLY,
2979b631363SMatt Jacob   FcAbortReply_t, MPI_POINTER pFcAbortReply_t;
2989b631363SMatt Jacob 
2999b631363SMatt Jacob /****************************************************************************/
3009b631363SMatt Jacob /* FC Common Transport Send messages                                        */
3019b631363SMatt Jacob /****************************************************************************/
3029b631363SMatt Jacob 
3039b631363SMatt Jacob typedef struct _MSG_FC_COMMON_TRANSPORT_SEND_REQUEST
3049b631363SMatt Jacob {
3059b631363SMatt Jacob     U8                      SendFlags;          /* 00h */
306b0a2fdeeSScott Long     U8                      AliasIndex;         /* 01h */
3079b631363SMatt Jacob     U8                      ChainOffset;        /* 02h */
3089b631363SMatt Jacob     U8                      Function;           /* 03h */
3099b631363SMatt Jacob     U32                     MsgFlags_Did;       /* 04h */
3109b631363SMatt Jacob     U32                     MsgContext;         /* 08h */
3119b631363SMatt Jacob     U16                     CTCommandCode;      /* 0Ch */
3129b631363SMatt Jacob     U8                      FsType;             /* 0Eh */
3139b631363SMatt Jacob     U8                      Reserved1;          /* 0Fh */
3149b631363SMatt Jacob     SGE_SIMPLE_UNION        SGL;                /* 10h */
3159b631363SMatt Jacob } MSG_FC_COMMON_TRANSPORT_SEND_REQUEST,
3169b631363SMatt Jacob  MPI_POINTER PTR_MSG_FC_COMMON_TRANSPORT_SEND_REQUEST,
3179b631363SMatt Jacob   FcCommonTransportSendRequest_t, MPI_POINTER pFcCommonTransportSendRequest_t;
3189b631363SMatt Jacob 
3199b631363SMatt Jacob #define MPI_FC_CT_SEND_DID_MASK                 (0x00FFFFFF)
3209b631363SMatt Jacob #define MPI_FC_CT_SEND_DID_SHIFT                (0)
3219b631363SMatt Jacob #define MPI_FC_CT_SEND_MSGFLAGS_MASK            (0xFF000000)
3229b631363SMatt Jacob #define MPI_FC_CT_SEND_MSGFLAGS_SHIFT           (24)
3239b631363SMatt Jacob 
3249b631363SMatt Jacob /* FC Common Transport Send Reply */
3259b631363SMatt Jacob typedef struct _MSG_FC_COMMON_TRANSPORT_SEND_REPLY
3269b631363SMatt Jacob {
327b0a2fdeeSScott Long     U8                      Reserved;           /* 00h */
328b0a2fdeeSScott Long     U8                      AliasIndex;         /* 01h */
3299b631363SMatt Jacob     U8                      MsgLength;          /* 02h */
3309b631363SMatt Jacob     U8                      Function;           /* 03h */
3319b631363SMatt Jacob     U16                     Reserved1;          /* 04h */
3329b631363SMatt Jacob     U8                      Reserved2;          /* 06h */
3339b631363SMatt Jacob     U8                      MsgFlags;           /* 07h */
3349b631363SMatt Jacob     U32                     MsgContext;         /* 08h */
3359b631363SMatt Jacob     U16                     Reserved3;          /* 0Ch */
3369b631363SMatt Jacob     U16                     IOCStatus;          /* 0Eh */
3379b631363SMatt Jacob     U32                     IOCLogInfo;         /* 10h */
3389b631363SMatt Jacob     U32                     ResponseLength;     /* 14h */
3399b631363SMatt Jacob } MSG_FC_COMMON_TRANSPORT_SEND_REPLY, MPI_POINTER PTR_MSG_FC_COMMON_TRANSPORT_SEND_REPLY,
3409b631363SMatt Jacob   FcCommonTransportSendReply_t, MPI_POINTER pFcCommonTransportSendReply_t;
3419b631363SMatt Jacob 
3429b631363SMatt Jacob /****************************************************************************/
3439b631363SMatt Jacob /* FC Primitive Send messages                                               */
3449b631363SMatt Jacob /****************************************************************************/
3459b631363SMatt Jacob 
3469b631363SMatt Jacob typedef struct _MSG_FC_PRIMITIVE_SEND_REQUEST
3479b631363SMatt Jacob {
3489b631363SMatt Jacob     U8                      SendFlags;          /* 00h */
3499b631363SMatt Jacob     U8                      Reserved;           /* 01h */
3509b631363SMatt Jacob     U8                      ChainOffset;        /* 02h */
3519b631363SMatt Jacob     U8                      Function;           /* 03h */
3529b631363SMatt Jacob     U16                     Reserved1;          /* 04h */
3539b631363SMatt Jacob     U8                      Reserved2;          /* 06h */
3549b631363SMatt Jacob     U8                      MsgFlags;           /* 07h */
3559b631363SMatt Jacob     U32                     MsgContext;         /* 08h */
3569b631363SMatt Jacob     U8                      FcPrimitive[4];     /* 0Ch */
3579b631363SMatt Jacob } MSG_FC_PRIMITIVE_SEND_REQUEST, MPI_POINTER PTR_MSG_FC_PRIMITIVE_SEND_REQUEST,
3589b631363SMatt Jacob   FcPrimitiveSendRequest_t, MPI_POINTER pFcPrimitiveSendRequest_t;
3599b631363SMatt Jacob 
3609b631363SMatt Jacob #define MPI_FC_PRIM_SEND_FLAGS_PORT_MASK       (0x01)
361b0a2fdeeSScott Long #define MPI_FC_PRIM_SEND_FLAGS_ML_RESET_LINK   (0x02)
3629b631363SMatt Jacob #define MPI_FC_PRIM_SEND_FLAGS_RESET_LINK      (0x04)
3639b631363SMatt Jacob #define MPI_FC_PRIM_SEND_FLAGS_STOP_SEND       (0x08)
3649b631363SMatt Jacob #define MPI_FC_PRIM_SEND_FLAGS_SEND_ONCE       (0x10)
3659b631363SMatt Jacob #define MPI_FC_PRIM_SEND_FLAGS_SEND_AROUND     (0x20)
3669b631363SMatt Jacob #define MPI_FC_PRIM_SEND_FLAGS_UNTIL_FULL      (0x40)
3679b631363SMatt Jacob #define MPI_FC_PRIM_SEND_FLAGS_FOREVER         (0x80)
3689b631363SMatt Jacob 
3699b631363SMatt Jacob /* FC Primitive Send Reply */
3709b631363SMatt Jacob typedef struct _MSG_FC_PRIMITIVE_SEND_REPLY
3719b631363SMatt Jacob {
3729b631363SMatt Jacob     U8                      SendFlags;          /* 00h */
3739b631363SMatt Jacob     U8                      Reserved;           /* 01h */
3749b631363SMatt Jacob     U8                      MsgLength;          /* 02h */
3759b631363SMatt Jacob     U8                      Function;           /* 03h */
3769b631363SMatt Jacob     U16                     Reserved1;          /* 04h */
3779b631363SMatt Jacob     U8                      Reserved2;          /* 06h */
3789b631363SMatt Jacob     U8                      MsgFlags;           /* 07h */
3799b631363SMatt Jacob     U32                     MsgContext;         /* 08h */
3809b631363SMatt Jacob     U16                     Reserved3;          /* 0Ch */
3819b631363SMatt Jacob     U16                     IOCStatus;          /* 0Eh */
3829b631363SMatt Jacob     U32                     IOCLogInfo;         /* 10h */
3839b631363SMatt Jacob } MSG_FC_PRIMITIVE_SEND_REPLY, MPI_POINTER PTR_MSG_FC_PRIMITIVE_SEND_REPLY,
3849b631363SMatt Jacob   FcPrimitiveSendReply_t, MPI_POINTER pFcPrimitiveSendReply_t;
3859b631363SMatt Jacob 
3869b631363SMatt Jacob #endif
387