Go to the documentation of this file.
103 #define CMD_BUFFER_POST_FLAGS_PORT_MASK (0x01)
104 #define CMD_BUFFER_POST_FLAGS_ADDR_MODE_MASK (0x80)
105 #define CMD_BUFFER_POST_FLAGS_ADDR_MODE_32 (0)
106 #define CMD_BUFFER_POST_FLAGS_ADDR_MODE_64 (1)
107 #define CMD_BUFFER_POST_FLAGS_64_BIT_ADDR (0x80)
109 #define CMD_BUFFER_POST_IO_INDEX_MASK (0x00003FFF)
110 #define CMD_BUFFER_POST_IO_INDEX_MASK_0100 (0x000003FF)
167 #define PRIORITY_REASON_NO_DISCONNECT (0x00)
168 #define PRIORITY_REASON_SCSI_TASK_MANAGEMENT (0x01)
169 #define PRIORITY_REASON_CMD_PARITY_ERR (0x02)
170 #define PRIORITY_REASON_MSG_OUT_PARITY_ERR (0x03)
171 #define PRIORITY_REASON_LQ_CRC_ERR (0x04)
172 #define PRIORITY_REASON_CMD_CRC_ERR (0x05)
173 #define PRIORITY_REASON_PROTOCOL_ERR (0x06)
174 #define PRIORITY_REASON_DATA_OUT_PARITY_ERR (0x07)
175 #define PRIORITY_REASON_DATA_OUT_CRC_ERR (0x08)
176 #define PRIORITY_REASON_TARGET_BUSY (0x09)
177 #define PRIORITY_REASON_UNKNOWN (0xFF)
204 #define CMD_BUFFER_POST_BASE_FLAGS_AUTO_POST_ALL (0x01)
349 #define TARGET_ASSIST_FLAGS_DATA_DIRECTION (0x01)
350 #define TARGET_ASSIST_FLAGS_AUTO_STATUS (0x02)
351 #define TARGET_ASSIST_FLAGS_HIGH_PRIORITY (0x04)
352 #define TARGET_ASSIST_FLAGS_CONFIRMED (0x08)
353 #define TARGET_ASSIST_FLAGS_REPOST_CMD_BUFFER (0x80)
418 #define TARGET_ASSIST_EXT_MSGFLAGS_BIDIRECTIONAL (0x20)
419 #define TARGET_ASSIST_EXT_MSGFLAGS_MULTICAST (0x10)
420 #define TARGET_ASSIST_EXT_MSGFLAGS_SGL_OFFSET_CHAINS (0x08)
423 #define TARGET_ASSIST_EXT_EEDP_MASK_OP (0x0007)
424 #define TARGET_ASSIST_EXT_EEDP_NOOP_OP (0x0000)
425 #define TARGET_ASSIST_EXT_EEDP_CHK_OP (0x0001)
426 #define TARGET_ASSIST_EXT_EEDP_STRIP_OP (0x0002)
427 #define TARGET_ASSIST_EXT_EEDP_CHKRM_OP (0x0003)
428 #define TARGET_ASSIST_EXT_EEDP_INSERT_OP (0x0004)
429 #define TARGET_ASSIST_EXT_EEDP_REPLACE_OP (0x0006)
430 #define TARGET_ASSIST_EXT_EEDP_CHKREGEN_OP (0x0007)
432 #define TARGET_ASSIST_EXT_EEDP_PASS_REF_TAG (0x0008)
434 #define TARGET_ASSIST_EXT_EEDP_T10_CHK_MASK (0x0700)
435 #define TARGET_ASSIST_EXT_EEDP_T10_CHK_GUARD (0x0100)
436 #define TARGET_ASSIST_EXT_EEDP_T10_CHK_APPTAG (0x0200)
437 #define TARGET_ASSIST_EXT_EEDP_T10_CHK_REFTAG (0x0400)
438 #define TARGET_ASSIST_EXT_EEDP_T10_CHK_SHIFT (8)
440 #define TARGET_ASSIST_EXT_EEDP_INC_SEC_APPTAG (0x1000)
441 #define TARGET_ASSIST_EXT_EEDP_INC_PRI_APPTAG (0x2000)
442 #define TARGET_ASSIST_EXT_EEDP_INC_SEC_REFTAG (0x4000)
443 #define TARGET_ASSIST_EXT_EEDP_INC_PRI_REFTAG (0x8000)
466 #define TARGET_STATUS_SEND_FLAGS_AUTO_GOOD_STATUS (0x01)
467 #define TARGET_STATUS_SEND_FLAGS_HIGH_PRIORITY (0x04)
468 #define TARGET_STATUS_SEND_FLAGS_CONFIRMED (0x08)
469 #define TARGET_STATUS_SEND_FLAGS_REPOST_CMD_BUFFER (0x80)
545 #define TARGET_MODE_ABORT_TYPE_ALL_CMD_BUFFERS (0x00)
546 #define TARGET_MODE_ABORT_TYPE_ALL_IO (0x01)
547 #define TARGET_MODE_ABORT_TYPE_EXACT_IO (0x02)
548 #define TARGET_MODE_ABORT_TYPE_EXACT_IO_REQUEST (0x03)
573 #define TARGET_MODE_REPLY_IO_INDEX_MASK (0x00003FFF)
574 #define TARGET_MODE_REPLY_IO_INDEX_SHIFT (0)
575 #define TARGET_MODE_REPLY_INITIATOR_INDEX_MASK (0x03FFC000)
576 #define TARGET_MODE_REPLY_INITIATOR_INDEX_SHIFT (14)
577 #define TARGET_MODE_REPLY_ALIAS_MASK (0x04000000)
578 #define TARGET_MODE_REPLY_ALIAS_SHIFT (26)
579 #define TARGET_MODE_REPLY_PORT_MASK (0x10000000)
580 #define TARGET_MODE_REPLY_PORT_SHIFT (28)
583 #define GET_IO_INDEX(x) (((x) & TARGET_MODE_REPLY_IO_INDEX_MASK) \
584 >> TARGET_MODE_REPLY_IO_INDEX_SHIFT)
586 #define SET_IO_INDEX(t, i) \
587 ((t) = ((t) & ~TARGET_MODE_REPLY_IO_INDEX_MASK) | \
588 (((i) << TARGET_MODE_REPLY_IO_INDEX_SHIFT) & \
589 TARGET_MODE_REPLY_IO_INDEX_MASK))
591 #define GET_INITIATOR_INDEX(x) (((x) & TARGET_MODE_REPLY_INITIATOR_INDEX_MASK) \
592 >> TARGET_MODE_REPLY_INITIATOR_INDEX_SHIFT)
594 #define SET_INITIATOR_INDEX(t, ii) \
595 ((t) = ((t) & ~TARGET_MODE_REPLY_INITIATOR_INDEX_MASK) | \
596 (((ii) << TARGET_MODE_REPLY_INITIATOR_INDEX_SHIFT) & \
597 TARGET_MODE_REPLY_INITIATOR_INDEX_MASK))
599 #define GET_ALIAS(x) (((x) & TARGET_MODE_REPLY_ALIAS_MASK) \
600 >> TARGET_MODE_REPLY_ALIAS_SHIFT)
602 #define SET_ALIAS(t, a) ((t) = ((t) & ~TARGET_MODE_REPLY_ALIAS_MASK) | \
603 (((a) << TARGET_MODE_REPLY_ALIAS_SHIFT) & \
604 TARGET_MODE_REPLY_ALIAS_MASK))
606 #define GET_PORT(x) (((x) & TARGET_MODE_REPLY_PORT_MASK) \
607 >> TARGET_MODE_REPLY_PORT_SHIFT)
609 #define SET_PORT(t, p) ((t) = ((t) & ~TARGET_MODE_REPLY_PORT_MASK) | \
610 (((p) << TARGET_MODE_REPLY_PORT_SHIFT) & \
611 TARGET_MODE_REPLY_PORT_MASK))
614 #define TARGET_MODE_REPLY_0100_MASK_HOST_INDEX (0x000003FF)
615 #define TARGET_MODE_REPLY_0100_SHIFT_HOST_INDEX (0)
616 #define TARGET_MODE_REPLY_0100_MASK_IOC_INDEX (0x001FF800)
617 #define TARGET_MODE_REPLY_0100_SHIFT_IOC_INDEX (11)
618 #define TARGET_MODE_REPLY_0100_PORT_MASK (0x00400000)
619 #define TARGET_MODE_REPLY_0100_PORT_SHIFT (22)
620 #define TARGET_MODE_REPLY_0100_MASK_INITIATOR_INDEX (0x1F800000)
621 #define TARGET_MODE_REPLY_0100_SHIFT_INITIATOR_INDEX (23)
623 #define GET_HOST_INDEX_0100(x) (((x) & TARGET_MODE_REPLY_0100_MASK_HOST_INDEX) \
624 >> TARGET_MODE_REPLY_0100_SHIFT_HOST_INDEX)
626 #define SET_HOST_INDEX_0100(t, hi) \
627 ((t) = ((t) & ~TARGET_MODE_REPLY_0100_MASK_HOST_INDEX) | \
628 (((hi) << TARGET_MODE_REPLY_0100_SHIFT_HOST_INDEX) & \
629 TARGET_MODE_REPLY_0100_MASK_HOST_INDEX))
631 #define GET_IOC_INDEX_0100(x) (((x) & TARGET_MODE_REPLY_0100_MASK_IOC_INDEX) \
632 >> TARGET_MODE_REPLY_0100_SHIFT_IOC_INDEX)
634 #define SET_IOC_INDEX_0100(t, ii) \
635 ((t) = ((t) & ~TARGET_MODE_REPLY_0100_MASK_IOC_INDEX) | \
636 (((ii) << TARGET_MODE_REPLY_0100_SHIFT_IOC_INDEX) & \
637 TARGET_MODE_REPLY_0100_MASK_IOC_INDEX))
639 #define GET_INITIATOR_INDEX_0100(x) \
640 (((x) & TARGET_MODE_REPLY_0100_MASK_INITIATOR_INDEX) \
641 >> TARGET_MODE_REPLY_0100_SHIFT_INITIATOR_INDEX)
643 #define SET_INITIATOR_INDEX_0100(t, ii) \
644 ((t) = ((t) & ~TARGET_MODE_REPLY_0100_MASK_INITIATOR_INDEX) | \
645 (((ii) << TARGET_MODE_REPLY_0100_SHIFT_INITIATOR_INDEX) & \
646 TARGET_MODE_REPLY_0100_MASK_INITIATOR_INDEX))