mpi_targ.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:21k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  *  Copyright (c) 2000-2001 LSI Logic Corporation.
  3.  *
  4.  *
  5.  *           Name:  MPI_TARG.H
  6.  *          Title:  MPI Target mode messages and structures
  7.  *  Creation Date:  June 22, 2000
  8.  *
  9.  *    MPI Version:  01.02.04
  10.  *
  11.  *  Version History
  12.  *  ---------------
  13.  *
  14.  *  Date      Version   Description
  15.  *  --------  --------  ------------------------------------------------------
  16.  *  05-08-00  00.10.01  Original release for 0.10 spec dated 4/26/2000.
  17.  *  06-06-00  01.00.01  Update version number for 1.0 release.
  18.  *  06-22-00  01.00.02  Added _MSG_TARGET_CMD_BUFFER_POST_REPLY structure.
  19.  *                      Corrected DECSRIPTOR typo to DESCRIPTOR.
  20.  *  11-02-00  01.01.01  Original release for post 1.0 work
  21.  *                      Modified target mode to use IoIndex instead of
  22.  *                      HostIndex and IocIndex. Added Alias.
  23.  *  01-09-01  01.01.02  Added defines for TARGET_ASSIST_FLAGS_REPOST_CMD_BUFFER
  24.  *                      and TARGET_STATUS_SEND_FLAGS_REPOST_CMD_BUFFER.
  25.  *  02-20-01  01.01.03  Started using MPI_POINTER.
  26.  *                      Added structures for MPI_TARGET_SCSI_SPI_CMD_BUFFER and
  27.  *                      MPI_TARGET_FCP_CMD_BUFFER.
  28.  *  03-27-01  01.01.04  Added structure offset comments.
  29.  *  08-08-01  01.02.01  Original release for v1.2 work.
  30.  *  09-28-01  01.02.02  Added structure for MPI_TARGET_SCSI_SPI_STATUS_IU.
  31.  *                      Added PriorityReason field to some replies and
  32.  *                      defined more PriorityReason codes.
  33.  *                      Added some defines for to support previous version
  34.  *                      of MPI.
  35.  *  10-04-01  01.02.03  Added PriorityReason to MSG_TARGET_ERROR_REPLY.
  36.  *  11-01-01  01.02.04  Added define for TARGET_STATUS_SEND_FLAGS_HIGH_PRIORITY.
  37.  *  --------------------------------------------------------------------------
  38.  */
  39. #ifndef MPI_TARG_H
  40. #define MPI_TARG_H
  41. /******************************************************************************
  42. *
  43. *        S C S I    T a r g e t    M e s s a g e s
  44. *
  45. *******************************************************************************/
  46. typedef struct _CMD_BUFFER_DESCRIPTOR
  47. {
  48.     U16                     IoIndex;                    /* 00h */
  49.     U16                     Reserved;                   /* 02h */
  50.     union                                               /* 04h */
  51.     {
  52.         U32                 PhysicalAddress32;
  53.         U64                 PhysicalAddress64;
  54.     } u;
  55. } CMD_BUFFER_DESCRIPTOR, MPI_POINTER PTR_CMD_BUFFER_DESCRIPTOR,
  56.   CmdBufferDescriptor_t, MPI_POINTER pCmdBufferDescriptor_t;
  57. /****************************************************************************/
  58. /* Target Command Buffer Post Request                                       */
  59. /****************************************************************************/
  60. typedef struct _MSG_TARGET_CMD_BUFFER_POST_REQUEST
  61. {
  62.     U8                      BufferPostFlags;            /* 00h */
  63.     U8                      BufferCount;                /* 01h */
  64.     U8                      ChainOffset;                /* 02h */
  65.     U8                      Function;                   /* 03h */
  66.     U8                      BufferLength;               /* 04h */
  67.     U8                      Reserved;                   /* 05h */
  68.     U8                      Reserved1;                  /* 06h */
  69.     U8                      MsgFlags;                   /* 07h */
  70.     U32                     MsgContext;                 /* 08h */
  71.     CMD_BUFFER_DESCRIPTOR   Buffer[1];                  /* 0Ch */
  72. } MSG_TARGET_CMD_BUFFER_POST_REQUEST, MPI_POINTER PTR_MSG_TARGET_CMD_BUFFER_POST_REQUEST,
  73.   TargetCmdBufferPostRequest_t, MPI_POINTER pTargetCmdBufferPostRequest_t;
  74. #define CMD_BUFFER_POST_FLAGS_PORT_MASK         (0x01)
  75. #define CMD_BUFFER_POST_FLAGS_ADDR_MODE_MASK    (0x80)
  76. #define CMD_BUFFER_POST_FLAGS_ADDR_MODE_32      (0)
  77. #define CMD_BUFFER_POST_FLAGS_ADDR_MODE_64      (1)
  78. #define CMD_BUFFER_POST_FLAGS_64_BIT_ADDR       (0x80)
  79. #define CMD_BUFFER_POST_IO_INDEX_MASK           (0x00003FFF)
  80. #define CMD_BUFFER_POST_IO_INDEX_MASK_0100      (0x000003FF) /* obsolete */
  81. typedef struct _MSG_TARGET_CMD_BUFFER_POST_REPLY
  82. {
  83.     U8                      BufferPostFlags;            /* 00h */
  84.     U8                      BufferCount;                /* 01h */
  85.     U8                      MsgLength;                  /* 02h */
  86.     U8                      Function;                   /* 03h */
  87.     U8                      BufferLength;               /* 04h */
  88.     U8                      Reserved;                   /* 05h */
  89.     U8                      Reserved1;                  /* 06h */
  90.     U8                      MsgFlags;                   /* 07h */
  91.     U32                     MsgContext;                 /* 08h */
  92.     U16                     Reserved2;                  /* 0Ch */
  93.     U16                     IOCStatus;                  /* 0Eh */
  94.     U32                     IOCLogInfo;                 /* 10h */
  95. } MSG_TARGET_CMD_BUFFER_POST_REPLY, MPI_POINTER PTR_MSG_TARGET_CMD_BUFFER_POST_REPLY,
  96.   TargetCmdBufferPostReply_t, MPI_POINTER pTargetCmdBufferPostReply_t;
  97. /* the following structure is obsolete as of MPI v1.2 */
  98. typedef struct _MSG_PRIORITY_CMD_RECEIVED_REPLY
  99. {
  100.     U16                     Reserved;                   /* 00h */
  101.     U8                      MsgLength;                  /* 02h */
  102.     U8                      Function;                   /* 03h */
  103.     U16                     Reserved1;                  /* 04h */
  104.     U8                      Reserved2;                  /* 06h */
  105.     U8                      MsgFlags;                   /* 07h */
  106.     U32                     MsgContext;                 /* 08h */
  107.     U8                      PriorityReason;             /* 0Ch */
  108.     U8                      Reserved3;                  /* 0Dh */
  109.     U16                     IOCStatus;                  /* 0Eh */
  110.     U32                     IOCLogInfo;                 /* 10h */
  111.     U32                     ReplyWord;                  /* 14h */
  112. } MSG_PRIORITY_CMD_RECEIVED_REPLY, MPI_POINTER PTR_MSG_PRIORITY_CMD_RECEIVED_REPLY,
  113.   PriorityCommandReceivedReply_t, MPI_POINTER pPriorityCommandReceivedReply_t;
  114. #define PRIORITY_REASON_NO_DISCONNECT           (0x00)
  115. #define PRIORITY_REASON_SCSI_TASK_MANAGEMENT    (0x01)
  116. #define PRIORITY_REASON_CMD_PARITY_ERR          (0x02)
  117. #define PRIORITY_REASON_MSG_OUT_PARITY_ERR      (0x03)
  118. #define PRIORITY_REASON_LQ_CRC_ERR              (0x04)
  119. #define PRIORITY_REASON_CMD_CRC_ERR             (0x05)
  120. #define PRIORITY_REASON_PROTOCOL_ERR            (0x06)
  121. #define PRIORITY_REASON_DATA_OUT_PARITY_ERR     (0x07)
  122. #define PRIORITY_REASON_DATA_OUT_CRC_ERR        (0x08)
  123. #define PRIORITY_REASON_UNKNOWN                 (0xFF)
  124. typedef struct _MSG_TARGET_CMD_BUFFER_POST_ERROR_REPLY
  125. {
  126.     U16                     Reserved;                   /* 00h */
  127.     U8                      MsgLength;                  /* 02h */
  128.     U8                      Function;                   /* 03h */
  129.     U16                     Reserved1;                  /* 04h */
  130.     U8                      Reserved2;                  /* 06h */
  131.     U8                      MsgFlags;                   /* 07h */
  132.     U32                     MsgContext;                 /* 08h */
  133.     U8                      PriorityReason;             /* 0Ch */
  134.     U8                      Reserved3;                  /* 0Dh */
  135.     U16                     IOCStatus;                  /* 0Eh */
  136.     U32                     IOCLogInfo;                 /* 10h */
  137.     U32                     ReplyWord;                  /* 14h */
  138. } MSG_TARGET_CMD_BUFFER_POST_ERROR_REPLY,
  139.   MPI_POINTER PTR_MSG_TARGET_CMD_BUFFER_POST_ERROR_REPLY,
  140.   TargetCmdBufferPostErrorReply_t, MPI_POINTER pTargetCmdBufferPostErrorReply_t;
  141. typedef struct _MPI_TARGET_FCP_CMD_BUFFER
  142. {
  143.     U8      FcpLun[8];                                  /* 00h */
  144.     U8      FcpCntl[4];                                 /* 08h */
  145.     U8      FcpCdb[16];                                 /* 0Ch */
  146.     U32     FcpDl;                                      /* 1Ch */
  147. } MPI_TARGET_FCP_CMD_BUFFER, MPI_POINTER PTR_MPI_TARGET_FCP_CMD_BUFFER,
  148.   MpiTargetFcpCmdBuffer, MPI_POINTER pMpiTargetFcpCmdBuffer;
  149. typedef struct _MPI_TARGET_SCSI_SPI_CMD_BUFFER
  150. {
  151.     /* SPI L_Q information unit */
  152.     U8      L_QType;                                    /* 00h */
  153.     U8      Reserved;                                   /* 01h */
  154.     U16     Tag;                                        /* 02h */
  155.     U8      LogicalUnitNumber[8];                       /* 04h */
  156.     U32     DataLength;                                 /* 0Ch */
  157.     /* SPI command information unit */
  158.     U8      ReservedFirstByteOfCommandIU;               /* 10h */
  159.     U8      TaskAttribute;                              /* 11h */
  160.     U8      TaskManagementFlags;                        /* 12h */
  161.     U8      AdditionalCDBLength;                        /* 13h */
  162.     U8      CDB[16];                                    /* 14h */
  163. } MPI_TARGET_SCSI_SPI_CMD_BUFFER,
  164.   MPI_POINTER PTR_MPI_TARGET_SCSI_SPI_CMD_BUFFER,
  165.   MpiTargetScsiSpiCmdBuffer, MPI_POINTER pMpiTargetScsiSpiCmdBuffer;
  166. /****************************************************************************/
  167. /* Target Assist Request                                                    */
  168. /****************************************************************************/
  169. typedef struct _MSG_TARGET_ASSIST_REQUEST
  170. {
  171.     U8                      StatusCode;                 /* 00h */
  172.     U8                      TargetAssistFlags;          /* 01h */
  173.     U8                      ChainOffset;                /* 02h */
  174.     U8                      Function;                   /* 03h */
  175.     U16                     QueueTag;                   /* 04h */
  176.     U8                      Reserved;                   /* 06h */
  177.     U8                      MsgFlags;                   /* 07h */
  178.     U32                     MsgContext;                 /* 08h */
  179.     U32                     ReplyWord;                  /* 0Ch */
  180.     U8                      LUN[8];                     /* 10h */
  181.     U32                     RelativeOffset;             /* 18h */
  182.     U32                     DataLength;                 /* 1Ch */
  183.     SGE_IO_UNION            SGL[1];                     /* 20h */
  184. } MSG_TARGET_ASSIST_REQUEST, MPI_POINTER PTR_MSG_TARGET_ASSIST_REQUEST,
  185.   TargetAssistRequest_t, MPI_POINTER pTargetAssistRequest_t;
  186. #define TARGET_ASSIST_FLAGS_DATA_DIRECTION          (0x01)
  187. #define TARGET_ASSIST_FLAGS_AUTO_STATUS             (0x02)
  188. #define TARGET_ASSIST_FLAGS_HIGH_PRIORITY           (0x04)
  189. #define TARGET_ASSIST_FLAGS_REPOST_CMD_BUFFER       (0x80)
  190. typedef struct _MSG_TARGET_ERROR_REPLY
  191. {
  192.     U16                     Reserved;                   /* 00h */
  193.     U8                      MsgLength;                  /* 02h */
  194.     U8                      Function;                   /* 03h */
  195.     U16                     Reserved1;                  /* 04h */
  196.     U8                      Reserved2;                  /* 06h */
  197.     U8                      MsgFlags;                   /* 07h */
  198.     U32                     MsgContext;                 /* 08h */
  199.     U8                      PriorityReason;             /* 0Ch */
  200.     U8                      Reserved3;                  /* 0Dh */
  201.     U16                     IOCStatus;                  /* 0Eh */
  202.     U32                     IOCLogInfo;                 /* 10h */
  203.     U32                     ReplyWord;                  /* 14h */
  204.     U32                     TransferCount;              /* 18h */
  205. } MSG_TARGET_ERROR_REPLY, MPI_POINTER PTR_MSG_TARGET_ERROR_REPLY,
  206.   TargetErrorReply_t, MPI_POINTER pTargetErrorReply_t;
  207. /****************************************************************************/
  208. /* Target Status Send Request                                               */
  209. /****************************************************************************/
  210. typedef struct _MSG_TARGET_STATUS_SEND_REQUEST
  211. {
  212.     U8                      StatusCode;                 /* 00h */
  213.     U8                      StatusFlags;                /* 01h */
  214.     U8                      ChainOffset;                /* 02h */
  215.     U8                      Function;                   /* 03h */
  216.     U16                     QueueTag;                   /* 04h */
  217.     U8                      Reserved;                   /* 06h */
  218.     U8                      MsgFlags;                   /* 07h */
  219.     U32                     MsgContext;                 /* 08h */
  220.     U32                     ReplyWord;                  /* 0Ch */
  221.     U8                      LUN[8];                     /* 10h */
  222.     SGE_SIMPLE_UNION        StatusDataSGE;              /* 18h */
  223. } MSG_TARGET_STATUS_SEND_REQUEST, MPI_POINTER PTR_MSG_TARGET_STATUS_SEND_REQUEST,
  224.   TargetStatusSendRequest_t, MPI_POINTER pTargetStatusSendRequest_t;
  225. #define TARGET_STATUS_SEND_FLAGS_AUTO_GOOD_STATUS   (0x01)
  226. #define TARGET_STATUS_SEND_FLAGS_HIGH_PRIORITY      (0x04)
  227. #define TARGET_STATUS_SEND_FLAGS_REPOST_CMD_BUFFER  (0x80)
  228. typedef struct _MPI_TARGET_FCP_RSP_BUFFER
  229. {
  230.     U8      Reserved0[8];                               /* 00h */
  231.     U8      FcpStatus;                                  /* 08h */
  232.     U8      FcpFlags;                                   /* 09h */
  233.     U8      Reserved1[2];                               /* 0Ah */
  234.     U32     FcpResid;                                   /* 0Ch */
  235.     U32     FcpSenseLength;                             /* 10h */
  236.     U32     FcpResponseLength;                          /* 14h */
  237.     U8      FcpResponseData[8];                         /* 18h */
  238.     U8      FcpSenseData[32]; /* Pad to 64 bytes */     /* 20h */
  239. } MPI_TARGET_FCP_RSP_BUFFER, MPI_POINTER PTR_MPI_TARGET_FCP_RSP_BUFFER,
  240.   MpiTargetFcpRspBuffer, MPI_POINTER pMpiTargetFcpRspBuffer;
  241. typedef struct _MPI_TARGET_SCSI_SPI_STATUS_IU
  242. {
  243.     U8      Reserved0;                                  /* 00h */
  244.     U8      Reserved1;                                  /* 01h */
  245.     U8      Valid;                                      /* 02h */
  246.     U8      Status;                                     /* 03h */
  247.     U32     SenseDataListLength;                        /* 04h */
  248.     U32     PktFailuresListLength;                      /* 08h */
  249.     U8      SenseData[52]; /* Pad the IU to 64 bytes */ /* 0Ch */
  250. } MPI_TARGET_SCSI_SPI_STATUS_IU, MPI_POINTER PTR_MPI_TARGET_SCSI_SPI_STATUS_IU,
  251.   TargetScsiSpiStatusIU_t, MPI_POINTER pTargetScsiSpiStatusIU_t;
  252. /****************************************************************************/
  253. /* Target Mode Abort Request                                                */
  254. /****************************************************************************/
  255. typedef struct _MSG_TARGET_MODE_ABORT_REQUEST
  256. {
  257.     U8                      AbortType;                  /* 00h */
  258.     U8                      Reserved;                   /* 01h */
  259.     U8                      ChainOffset;                /* 02h */
  260.     U8                      Function;                   /* 03h */
  261.     U16                     Reserved1;                  /* 04h */
  262.     U8                      Reserved2;                  /* 06h */
  263.     U8                      MsgFlags;                   /* 07h */
  264.     U32                     MsgContext;                 /* 08h */
  265.     U32                     ReplyWord;                  /* 0Ch */
  266.     U32                     MsgContextToAbort;          /* 10h */
  267. } MSG_TARGET_MODE_ABORT, MPI_POINTER PTR_MSG_TARGET_MODE_ABORT,
  268.   TargetModeAbort_t, MPI_POINTER pTargetModeAbort_t;
  269. #define TARGET_MODE_ABORT_TYPE_ALL_CMD_BUFFERS      (0x00)
  270. #define TARGET_MODE_ABORT_TYPE_ALL_IO               (0x01)
  271. #define TARGET_MODE_ABORT_TYPE_EXACT_IO             (0x02)
  272. #define TARGET_MODE_ABORT_TYPE_EXACT_IO_REQUEST     (0x03)
  273. /* Target Mode Abort Reply */
  274. typedef struct _MSG_TARGET_MODE_ABORT_REPLY
  275. {
  276.     U16                     Reserved;                   /* 00h */
  277.     U8                      MsgLength;                  /* 02h */
  278.     U8                      Function;                   /* 03h */
  279.     U16                     Reserved1;                  /* 04h */
  280.     U8                      Reserved2;                  /* 06h */
  281.     U8                      MsgFlags;                   /* 07h */
  282.     U32                     MsgContext;                 /* 08h */
  283.     U16                     Reserved3;                  /* 0Ch */
  284.     U16                     IOCStatus;                  /* 0Eh */
  285.     U32                     IOCLogInfo;                 /* 10h */
  286.     U32                     AbortCount;                 /* 14h */
  287. } MSG_TARGET_MODE_ABORT_REPLY, MPI_POINTER PTR_MSG_TARGET_MODE_ABORT_REPLY,
  288.   TargetModeAbortReply_t, MPI_POINTER pTargetModeAbortReply_t;
  289. /****************************************************************************/
  290. /* Target Mode Context Reply                                                */
  291. /****************************************************************************/
  292. #define TARGET_MODE_REPLY_IO_INDEX_MASK         (0x00003FFF)
  293. #define TARGET_MODE_REPLY_IO_INDEX_SHIFT        (0)
  294. #define TARGET_MODE_REPLY_INITIATOR_INDEX_MASK  (0x03FFC000)
  295. #define TARGET_MODE_REPLY_INITIATOR_INDEX_SHIFT (14)
  296. #define TARGET_MODE_REPLY_ALIAS_MASK            (0x0C000000)
  297. #define TARGET_MODE_REPLY_ALIAS_SHIFT           (26)
  298. #define TARGET_MODE_REPLY_PORT_MASK             (0x10000000)
  299. #define TARGET_MODE_REPLY_PORT_SHIFT            (28)
  300. #define GET_IO_INDEX(x)     (((x) & TARGET_MODE_REPLY_IO_INDEX_MASK)           
  301.                                     >> TARGET_MODE_REPLY_IO_INDEX_SHIFT)
  302. #define SET_IO_INDEX(t, i)                                                     
  303.             ((t) = ((t) & ~TARGET_MODE_REPLY_IO_INDEX_MASK) |                  
  304.                               (((i) << TARGET_MODE_REPLY_IO_INDEX_SHIFT) &     
  305.                                              TARGET_MODE_REPLY_IO_INDEX_MASK))
  306. #define GET_INITIATOR_INDEX(x) (((x) & TARGET_MODE_REPLY_INITIATOR_INDEX_MASK) 
  307.                                    >> TARGET_MODE_REPLY_INITIATOR_INDEX_SHIFT)
  308. #define SET_INITIATOR_INDEX(t, ii)                                             
  309.         ((t) = ((t) & ~TARGET_MODE_REPLY_INITIATOR_INDEX_MASK) |               
  310.                         (((ii) << TARGET_MODE_REPLY_INITIATOR_INDEX_SHIFT) &   
  311.                                       TARGET_MODE_REPLY_INITIATOR_INDEX_MASK))
  312. #define GET_ALIAS(x) (((x) & TARGET_MODE_REPLY_ALIAS_MASK)                     
  313.                                                >> TARGET_MODE_REPLY_ALIAS_SHIFT)
  314. #define SET_ALIAS(t, a)  ((t) = ((t) & ~TARGET_MODE_REPLY_ALIAS_MASK) |        
  315.                                     (((a) << TARGET_MODE_REPLY_ALIAS_SHIFT) &  
  316.                                                  TARGET_MODE_REPLY_ALIAS_MASK))
  317. #define GET_PORT(x) (((x) & TARGET_MODE_REPLY_PORT_MASK)                       
  318.                                                >> TARGET_MODE_REPLY_PORT_SHIFT)
  319. #define SET_PORT(t, p)  ((t) = ((t) & ~TARGET_MODE_REPLY_PORT_MASK) |          
  320.                                     (((p) << TARGET_MODE_REPLY_PORT_SHIFT) &   
  321.                                                   TARGET_MODE_REPLY_PORT_MASK))
  322. /* the following obsolete values are for MPI v1.0 support */
  323. #define TARGET_MODE_REPLY_0100_MASK_HOST_INDEX       (0x000003FF)
  324. #define TARGET_MODE_REPLY_0100_SHIFT_HOST_INDEX      (0)
  325. #define TARGET_MODE_REPLY_0100_MASK_IOC_INDEX        (0x001FF800)
  326. #define TARGET_MODE_REPLY_0100_SHIFT_IOC_INDEX       (11)
  327. #define TARGET_MODE_REPLY_0100_PORT_MASK             (0x00400000)
  328. #define TARGET_MODE_REPLY_0100_PORT_SHIFT            (22)
  329. #define TARGET_MODE_REPLY_0100_MASK_INITIATOR_INDEX  (0x1F800000)
  330. #define TARGET_MODE_REPLY_0100_SHIFT_INITIATOR_INDEX (23)
  331. #define GET_HOST_INDEX_0100(x) (((x) & TARGET_MODE_REPLY_0100_MASK_HOST_INDEX) 
  332.                                   >> TARGET_MODE_REPLY_0100_SHIFT_HOST_INDEX)
  333. #define SET_HOST_INDEX_0100(t, hi)                                             
  334.             ((t) = ((t) & ~TARGET_MODE_REPLY_0100_MASK_HOST_INDEX) |           
  335.                          (((hi) << TARGET_MODE_REPLY_0100_SHIFT_HOST_INDEX) &  
  336.                                       TARGET_MODE_REPLY_0100_MASK_HOST_INDEX))
  337. #define GET_IOC_INDEX_0100(x)   (((x) & TARGET_MODE_REPLY_0100_MASK_IOC_INDEX) 
  338.                                   >> TARGET_MODE_REPLY_0100_SHIFT_IOC_INDEX)
  339. #define SET_IOC_INDEX_0100(t, ii)                                              
  340.             ((t) = ((t) & ~TARGET_MODE_REPLY_0100_MASK_IOC_INDEX) |            
  341.                         (((ii) << TARGET_MODE_REPLY_0100_SHIFT_IOC_INDEX) &    
  342.                                      TARGET_MODE_REPLY_0100_MASK_IOC_INDEX))
  343. #define GET_INITIATOR_INDEX_0100(x)                                            
  344.             (((x) & TARGET_MODE_REPLY_0100_MASK_INITIATOR_INDEX)               
  345.                               >> TARGET_MODE_REPLY_0100_SHIFT_INITIATOR_INDEX)
  346. #define SET_INITIATOR_INDEX_0100(t, ii)                                        
  347.         ((t) = ((t) & ~TARGET_MODE_REPLY_0100_MASK_INITIATOR_INDEX) |          
  348.                    (((ii) << TARGET_MODE_REPLY_0100_SHIFT_INITIATOR_INDEX) &   
  349.                                 TARGET_MODE_REPLY_0100_MASK_INITIATOR_INDEX))
  350. #endif