xref: /freebsd/sys/dev/mpt/mpilib/mpi_fc.h (revision 9b631363)
19b631363SMatt Jacob /* $FreeBSD$ */
29b631363SMatt Jacob /*
39b631363SMatt Jacob  *  Copyright (c) 2000-2001 LSI Logic Corporation.
49b631363SMatt Jacob  *
59b631363SMatt Jacob  *
69b631363SMatt Jacob  *           Name:  MPI_FC.H
79b631363SMatt Jacob  *          Title:  MPI Fibre Channel messages and structures
89b631363SMatt Jacob  *  Creation Date:  June 12, 2000
99b631363SMatt Jacob  *
109b631363SMatt Jacob  *    MPI Version:  01.02.02
119b631363SMatt Jacob  *
129b631363SMatt Jacob  *  Version History
139b631363SMatt Jacob  *  ---------------
149b631363SMatt Jacob  *
159b631363SMatt Jacob  *  Date      Version   Description
169b631363SMatt Jacob  *  --------  --------  ------------------------------------------------------
179b631363SMatt Jacob  *  05-08-00  00.10.01  Original release for 0.10 spec dated 4/26/2000.
189b631363SMatt Jacob  *  06-06-00  01.00.01  Update version number for 1.0 release.
199b631363SMatt Jacob  *  06-12-00  01.00.02  Added _MSG_FC_ABORT_REPLY structure.
209b631363SMatt Jacob  *  11-02-00  01.01.01  Original release for post 1.0 work
219b631363SMatt Jacob  *  12-04-00  01.01.02  Added messages for Common Transport Send and
229b631363SMatt Jacob  *                      Primitive Send.
239b631363SMatt Jacob  *  01-09-01  01.01.03  Modifed some of the new flags to have an MPI prefix
249b631363SMatt Jacob  *                      and modified the FcPrimitiveSend flags.
259b631363SMatt Jacob  *  01-25-01  01.01.04  Move InitiatorIndex in LinkServiceRsp reply to a larger
269b631363SMatt Jacob  *                      field.
279b631363SMatt Jacob  *                      Added FC_ABORT_TYPE_CT_SEND_REQUEST and
289b631363SMatt Jacob  *                      FC_ABORT_TYPE_EXLINKSEND_REQUEST for FcAbort request.
299b631363SMatt Jacob  *                      Added MPI_FC_PRIM_SEND_FLAGS_STOP_SEND.
309b631363SMatt Jacob  *  02-20-01  01.01.05  Started using MPI_POINTER.
319b631363SMatt Jacob  *  03-27-01  01.01.06  Added Flags field to MSG_LINK_SERVICE_BUFFER_POST_REPLY
329b631363SMatt Jacob  *                      and defined MPI_LS_BUF_POST_REPLY_FLAG_NO_RSP_NEEDED.
339b631363SMatt Jacob  *                      Added MPI_FC_PRIM_SEND_FLAGS_RESET_LINK define.
349b631363SMatt Jacob  *                      Added structure offset comments.
359b631363SMatt Jacob  *  04-09-01  01.01.07  Added RspLength field to MSG_LINK_SERVICE_RSP_REQUEST.
369b631363SMatt Jacob  *  08-08-01  01.02.01  Original release for v1.2 work.
379b631363SMatt Jacob  *  09-28-01  01.02.02  Change name of reserved field in
389b631363SMatt Jacob  *                      MSG_LINK_SERVICE_RSP_REPLY.
399b631363SMatt Jacob  *  --------------------------------------------------------------------------
409b631363SMatt Jacob  */
419b631363SMatt Jacob 
429b631363SMatt Jacob #ifndef MPI_FC_H
439b631363SMatt Jacob #define MPI_FC_H
449b631363SMatt Jacob 
459b631363SMatt Jacob 
469b631363SMatt Jacob /*****************************************************************************
479b631363SMatt Jacob *
489b631363SMatt Jacob *        F C    T a r g e t    M o d e    M e s s a g e s
499b631363SMatt Jacob *
509b631363SMatt Jacob *****************************************************************************/
519b631363SMatt Jacob 
529b631363SMatt Jacob /****************************************************************************/
539b631363SMatt Jacob /* Link Service Buffer Post messages                                        */
549b631363SMatt Jacob /****************************************************************************/
559b631363SMatt Jacob 
569b631363SMatt Jacob typedef struct _MSG_LINK_SERVICE_BUFFER_POST_REQUEST
579b631363SMatt Jacob {
589b631363SMatt Jacob     U8                      BufferPostFlags;    /* 00h */
599b631363SMatt Jacob     U8                      BufferCount;        /* 01h */
609b631363SMatt Jacob     U8                      ChainOffset;        /* 02h */
619b631363SMatt Jacob     U8                      Function;           /* 03h */
629b631363SMatt Jacob     U16                     Reserved;           /* 04h */
639b631363SMatt Jacob     U8                      Reserved1;          /* 06h */
649b631363SMatt Jacob     U8                      MsgFlags;           /* 07h */
659b631363SMatt Jacob     U32                     MsgContext;         /* 08h */
669b631363SMatt Jacob     SGE_TRANS_SIMPLE_UNION  SGL;
679b631363SMatt Jacob } MSG_LINK_SERVICE_BUFFER_POST_REQUEST,
689b631363SMatt Jacob  MPI_POINTER PTR_MSG_LINK_SERVICE_BUFFER_POST_REQUEST,
699b631363SMatt Jacob   LinkServiceBufferPostRequest_t, MPI_POINTER pLinkServiceBufferPostRequest_t;
709b631363SMatt Jacob 
719b631363SMatt Jacob #define LINK_SERVICE_BUFFER_POST_FLAGS_PORT_MASK (0x01)
729b631363SMatt Jacob 
739b631363SMatt Jacob typedef struct _WWNFORMAT
749b631363SMatt Jacob {
759b631363SMatt Jacob     U32                     PortNameHigh;       /* 00h */
769b631363SMatt Jacob     U32                     PortNameLow;        /* 04h */
779b631363SMatt Jacob     U32                     NodeNameHigh;       /* 08h */
789b631363SMatt Jacob     U32                     NodeNameLow;        /* 0Ch */
799b631363SMatt Jacob } WWNFORMAT,
809b631363SMatt Jacob   WwnFormat_t;
819b631363SMatt Jacob 
829b631363SMatt Jacob /* Link Service Buffer Post Reply */
839b631363SMatt Jacob typedef struct _MSG_LINK_SERVICE_BUFFER_POST_REPLY
849b631363SMatt Jacob {
859b631363SMatt Jacob     U8                      Flags;              /* 00h */
869b631363SMatt Jacob     U8                      Reserved;           /* 01h */
879b631363SMatt Jacob     U8                      MsgLength;          /* 02h */
889b631363SMatt Jacob     U8                      Function;           /* 03h */
899b631363SMatt Jacob     U16                     Reserved1;          /* 04h */
909b631363SMatt Jacob     U8                      PortNumber;         /* 06h */
919b631363SMatt Jacob     U8                      MsgFlags;           /* 07h */
929b631363SMatt Jacob     U32                     MsgContext;         /* 08h */
939b631363SMatt Jacob     U16                     Reserved2;          /* 0Ch */
949b631363SMatt Jacob     U16                     IOCStatus;          /* 0Eh */
959b631363SMatt Jacob     U32                     IOCLogInfo;         /* 10h */
969b631363SMatt Jacob     U32                     TransferLength;     /* 14h */
979b631363SMatt Jacob     U32                     TransactionContext; /* 18h */
989b631363SMatt Jacob     U32                     Rctl_Did;           /* 1Ch */
999b631363SMatt Jacob     U32                     Csctl_Sid;          /* 20h */
1009b631363SMatt Jacob     U32                     Type_Fctl;          /* 24h */
1019b631363SMatt Jacob     U16                     SeqCnt;             /* 28h */
1029b631363SMatt Jacob     U8                      Dfctl;              /* 2Ah */
1039b631363SMatt Jacob     U8                      SeqId;              /* 2Bh */
1049b631363SMatt Jacob     U16                     Rxid;               /* 2Ch */
1059b631363SMatt Jacob     U16                     Oxid;               /* 2Eh */
1069b631363SMatt Jacob     U32                     Parameter;          /* 30h */
1079b631363SMatt Jacob     WWNFORMAT               Wwn;                /* 34h */
1089b631363SMatt Jacob } MSG_LINK_SERVICE_BUFFER_POST_REPLY, MPI_POINTER PTR_MSG_LINK_SERVICE_BUFFER_POST_REPLY,
1099b631363SMatt Jacob   LinkServiceBufferPostReply_t, MPI_POINTER pLinkServiceBufferPostReply_t;
1109b631363SMatt Jacob 
1119b631363SMatt Jacob #define MPI_LS_BUF_POST_REPLY_FLAG_NO_RSP_NEEDED    (0x80)
1129b631363SMatt Jacob 
1139b631363SMatt Jacob #define MPI_FC_DID_MASK                             (0x00FFFFFF)
1149b631363SMatt Jacob #define MPI_FC_DID_SHIFT                            (0)
1159b631363SMatt Jacob #define MPI_FC_RCTL_MASK                            (0xFF000000)
1169b631363SMatt Jacob #define MPI_FC_RCTL_SHIFT                           (24)
1179b631363SMatt Jacob #define MPI_FC_SID_MASK                             (0x00FFFFFF)
1189b631363SMatt Jacob #define MPI_FC_SID_SHIFT                            (0)
1199b631363SMatt Jacob #define MPI_FC_CSCTL_MASK                           (0xFF000000)
1209b631363SMatt Jacob #define MPI_FC_CSCTL_SHIFT                          (24)
1219b631363SMatt Jacob #define MPI_FC_FCTL_MASK                            (0x00FFFFFF)
1229b631363SMatt Jacob #define MPI_FC_FCTL_SHIFT                           (0)
1239b631363SMatt Jacob #define MPI_FC_TYPE_MASK                            (0xFF000000)
1249b631363SMatt Jacob #define MPI_FC_TYPE_SHIFT                           (24)
1259b631363SMatt Jacob 
1269b631363SMatt Jacob /* obsolete name for the above */
1279b631363SMatt Jacob #define FCP_TARGET_DID_MASK                         (0x00FFFFFF)
1289b631363SMatt Jacob #define FCP_TARGET_DID_SHIFT                        (0)
1299b631363SMatt Jacob #define FCP_TARGET_RCTL_MASK                        (0xFF000000)
1309b631363SMatt Jacob #define FCP_TARGET_RCTL_SHIFT                       (24)
1319b631363SMatt Jacob #define FCP_TARGET_SID_MASK                         (0x00FFFFFF)
1329b631363SMatt Jacob #define FCP_TARGET_SID_SHIFT                        (0)
1339b631363SMatt Jacob #define FCP_TARGET_CSCTL_MASK                       (0xFF000000)
1349b631363SMatt Jacob #define FCP_TARGET_CSCTL_SHIFT                      (24)
1359b631363SMatt Jacob #define FCP_TARGET_FCTL_MASK                        (0x00FFFFFF)
1369b631363SMatt Jacob #define FCP_TARGET_FCTL_SHIFT                       (0)
1379b631363SMatt Jacob #define FCP_TARGET_TYPE_MASK                        (0xFF000000)
1389b631363SMatt Jacob #define FCP_TARGET_TYPE_SHIFT                       (24)
1399b631363SMatt Jacob 
1409b631363SMatt Jacob 
1419b631363SMatt Jacob /****************************************************************************/
1429b631363SMatt Jacob /* Link Service Response messages                                           */
1439b631363SMatt Jacob /****************************************************************************/
1449b631363SMatt Jacob 
1459b631363SMatt Jacob typedef struct _MSG_LINK_SERVICE_RSP_REQUEST
1469b631363SMatt Jacob {
1479b631363SMatt Jacob     U8                      RspFlags;           /* 00h */
1489b631363SMatt Jacob     U8                      RspLength;          /* 01h */
1499b631363SMatt Jacob     U8                      ChainOffset;        /* 02h */
1509b631363SMatt Jacob     U8                      Function;           /* 03h */
1519b631363SMatt Jacob     U16                     Reserved1;          /* 04h */
1529b631363SMatt Jacob     U8                      Reserved2;          /* 06h */
1539b631363SMatt Jacob     U8                      MsgFlags;           /* 07h */
1549b631363SMatt Jacob     U32                     MsgContext;         /* 08h */
1559b631363SMatt Jacob     U32                     Rctl_Did;           /* 0Ch */
1569b631363SMatt Jacob     U32                     Csctl_Sid;          /* 10h */
1579b631363SMatt Jacob     U32                     Type_Fctl;          /* 14h */
1589b631363SMatt Jacob     U16                     SeqCnt;             /* 18h */
1599b631363SMatt Jacob     U8                      Dfctl;              /* 1Ah */
1609b631363SMatt Jacob     U8                      SeqId;              /* 1Bh */
1619b631363SMatt Jacob     U16                     Rxid;               /* 1Ch */
1629b631363SMatt Jacob     U16                     Oxid;               /* 1Eh */
1639b631363SMatt Jacob     U32                     Parameter;          /* 20h */
1649b631363SMatt Jacob     SGE_SIMPLE_UNION        SGL;                /* 24h */
1659b631363SMatt Jacob } MSG_LINK_SERVICE_RSP_REQUEST, MPI_POINTER PTR_MSG_LINK_SERVICE_RSP_REQUEST,
1669b631363SMatt Jacob   LinkServiceRspRequest_t, MPI_POINTER pLinkServiceRspRequest_t;
1679b631363SMatt Jacob 
1689b631363SMatt Jacob #define LINK_SERVICE_RSP_FLAGS_IMMEDIATE        (0x80)
1699b631363SMatt Jacob #define LINK_SERVICE_RSP_FLAGS_PORT_MASK        (0x01)
1709b631363SMatt Jacob 
1719b631363SMatt Jacob 
1729b631363SMatt Jacob /* Link Service Response Reply  */
1739b631363SMatt Jacob typedef struct _MSG_LINK_SERVICE_RSP_REPLY
1749b631363SMatt Jacob {
1759b631363SMatt Jacob     U16                     Reserved;           /* 00h */
1769b631363SMatt Jacob     U8                      MsgLength;          /* 02h */
1779b631363SMatt Jacob     U8                      Function;           /* 03h */
1789b631363SMatt Jacob     U16                     Reserved1;          /* 04h */
1799b631363SMatt Jacob     U8                      Reserved_0100_InitiatorIndex; /* 06h */ /* obsolete InitiatorIndex */
1809b631363SMatt Jacob     U8                      MsgFlags;           /* 07h */
1819b631363SMatt Jacob     U32                     MsgContext;         /* 08h */
1829b631363SMatt Jacob     U16                     Reserved3;          /* 0Ch */
1839b631363SMatt Jacob     U16                     IOCStatus;          /* 0Eh */
1849b631363SMatt Jacob     U32                     IOCLogInfo;         /* 10h */
1859b631363SMatt Jacob     U32                     InitiatorIndex;     /* 14h */
1869b631363SMatt Jacob } MSG_LINK_SERVICE_RSP_REPLY, MPI_POINTER PTR_MSG_LINK_SERVICE_RSP_REPLY,
1879b631363SMatt Jacob   LinkServiceRspReply_t, MPI_POINTER pLinkServiceRspReply_t;
1889b631363SMatt Jacob 
1899b631363SMatt Jacob 
1909b631363SMatt Jacob /****************************************************************************/
1919b631363SMatt Jacob /* Extended Link Service Send messages                                      */
1929b631363SMatt Jacob /****************************************************************************/
1939b631363SMatt Jacob 
1949b631363SMatt Jacob typedef struct _MSG_EXLINK_SERVICE_SEND_REQUEST
1959b631363SMatt Jacob {
1969b631363SMatt Jacob     U8                      SendFlags;          /* 00h */
1979b631363SMatt Jacob     U8                      Reserved;           /* 01h */
1989b631363SMatt Jacob     U8                      ChainOffset;        /* 02h */
1999b631363SMatt Jacob     U8                      Function;           /* 03h */
2009b631363SMatt Jacob     U32                     MsgFlags_Did;       /* 04h */
2019b631363SMatt Jacob     U32                     MsgContext;         /* 08h */
2029b631363SMatt Jacob     U32                     ElsCommandCode;     /* 0Ch */
2039b631363SMatt Jacob     SGE_SIMPLE_UNION        SGL;                /* 10h */
2049b631363SMatt Jacob } MSG_EXLINK_SERVICE_SEND_REQUEST, MPI_POINTER PTR_MSG_EXLINK_SERVICE_SEND_REQUEST,
2059b631363SMatt Jacob   ExLinkServiceSendRequest_t, MPI_POINTER pExLinkServiceSendRequest_t;
2069b631363SMatt Jacob 
2079b631363SMatt Jacob #define EX_LINK_SERVICE_SEND_DID_MASK           (0x00FFFFFF)
2089b631363SMatt Jacob #define EX_LINK_SERVICE_SEND_DID_SHIFT          (0)
2099b631363SMatt Jacob #define EX_LINK_SERVICE_SEND_MSGFLAGS_MASK      (0xFF000000)
2109b631363SMatt Jacob #define EX_LINK_SERVICE_SEND_MSGFLAGS_SHIFT     (24)
2119b631363SMatt Jacob 
2129b631363SMatt Jacob 
2139b631363SMatt Jacob /* Extended Link Service Send Reply */
2149b631363SMatt Jacob typedef struct _MSG_EXLINK_SERVICE_SEND_REPLY
2159b631363SMatt Jacob {
2169b631363SMatt Jacob     U16                     Reserved;           /* 00h */
2179b631363SMatt Jacob     U8                      MsgLength;          /* 02h */
2189b631363SMatt Jacob     U8                      Function;           /* 03h */
2199b631363SMatt Jacob     U16                     Reserved1;          /* 04h */
2209b631363SMatt Jacob     U8                      Reserved2;          /* 06h */
2219b631363SMatt Jacob     U8                      MsgFlags;           /* 07h */
2229b631363SMatt Jacob     U32                     MsgContext;         /* 08h */
2239b631363SMatt Jacob     U16                     Reserved3;          /* 0Ch */
2249b631363SMatt Jacob     U16                     IOCStatus;          /* 0Eh */
2259b631363SMatt Jacob     U32                     IOCLogInfo;         /* 10h */
2269b631363SMatt Jacob     U32                     ResponseLength;     /* 14h */
2279b631363SMatt Jacob } MSG_EXLINK_SERVICE_SEND_REPLY, MPI_POINTER PTR_MSG_EXLINK_SERVICE_SEND_REPLY,
2289b631363SMatt Jacob   ExLinkServiceSendReply_t, MPI_POINTER pExLinkServiceSendReply_t;
2299b631363SMatt Jacob 
2309b631363SMatt Jacob /****************************************************************************/
2319b631363SMatt Jacob /* FC Abort messages                                                        */
2329b631363SMatt Jacob /****************************************************************************/
2339b631363SMatt Jacob 
2349b631363SMatt Jacob typedef struct _MSG_FC_ABORT_REQUEST
2359b631363SMatt Jacob {
2369b631363SMatt Jacob     U8                      AbortFlags;                 /* 00h */
2379b631363SMatt Jacob     U8                      AbortType;                  /* 01h */
2389b631363SMatt Jacob     U8                      ChainOffset;                /* 02h */
2399b631363SMatt Jacob     U8                      Function;                   /* 03h */
2409b631363SMatt Jacob     U16                     Reserved1;                  /* 04h */
2419b631363SMatt Jacob     U8                      Reserved2;                  /* 06h */
2429b631363SMatt Jacob     U8                      MsgFlags;                   /* 07h */
2439b631363SMatt Jacob     U32                     MsgContext;                 /* 08h */
2449b631363SMatt Jacob     U32                     TransactionContextToAbort;  /* 0Ch */
2459b631363SMatt Jacob } MSG_FC_ABORT_REQUEST, MPI_POINTER PTR_MSG_FC_ABORT_REQUEST,
2469b631363SMatt Jacob   FcAbortRequest_t, MPI_POINTER pFcAbortRequest_t;
2479b631363SMatt Jacob 
2489b631363SMatt Jacob #define FC_ABORT_FLAG_PORT_MASK                 (0x01)
2499b631363SMatt Jacob 
2509b631363SMatt Jacob #define FC_ABORT_TYPE_ALL_FC_BUFFERS            (0x00)
2519b631363SMatt Jacob #define FC_ABORT_TYPE_EXACT_FC_BUFFER           (0x01)
2529b631363SMatt Jacob #define FC_ABORT_TYPE_CT_SEND_REQUEST           (0x02)
2539b631363SMatt Jacob #define FC_ABORT_TYPE_EXLINKSEND_REQUEST        (0x03)
2549b631363SMatt Jacob 
2559b631363SMatt Jacob /* FC Abort Reply */
2569b631363SMatt Jacob typedef struct _MSG_FC_ABORT_REPLY
2579b631363SMatt Jacob {
2589b631363SMatt Jacob     U16                     Reserved;           /* 00h */
2599b631363SMatt Jacob     U8                      MsgLength;          /* 02h */
2609b631363SMatt Jacob     U8                      Function;           /* 03h */
2619b631363SMatt Jacob     U16                     Reserved1;          /* 04h */
2629b631363SMatt Jacob     U8                      Reserved2;          /* 06h */
2639b631363SMatt Jacob     U8                      MsgFlags;           /* 07h */
2649b631363SMatt Jacob     U32                     MsgContext;         /* 08h */
2659b631363SMatt Jacob     U16                     Reserved3;          /* 0Ch */
2669b631363SMatt Jacob     U16                     IOCStatus;          /* 0Eh */
2679b631363SMatt Jacob     U32                     IOCLogInfo;         /* 10h */
2689b631363SMatt Jacob } MSG_FC_ABORT_REPLY, MPI_POINTER PTR_MSG_FC_ABORT_REPLY,
2699b631363SMatt Jacob   FcAbortReply_t, MPI_POINTER pFcAbortReply_t;
2709b631363SMatt Jacob 
2719b631363SMatt Jacob 
2729b631363SMatt Jacob /****************************************************************************/
2739b631363SMatt Jacob /* FC Common Transport Send messages                                        */
2749b631363SMatt Jacob /****************************************************************************/
2759b631363SMatt Jacob 
2769b631363SMatt Jacob typedef struct _MSG_FC_COMMON_TRANSPORT_SEND_REQUEST
2779b631363SMatt Jacob {
2789b631363SMatt Jacob     U8                      SendFlags;          /* 00h */
2799b631363SMatt Jacob     U8                      Reserved;           /* 01h */
2809b631363SMatt Jacob     U8                      ChainOffset;        /* 02h */
2819b631363SMatt Jacob     U8                      Function;           /* 03h */
2829b631363SMatt Jacob     U32                     MsgFlags_Did;       /* 04h */
2839b631363SMatt Jacob     U32                     MsgContext;         /* 08h */
2849b631363SMatt Jacob     U16                     CTCommandCode;      /* 0Ch */
2859b631363SMatt Jacob     U8                      FsType;             /* 0Eh */
2869b631363SMatt Jacob     U8                      Reserved1;          /* 0Fh */
2879b631363SMatt Jacob     SGE_SIMPLE_UNION        SGL;                /* 10h */
2889b631363SMatt Jacob } MSG_FC_COMMON_TRANSPORT_SEND_REQUEST,
2899b631363SMatt Jacob  MPI_POINTER PTR_MSG_FC_COMMON_TRANSPORT_SEND_REQUEST,
2909b631363SMatt Jacob   FcCommonTransportSendRequest_t, MPI_POINTER pFcCommonTransportSendRequest_t;
2919b631363SMatt Jacob 
2929b631363SMatt Jacob #define MPI_FC_CT_SEND_DID_MASK                 (0x00FFFFFF)
2939b631363SMatt Jacob #define MPI_FC_CT_SEND_DID_SHIFT                (0)
2949b631363SMatt Jacob #define MPI_FC_CT_SEND_MSGFLAGS_MASK            (0xFF000000)
2959b631363SMatt Jacob #define MPI_FC_CT_SEND_MSGFLAGS_SHIFT           (24)
2969b631363SMatt Jacob 
2979b631363SMatt Jacob 
2989b631363SMatt Jacob /* FC Common Transport Send Reply */
2999b631363SMatt Jacob typedef struct _MSG_FC_COMMON_TRANSPORT_SEND_REPLY
3009b631363SMatt Jacob {
3019b631363SMatt Jacob     U16                     Reserved;           /* 00h */
3029b631363SMatt Jacob     U8                      MsgLength;          /* 02h */
3039b631363SMatt Jacob     U8                      Function;           /* 03h */
3049b631363SMatt Jacob     U16                     Reserved1;          /* 04h */
3059b631363SMatt Jacob     U8                      Reserved2;          /* 06h */
3069b631363SMatt Jacob     U8                      MsgFlags;           /* 07h */
3079b631363SMatt Jacob     U32                     MsgContext;         /* 08h */
3089b631363SMatt Jacob     U16                     Reserved3;          /* 0Ch */
3099b631363SMatt Jacob     U16                     IOCStatus;          /* 0Eh */
3109b631363SMatt Jacob     U32                     IOCLogInfo;         /* 10h */
3119b631363SMatt Jacob     U32                     ResponseLength;     /* 14h */
3129b631363SMatt Jacob } MSG_FC_COMMON_TRANSPORT_SEND_REPLY, MPI_POINTER PTR_MSG_FC_COMMON_TRANSPORT_SEND_REPLY,
3139b631363SMatt Jacob   FcCommonTransportSendReply_t, MPI_POINTER pFcCommonTransportSendReply_t;
3149b631363SMatt Jacob 
3159b631363SMatt Jacob 
3169b631363SMatt Jacob /****************************************************************************/
3179b631363SMatt Jacob /* FC Primitive Send messages                                               */
3189b631363SMatt Jacob /****************************************************************************/
3199b631363SMatt Jacob 
3209b631363SMatt Jacob typedef struct _MSG_FC_PRIMITIVE_SEND_REQUEST
3219b631363SMatt Jacob {
3229b631363SMatt Jacob     U8                      SendFlags;          /* 00h */
3239b631363SMatt Jacob     U8                      Reserved;           /* 01h */
3249b631363SMatt Jacob     U8                      ChainOffset;        /* 02h */
3259b631363SMatt Jacob     U8                      Function;           /* 03h */
3269b631363SMatt Jacob     U16                     Reserved1;          /* 04h */
3279b631363SMatt Jacob     U8                      Reserved2;          /* 06h */
3289b631363SMatt Jacob     U8                      MsgFlags;           /* 07h */
3299b631363SMatt Jacob     U32                     MsgContext;         /* 08h */
3309b631363SMatt Jacob     U8                      FcPrimitive[4];     /* 0Ch */
3319b631363SMatt Jacob } MSG_FC_PRIMITIVE_SEND_REQUEST, MPI_POINTER PTR_MSG_FC_PRIMITIVE_SEND_REQUEST,
3329b631363SMatt Jacob   FcPrimitiveSendRequest_t, MPI_POINTER pFcPrimitiveSendRequest_t;
3339b631363SMatt Jacob 
3349b631363SMatt Jacob #define MPI_FC_PRIM_SEND_FLAGS_PORT_MASK       (0x01)
3359b631363SMatt Jacob #define MPI_FC_PRIM_SEND_FLAGS_RESET_LINK      (0x04)
3369b631363SMatt Jacob #define MPI_FC_PRIM_SEND_FLAGS_STOP_SEND       (0x08)
3379b631363SMatt Jacob #define MPI_FC_PRIM_SEND_FLAGS_SEND_ONCE       (0x10)
3389b631363SMatt Jacob #define MPI_FC_PRIM_SEND_FLAGS_SEND_AROUND     (0x20)
3399b631363SMatt Jacob #define MPI_FC_PRIM_SEND_FLAGS_UNTIL_FULL      (0x40)
3409b631363SMatt Jacob #define MPI_FC_PRIM_SEND_FLAGS_FOREVER         (0x80)
3419b631363SMatt Jacob 
3429b631363SMatt Jacob /* FC Primitive Send Reply */
3439b631363SMatt Jacob typedef struct _MSG_FC_PRIMITIVE_SEND_REPLY
3449b631363SMatt Jacob {
3459b631363SMatt Jacob     U8                      SendFlags;          /* 00h */
3469b631363SMatt Jacob     U8                      Reserved;           /* 01h */
3479b631363SMatt Jacob     U8                      MsgLength;          /* 02h */
3489b631363SMatt Jacob     U8                      Function;           /* 03h */
3499b631363SMatt Jacob     U16                     Reserved1;          /* 04h */
3509b631363SMatt Jacob     U8                      Reserved2;          /* 06h */
3519b631363SMatt Jacob     U8                      MsgFlags;           /* 07h */
3529b631363SMatt Jacob     U32                     MsgContext;         /* 08h */
3539b631363SMatt Jacob     U16                     Reserved3;          /* 0Ch */
3549b631363SMatt Jacob     U16                     IOCStatus;          /* 0Eh */
3559b631363SMatt Jacob     U32                     IOCLogInfo;         /* 10h */
3569b631363SMatt Jacob } MSG_FC_PRIMITIVE_SEND_REPLY, MPI_POINTER PTR_MSG_FC_PRIMITIVE_SEND_REPLY,
3579b631363SMatt Jacob   FcPrimitiveSendReply_t, MPI_POINTER pFcPrimitiveSendReply_t;
3589b631363SMatt Jacob 
3599b631363SMatt Jacob #endif
3609b631363SMatt Jacob 
361