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