Go to the documentation of this file.
91 #define MPI2_VERSION_MAJOR (0x02)
92 #define MPI2_VERSION_MINOR (0x00)
93 #define MPI2_VERSION_MAJOR_MASK (0xFF00)
94 #define MPI2_VERSION_MAJOR_SHIFT (8)
95 #define MPI2_VERSION_MINOR_MASK (0x00FF)
96 #define MPI2_VERSION_MINOR_SHIFT (0)
97 #define MPI2_VERSION ((MPI2_VERSION_MAJOR << MPI2_VERSION_MAJOR_SHIFT) | \
100 #define MPI2_VERSION_02_00 (0x0200)
103 #define MPI2_HEADER_VERSION_UNIT (0x19)
104 #define MPI2_HEADER_VERSION_DEV (0x00)
105 #define MPI2_HEADER_VERSION_UNIT_MASK (0xFF00)
106 #define MPI2_HEADER_VERSION_UNIT_SHIFT (8)
107 #define MPI2_HEADER_VERSION_DEV_MASK (0x00FF)
108 #define MPI2_HEADER_VERSION_DEV_SHIFT (0)
109 #define MPI2_HEADER_VERSION ((MPI2_HEADER_VERSION_UNIT << 8) | MPI2_HEADER_VERSION_DEV)
118 #define MPI2_IOC_STATE_RESET (0x00000000)
119 #define MPI2_IOC_STATE_READY (0x10000000)
120 #define MPI2_IOC_STATE_OPERATIONAL (0x20000000)
121 #define MPI2_IOC_STATE_FAULT (0x40000000)
123 #define MPI2_IOC_STATE_MASK (0xF0000000)
124 #define MPI2_IOC_STATE_SHIFT (28)
127 #define MPI2_FAULT_PRODUCT_SPECIFIC_MIN (0x0000)
128 #define MPI2_FAULT_PRODUCT_SPECIFIC_MAX (0xEFFF)
169 #define MPI2_DOORBELL_OFFSET (0x00000000)
172 #define MPI2_DOORBELL_USED (0x08000000)
173 #define MPI2_DOORBELL_WHO_INIT_MASK (0x07000000)
174 #define MPI2_DOORBELL_WHO_INIT_SHIFT (24)
175 #define MPI2_DOORBELL_FAULT_CODE_MASK (0x0000FFFF)
176 #define MPI2_DOORBELL_DATA_MASK (0x0000FFFF)
179 #define MPI2_DOORBELL_FUNCTION_MASK (0xFF000000)
180 #define MPI2_DOORBELL_FUNCTION_SHIFT (24)
181 #define MPI2_DOORBELL_ADD_DWORDS_MASK (0x00FF0000)
182 #define MPI2_DOORBELL_ADD_DWORDS_SHIFT (16)
188 #define MPI2_WRITE_SEQUENCE_OFFSET (0x00000004)
189 #define MPI2_WRSEQ_KEY_VALUE_MASK (0x0000000F)
190 #define MPI2_WRSEQ_FLUSH_KEY_VALUE (0x0)
191 #define MPI2_WRSEQ_1ST_KEY_VALUE (0xF)
192 #define MPI2_WRSEQ_2ND_KEY_VALUE (0x4)
193 #define MPI2_WRSEQ_3RD_KEY_VALUE (0xB)
194 #define MPI2_WRSEQ_4TH_KEY_VALUE (0x2)
195 #define MPI2_WRSEQ_5TH_KEY_VALUE (0x7)
196 #define MPI2_WRSEQ_6TH_KEY_VALUE (0xD)
201 #define MPI2_HOST_DIAGNOSTIC_OFFSET (0x00000008)
203 #define MPI2_DIAG_BOOT_DEVICE_SELECT_MASK (0x00001800)
204 #define MPI2_DIAG_BOOT_DEVICE_SELECT_DEFAULT (0x00000000)
205 #define MPI2_DIAG_BOOT_DEVICE_SELECT_HCDW (0x00000800)
207 #define MPI2_DIAG_CLEAR_FLASH_BAD_SIG (0x00000400)
208 #define MPI2_DIAG_FORCE_HCB_ON_RESET (0x00000200)
209 #define MPI2_DIAG_HCB_MODE (0x00000100)
210 #define MPI2_DIAG_DIAG_WRITE_ENABLE (0x00000080)
211 #define MPI2_DIAG_FLASH_BAD_SIG (0x00000040)
212 #define MPI2_DIAG_RESET_HISTORY (0x00000020)
213 #define MPI2_DIAG_DIAG_RW_ENABLE (0x00000010)
214 #define MPI2_DIAG_RESET_ADAPTER (0x00000004)
215 #define MPI2_DIAG_HOLD_IOC_RESET (0x00000002)
220 #define MPI2_DIAG_RW_DATA_OFFSET (0x00000010)
221 #define MPI2_DIAG_RW_ADDRESS_LOW_OFFSET (0x00000014)
222 #define MPI2_DIAG_RW_ADDRESS_HIGH_OFFSET (0x00000018)
227 #define MPI2_HOST_INTERRUPT_STATUS_OFFSET (0x00000030)
228 #define MPI2_HIS_SYS2IOC_DB_STATUS (0x80000000)
229 #define MPI2_HIS_IOP_DOORBELL_STATUS MPI2_HIS_SYS2IOC_DB_STATUS
230 #define MPI2_HIS_RESET_IRQ_STATUS (0x40000000)
231 #define MPI2_HIS_REPLY_DESCRIPTOR_INTERRUPT (0x00000008)
232 #define MPI2_HIS_IOC2SYS_DB_STATUS (0x00000001)
233 #define MPI2_HIS_DOORBELL_INTERRUPT MPI2_HIS_IOC2SYS_DB_STATUS
238 #define MPI2_HOST_INTERRUPT_MASK_OFFSET (0x00000034)
239 #define MPI2_HIM_RESET_IRQ_MASK (0x40000000)
240 #define MPI2_HIM_REPLY_INT_MASK (0x00000008)
241 #define MPI2_HIM_RIM MPI2_HIM_REPLY_INT_MASK
242 #define MPI2_HIM_IOC2SYS_DB_MASK (0x00000001)
243 #define MPI2_HIM_DIM MPI2_HIM_IOC2SYS_DB_MASK
248 #define MPI2_DCR_DATA_OFFSET (0x00000038)
249 #define MPI2_DCR_ADDRESS_OFFSET (0x0000003C)
254 #define MPI2_REPLY_FREE_HOST_INDEX_OFFSET (0x00000048)
259 #define MPI2_REPLY_POST_HOST_INDEX_OFFSET (0x0000006C)
260 #define MPI2_REPLY_POST_HOST_INDEX_MASK (0x00FFFFFF)
261 #define MPI2_RPHI_MSIX_INDEX_MASK (0xFF000000)
262 #define MPI2_RPHI_MSIX_INDEX_SHIFT (24)
267 #define MPI2_HCB_SIZE_OFFSET (0x00000074)
268 #define MPI2_HCB_SIZE_SIZE_MASK (0xFFFFF000)
269 #define MPI2_HCB_SIZE_HCB_ENABLE (0x00000001)
271 #define MPI2_HCB_ADDRESS_LOW_OFFSET (0x00000078)
272 #define MPI2_HCB_ADDRESS_HIGH_OFFSET (0x0000007C)
277 #define MPI2_REQUEST_DESCRIPTOR_POST_LOW_OFFSET (0x000000C0)
278 #define MPI2_REQUEST_DESCRIPTOR_POST_HIGH_OFFSET (0x000000C4)
282 #define MPI2_HARD_RESET_PCIE_FIRST_READ_DELAY_MICRO_SEC (50000)
283 #define MPI2_HARD_RESET_PCIE_RESET_READ_WINDOW_MICRO_SEC (255000)
284 #define MPI2_HARD_RESET_PCIE_SECOND_READ_DELAY_MICRO_SEC (256000)
307 #define MPI2_REQ_DESCRIPT_FLAGS_TYPE_MASK (0x0E)
308 #define MPI2_REQ_DESCRIPT_FLAGS_SCSI_IO (0x00)
309 #define MPI2_REQ_DESCRIPT_FLAGS_SCSI_TARGET (0x02)
310 #define MPI2_REQ_DESCRIPT_FLAGS_HIGH_PRIORITY (0x06)
311 #define MPI2_REQ_DESCRIPT_FLAGS_DEFAULT_TYPE (0x08)
312 #define MPI2_REQ_DESCRIPT_FLAGS_RAID_ACCELERATOR (0x0A)
314 #define MPI2_REQ_DESCRIPT_FLAGS_IOC_FIFO_MARKER (0x01)
397 #define MPI2_RPY_DESCRIPT_FLAGS_TYPE_MASK (0x0F)
398 #define MPI2_RPY_DESCRIPT_FLAGS_SCSI_IO_SUCCESS (0x00)
399 #define MPI2_RPY_DESCRIPT_FLAGS_ADDRESS_REPLY (0x01)
400 #define MPI2_RPY_DESCRIPT_FLAGS_TARGETASSIST_SUCCESS (0x02)
401 #define MPI2_RPY_DESCRIPT_FLAGS_TARGET_COMMAND_BUFFER (0x03)
402 #define MPI2_RPY_DESCRIPT_FLAGS_RAID_ACCELERATOR_SUCCESS (0x05)
403 #define MPI2_RPY_DESCRIPT_FLAGS_UNUSED (0x0F)
406 #define MPI2_RPY_DESCRIPT_UNUSED_WORD0_MARK (0xFFFFFFFF)
407 #define MPI2_RPY_DESCRIPT_UNUSED_WORD1_MARK (0xFFFFFFFF)
419 #define MPI2_ADDRESS_REPLY_SMID_INVALID (0x00)
466 #define MPI2_RPY_DESCRIPT_TCB_FLAGS_PHYNUM_MASK (0x3F)
502 #define MPI2_FUNCTION_SCSI_IO_REQUEST (0x00)
503 #define MPI2_FUNCTION_SCSI_TASK_MGMT (0x01)
504 #define MPI2_FUNCTION_IOC_INIT (0x02)
505 #define MPI2_FUNCTION_IOC_FACTS (0x03)
506 #define MPI2_FUNCTION_CONFIG (0x04)
507 #define MPI2_FUNCTION_PORT_FACTS (0x05)
508 #define MPI2_FUNCTION_PORT_ENABLE (0x06)
509 #define MPI2_FUNCTION_EVENT_NOTIFICATION (0x07)
510 #define MPI2_FUNCTION_EVENT_ACK (0x08)
511 #define MPI2_FUNCTION_FW_DOWNLOAD (0x09)
512 #define MPI2_FUNCTION_TARGET_ASSIST (0x0B)
513 #define MPI2_FUNCTION_TARGET_STATUS_SEND (0x0C)
514 #define MPI2_FUNCTION_TARGET_MODE_ABORT (0x0D)
515 #define MPI2_FUNCTION_FW_UPLOAD (0x12)
516 #define MPI2_FUNCTION_RAID_ACTION (0x15)
517 #define MPI2_FUNCTION_RAID_SCSI_IO_PASSTHROUGH (0x16)
518 #define MPI2_FUNCTION_TOOLBOX (0x17)
519 #define MPI2_FUNCTION_SCSI_ENCLOSURE_PROCESSOR (0x18)
520 #define MPI2_FUNCTION_SMP_PASSTHROUGH (0x1A)
521 #define MPI2_FUNCTION_SAS_IO_UNIT_CONTROL (0x1B)
522 #define MPI2_FUNCTION_SATA_PASSTHROUGH (0x1C)
523 #define MPI2_FUNCTION_DIAG_BUFFER_POST (0x1D)
524 #define MPI2_FUNCTION_DIAG_RELEASE (0x1E)
525 #define MPI2_FUNCTION_TARGET_CMD_BUF_BASE_POST (0x24)
526 #define MPI2_FUNCTION_TARGET_CMD_BUF_LIST_POST (0x25)
527 #define MPI2_FUNCTION_RAID_ACCELERATOR (0x2C)
529 #define MPI2_FUNCTION_HOST_BASED_DISCOVERY_ACTION (0x2F)
531 #define MPI2_FUNCTION_PWR_MGMT_CONTROL (0x30)
533 #define MPI2_FUNCTION_SEND_HOST_MESSAGE (0x31)
535 #define MPI2_FUNCTION_MIN_PRODUCT_SPECIFIC (0xF0)
537 #define MPI2_FUNCTION_MAX_PRODUCT_SPECIFIC (0xFF)
543 #define MPI2_FUNCTION_IOC_MESSAGE_UNIT_RESET (0x40)
544 #define MPI2_FUNCTION_HANDSHAKE (0x42)
554 #define MPI2_IOCSTATUS_MASK (0x7FFF)
560 #define MPI2_IOCSTATUS_SUCCESS (0x0000)
561 #define MPI2_IOCSTATUS_INVALID_FUNCTION (0x0001)
562 #define MPI2_IOCSTATUS_BUSY (0x0002)
563 #define MPI2_IOCSTATUS_INVALID_SGL (0x0003)
564 #define MPI2_IOCSTATUS_INTERNAL_ERROR (0x0004)
565 #define MPI2_IOCSTATUS_INVALID_VPID (0x0005)
566 #define MPI2_IOCSTATUS_INSUFFICIENT_RESOURCES (0x0006)
567 #define MPI2_IOCSTATUS_INVALID_FIELD (0x0007)
568 #define MPI2_IOCSTATUS_INVALID_STATE (0x0008)
569 #define MPI2_IOCSTATUS_OP_STATE_NOT_SUPPORTED (0x0009)
575 #define MPI2_IOCSTATUS_CONFIG_INVALID_ACTION (0x0020)
576 #define MPI2_IOCSTATUS_CONFIG_INVALID_TYPE (0x0021)
577 #define MPI2_IOCSTATUS_CONFIG_INVALID_PAGE (0x0022)
578 #define MPI2_IOCSTATUS_CONFIG_INVALID_DATA (0x0023)
579 #define MPI2_IOCSTATUS_CONFIG_NO_DEFAULTS (0x0024)
580 #define MPI2_IOCSTATUS_CONFIG_CANT_COMMIT (0x0025)
586 #define MPI2_IOCSTATUS_SCSI_RECOVERED_ERROR (0x0040)
587 #define MPI2_IOCSTATUS_SCSI_INVALID_DEVHANDLE (0x0042)
588 #define MPI2_IOCSTATUS_SCSI_DEVICE_NOT_THERE (0x0043)
589 #define MPI2_IOCSTATUS_SCSI_DATA_OVERRUN (0x0044)
590 #define MPI2_IOCSTATUS_SCSI_DATA_UNDERRUN (0x0045)
591 #define MPI2_IOCSTATUS_SCSI_IO_DATA_ERROR (0x0046)
592 #define MPI2_IOCSTATUS_SCSI_PROTOCOL_ERROR (0x0047)
593 #define MPI2_IOCSTATUS_SCSI_TASK_TERMINATED (0x0048)
594 #define MPI2_IOCSTATUS_SCSI_RESIDUAL_MISMATCH (0x0049)
595 #define MPI2_IOCSTATUS_SCSI_TASK_MGMT_FAILED (0x004A)
596 #define MPI2_IOCSTATUS_SCSI_IOC_TERMINATED (0x004B)
597 #define MPI2_IOCSTATUS_SCSI_EXT_TERMINATED (0x004C)
603 #define MPI2_IOCSTATUS_EEDP_GUARD_ERROR (0x004D)
604 #define MPI2_IOCSTATUS_EEDP_REF_TAG_ERROR (0x004E)
605 #define MPI2_IOCSTATUS_EEDP_APP_TAG_ERROR (0x004F)
611 #define MPI2_IOCSTATUS_TARGET_INVALID_IO_INDEX (0x0062)
612 #define MPI2_IOCSTATUS_TARGET_ABORTED (0x0063)
613 #define MPI2_IOCSTATUS_TARGET_NO_CONN_RETRYABLE (0x0064)
614 #define MPI2_IOCSTATUS_TARGET_NO_CONNECTION (0x0065)
615 #define MPI2_IOCSTATUS_TARGET_XFER_COUNT_MISMATCH (0x006A)
616 #define MPI2_IOCSTATUS_TARGET_DATA_OFFSET_ERROR (0x006D)
617 #define MPI2_IOCSTATUS_TARGET_TOO_MUCH_WRITE_DATA (0x006E)
618 #define MPI2_IOCSTATUS_TARGET_IU_TOO_SHORT (0x006F)
619 #define MPI2_IOCSTATUS_TARGET_ACK_NAK_TIMEOUT (0x0070)
620 #define MPI2_IOCSTATUS_TARGET_NAK_RECEIVED (0x0071)
626 #define MPI2_IOCSTATUS_SAS_SMP_REQUEST_FAILED (0x0090)
627 #define MPI2_IOCSTATUS_SAS_SMP_DATA_OVERRUN (0x0091)
633 #define MPI2_IOCSTATUS_DIAGNOSTIC_RELEASED (0x00A0)
639 #define MPI2_IOCSTATUS_RAID_ACCEL_ERROR (0x00B0)
645 #define MPI2_IOCSTATUS_FLAG_LOG_INFO_AVAILABLE (0x8000)
651 #define MPI2_IOCLOGINFO_TYPE_MASK (0xF0000000)
652 #define MPI2_IOCLOGINFO_TYPE_SHIFT (28)
653 #define MPI2_IOCLOGINFO_TYPE_NONE (0x0)
654 #define MPI2_IOCLOGINFO_TYPE_SCSI (0x1)
655 #define MPI2_IOCLOGINFO_TYPE_FC (0x2)
656 #define MPI2_IOCLOGINFO_TYPE_SAS (0x3)
657 #define MPI2_IOCLOGINFO_TYPE_ISCSI (0x4)
658 #define MPI2_IOCLOGINFO_LOG_DATA_MASK (0x0FFFFFFF)
726 #define MPI2_LUN_FIRST_LEVEL_ADDRESSING (0x0000FFFF)
727 #define MPI2_LUN_SECOND_LEVEL_ADDRESSING (0xFFFF0000)
728 #define MPI2_LUN_THIRD_LEVEL_ADDRESSING (0x0000FFFF)
729 #define MPI2_LUN_FOURTH_LEVEL_ADDRESSING (0xFFFF0000)
730 #define MPI2_LUN_LEVEL_1_WORD (0xFF00)
731 #define MPI2_LUN_LEVEL_1_DWORD (0x0000FF00)
924 #define MPI2_SGE_FLAGS_LAST_ELEMENT (0x80)
925 #define MPI2_SGE_FLAGS_END_OF_BUFFER (0x40)
926 #define MPI2_SGE_FLAGS_ELEMENT_TYPE_MASK (0x30)
927 #define MPI2_SGE_FLAGS_LOCAL_ADDRESS (0x08)
928 #define MPI2_SGE_FLAGS_DIRECTION (0x04)
929 #define MPI2_SGE_FLAGS_ADDRESS_SIZE (0x02)
930 #define MPI2_SGE_FLAGS_END_OF_LIST (0x01)
932 #define MPI2_SGE_FLAGS_SHIFT (24)
934 #define MPI2_SGE_LENGTH_MASK (0x00FFFFFF)
935 #define MPI2_SGE_CHAIN_LENGTH_MASK (0x0000FFFF)
939 #define MPI2_SGE_FLAGS_TRANSACTION_ELEMENT (0x00)
940 #define MPI2_SGE_FLAGS_SIMPLE_ELEMENT (0x10)
941 #define MPI2_SGE_FLAGS_CHAIN_ELEMENT (0x30)
942 #define MPI2_SGE_FLAGS_ELEMENT_MASK (0x30)
946 #define MPI2_SGE_FLAGS_SYSTEM_ADDRESS (0x00)
950 #define MPI2_SGE_FLAGS_IOC_TO_HOST (0x00)
951 #define MPI2_SGE_FLAGS_HOST_TO_IOC (0x04)
953 #define MPI2_SGE_FLAGS_DEST (MPI2_SGE_FLAGS_IOC_TO_HOST)
954 #define MPI2_SGE_FLAGS_SOURCE (MPI2_SGE_FLAGS_HOST_TO_IOC)
958 #define MPI2_SGE_FLAGS_32_BIT_ADDRESSING (0x00)
959 #define MPI2_SGE_FLAGS_64_BIT_ADDRESSING (0x02)
963 #define MPI2_SGE_FLAGS_32_BIT_CONTEXT (0x00)
964 #define MPI2_SGE_FLAGS_64_BIT_CONTEXT (0x02)
965 #define MPI2_SGE_FLAGS_96_BIT_CONTEXT (0x04)
966 #define MPI2_SGE_FLAGS_128_BIT_CONTEXT (0x06)
968 #define MPI2_SGE_CHAIN_OFFSET_MASK (0x00FF0000)
969 #define MPI2_SGE_CHAIN_OFFSET_SHIFT (16)
976 #define MPI2_SGE_SET_FLAGS(f) ((U32)(f) << MPI2_SGE_FLAGS_SHIFT)
977 #define MPI2_SGE_GET_FLAGS(f) (((f) & ~MPI2_SGE_LENGTH_MASK) >> MPI2_SGE_FLAGS_SHIFT)
978 #define MPI2_SGE_LENGTH(f) ((f) & MPI2_SGE_LENGTH_MASK)
979 #define MPI2_SGE_CHAIN_LENGTH(f) ((f) & MPI2_SGE_CHAIN_LENGTH_MASK)
981 #define MPI2_SGE_SET_FLAGS_LENGTH(f,l) (MPI2_SGE_SET_FLAGS(f) | MPI2_SGE_LENGTH(l))
983 #define MPI2_pSGE_GET_FLAGS(psg) MPI2_SGE_GET_FLAGS((psg)->FlagsLength)
984 #define MPI2_pSGE_GET_LENGTH(psg) MPI2_SGE_LENGTH((psg)->FlagsLength)
985 #define MPI2_pSGE_SET_FLAGS_LENGTH(psg,f,l) (psg)->FlagsLength = MPI2_SGE_SET_FLAGS_LENGTH(f,l)
988 #define MPI2_pSGE_SET_FLAGS(psg,f) (psg)->FlagsLength |= MPI2_SGE_SET_FLAGS(f)
989 #define MPI2_pSGE_SET_LENGTH(psg,l) (psg)->FlagsLength |= MPI2_SGE_LENGTH(l)
991 #define MPI2_GET_CHAIN_OFFSET(x) ((x & MPI2_SGE_CHAIN_OFFSET_MASK) >> MPI2_SGE_CHAIN_OFFSET_SHIFT)
1066 #define MPI2_IEEE_SGE_FLAGS_ELEMENT_TYPE_MASK (0x80)
1068 #define MPI2_IEEE32_SGE_FLAGS_SHIFT (24)
1070 #define MPI2_IEEE32_SGE_LENGTH_MASK (0x00FFFFFF)
1074 #define MPI2_IEEE_SGE_FLAGS_SIMPLE_ELEMENT (0x00)
1075 #define MPI2_IEEE_SGE_FLAGS_CHAIN_ELEMENT (0x80)
1079 #define MPI2_IEEE_SGE_FLAGS_ADDR_MASK (0x03)
1080 #define MPI2_IEEE_SGE_FLAGS_SYSTEM_ADDR (0x00)
1082 #define MPI2_IEEE_SGE_FLAGS_IOCDDR_ADDR (0x01)
1084 #define MPI2_IEEE_SGE_FLAGS_IOCPLB_ADDR (0x02)
1085 #define MPI2_IEEE_SGE_FLAGS_IOCPLBNTA_ADDR (0x03)
1087 #define MPI2_IEEE_SGE_FLAGS_SYSTEMPLBPCI_ADDR (0x03)
1089 #define MPI2_IEEE_SGE_FLAGS_SYSTEMPLBCPI_ADDR \
1090 (MPI2_IEEE_SGE_FLAGS_SYSTEMPLBPCI_ADDR)
1097 #define MPI2_IEEE32_SGE_SET_FLAGS(f) ((U32)(f) << MPI2_IEEE32_SGE_FLAGS_SHIFT)
1098 #define MPI2_IEEE32_SGE_GET_FLAGS(f) (((f) & ~MPI2_IEEE32_SGE_LENGTH_MASK) >> MPI2_IEEE32_SGE_FLAGS_SHIFT)
1099 #define MPI2_IEEE32_SGE_LENGTH(f) ((f) & MPI2_IEEE32_SGE_LENGTH_MASK)
1101 #define MPI2_IEEE32_SGE_SET_FLAGS_LENGTH(f, l) (MPI2_IEEE32_SGE_SET_FLAGS(f) | MPI2_IEEE32_SGE_LENGTH(l))
1103 #define MPI2_IEEE32_pSGE_GET_FLAGS(psg) MPI2_IEEE32_SGE_GET_FLAGS((psg)->FlagsLength)
1104 #define MPI2_IEEE32_pSGE_GET_LENGTH(psg) MPI2_IEEE32_SGE_LENGTH((psg)->FlagsLength)
1105 #define MPI2_IEEE32_pSGE_SET_FLAGS_LENGTH(psg,f,l) (psg)->FlagsLength = MPI2_IEEE32_SGE_SET_FLAGS_LENGTH(f,l)
1108 #define MPI2_IEEE32_pSGE_SET_FLAGS(psg,f) (psg)->FlagsLength |= MPI2_IEEE32_SGE_SET_FLAGS(f)
1109 #define MPI2_IEEE32_pSGE_SET_LENGTH(psg,l) (psg)->FlagsLength |= MPI2_IEEE32_SGE_LENGTH(l)
1145 #define MPI2_SGLFLAGS_ADDRESS_SPACE_MASK (0x0C)
1146 #define MPI2_SGLFLAGS_SYSTEM_ADDRESS_SPACE (0x00)
1147 #define MPI2_SGLFLAGS_IOCDDR_ADDRESS_SPACE (0x04)
1148 #define MPI2_SGLFLAGS_IOCPLB_ADDRESS_SPACE (0x08)
1149 #define MPI2_SGLFLAGS_IOCPLBNTA_ADDRESS_SPACE (0x0C)
1151 #define MPI2_SGLFLAGS_SGL_TYPE_MASK (0x03)
1152 #define MPI2_SGLFLAGS_SGL_TYPE_MPI (0x00)
1153 #define MPI2_SGLFLAGS_SGL_TYPE_IEEE32 (0x01)
1154 #define MPI2_SGLFLAGS_SGL_TYPE_IEEE64 (0x02)