Go to the documentation of this file.
170 #define MPI2_WHOINIT_NOT_INITIALIZED (0x00)
171 #define MPI2_WHOINIT_SYSTEM_BIOS (0x01)
172 #define MPI2_WHOINIT_ROM_BIOS (0x02)
173 #define MPI2_WHOINIT_PCI_PEER (0x03)
174 #define MPI2_WHOINIT_HOST_DRIVER (0x04)
175 #define MPI2_WHOINIT_MANUFACTURER (0x05)
178 #define MPI2_IOCINIT_MSGVERSION_MAJOR_MASK (0xFF00)
179 #define MPI2_IOCINIT_MSGVERSION_MAJOR_SHIFT (8)
180 #define MPI2_IOCINIT_MSGVERSION_MINOR_MASK (0x00FF)
181 #define MPI2_IOCINIT_MSGVERSION_MINOR_SHIFT (0)
184 #define MPI2_IOCINIT_HDRVERSION_UNIT_MASK (0xFF00)
185 #define MPI2_IOCINIT_HDRVERSION_UNIT_SHIFT (8)
186 #define MPI2_IOCINIT_HDRVERSION_DEV_MASK (0x00FF)
187 #define MPI2_IOCINIT_HDRVERSION_DEV_SHIFT (0)
190 #define MPI2_RDPQ_DEPTH_MIN (16)
275 #define MPI2_IOCFACTS_MSGVERSION_MAJOR_MASK (0xFF00)
276 #define MPI2_IOCFACTS_MSGVERSION_MAJOR_SHIFT (8)
277 #define MPI2_IOCFACTS_MSGVERSION_MINOR_MASK (0x00FF)
278 #define MPI2_IOCFACTS_MSGVERSION_MINOR_SHIFT (0)
281 #define MPI2_IOCFACTS_HDRVERSION_UNIT_MASK (0xFF00)
282 #define MPI2_IOCFACTS_HDRVERSION_UNIT_SHIFT (8)
283 #define MPI2_IOCFACTS_HDRVERSION_DEV_MASK (0x00FF)
284 #define MPI2_IOCFACTS_HDRVERSION_DEV_SHIFT (0)
287 #define MPI2_IOCFACTS_EXCEPT_IR_FOREIGN_CONFIG_MAX (0x0100)
289 #define MPI2_IOCFACTS_EXCEPT_BOOTSTAT_MASK (0x00E0)
290 #define MPI2_IOCFACTS_EXCEPT_BOOTSTAT_GOOD (0x0000)
291 #define MPI2_IOCFACTS_EXCEPT_BOOTSTAT_BACKUP (0x0020)
292 #define MPI2_IOCFACTS_EXCEPT_BOOTSTAT_RESTORED (0x0040)
293 #define MPI2_IOCFACTS_EXCEPT_BOOTSTAT_CORRUPT_BACKUP (0x0060)
295 #define MPI2_IOCFACTS_EXCEPT_METADATA_UNSUPPORTED (0x0010)
296 #define MPI2_IOCFACTS_EXCEPT_MANUFACT_CHECKSUM_FAIL (0x0008)
297 #define MPI2_IOCFACTS_EXCEPT_FW_CHECKSUM_FAIL (0x0004)
298 #define MPI2_IOCFACTS_EXCEPT_RAID_CONFIG_INVALID (0x0002)
299 #define MPI2_IOCFACTS_EXCEPT_CONFIG_CHECKSUM_FAIL (0x0001)
306 #define MPI2_IOCFACTS_CAPABILITY_HOST_BASED_DISCOVERY (0x00010000)
307 #define MPI2_IOCFACTS_CAPABILITY_MSI_X_INDEX (0x00008000)
308 #define MPI2_IOCFACTS_CAPABILITY_RAID_ACCELERATOR (0x00004000)
309 #define MPI2_IOCFACTS_CAPABILITY_EVENT_REPLAY (0x00002000)
310 #define MPI2_IOCFACTS_CAPABILITY_INTEGRATED_RAID (0x00001000)
311 #define MPI2_IOCFACTS_CAPABILITY_TLR (0x00000800)
312 #define MPI2_IOCFACTS_CAPABILITY_MULTICAST (0x00000100)
313 #define MPI2_IOCFACTS_CAPABILITY_BIDIRECTIONAL_TARGET (0x00000080)
314 #define MPI2_IOCFACTS_CAPABILITY_EEDP (0x00000040)
315 #define MPI2_IOCFACTS_CAPABILITY_EXTENDED_BUFFER (0x00000020)
316 #define MPI2_IOCFACTS_CAPABILITY_SNAPSHOT_BUFFER (0x00000010)
317 #define MPI2_IOCFACTS_CAPABILITY_DIAG_TRACE_BUFFER (0x00000008)
318 #define MPI2_IOCFACTS_CAPABILITY_TASK_SET_FULL_HANDLING (0x00000004)
321 #define MPI2_IOCFACTS_PROTOCOL_SCSI_TARGET (0x0001)
322 #define MPI2_IOCFACTS_PROTOCOL_SCSI_INITIATOR (0x0002)
368 #define MPI2_PORTFACTS_PORTTYPE_INACTIVE (0x00)
369 #define MPI2_PORTFACTS_PORTTYPE_FC (0x10)
370 #define MPI2_PORTFACTS_PORTTYPE_ISCSI (0x20)
371 #define MPI2_PORTFACTS_PORTTYPE_SAS_PHYSICAL (0x30)
372 #define MPI2_PORTFACTS_PORTTYPE_SAS_VIRTUAL (0x31)
421 #define MPI2_EVENT_NOTIFY_EVENTMASK_WORDS (4)
468 #define MPI2_EVENT_NOTIFICATION_ACK_NOT_REQUIRED (0x00)
469 #define MPI2_EVENT_NOTIFICATION_ACK_REQUIRED (0x01)
472 #define MPI2_EVENT_LOG_DATA (0x0001)
473 #define MPI2_EVENT_STATE_CHANGE (0x0002)
474 #define MPI2_EVENT_HARD_RESET_RECEIVED (0x0005)
475 #define MPI2_EVENT_EVENT_CHANGE (0x000A)
476 #define MPI2_EVENT_TASK_SET_FULL (0x000E)
477 #define MPI2_EVENT_SAS_DEVICE_STATUS_CHANGE (0x000F)
478 #define MPI2_EVENT_IR_OPERATION_STATUS (0x0014)
479 #define MPI2_EVENT_SAS_DISCOVERY (0x0016)
480 #define MPI2_EVENT_SAS_BROADCAST_PRIMITIVE (0x0017)
481 #define MPI2_EVENT_SAS_INIT_DEVICE_STATUS_CHANGE (0x0018)
482 #define MPI2_EVENT_SAS_INIT_TABLE_OVERFLOW (0x0019)
483 #define MPI2_EVENT_SAS_TOPOLOGY_CHANGE_LIST (0x001C)
484 #define MPI2_EVENT_SAS_ENCL_DEVICE_STATUS_CHANGE (0x001D)
485 #define MPI2_EVENT_IR_VOLUME (0x001E)
486 #define MPI2_EVENT_IR_PHYSICAL_DISK (0x001F)
487 #define MPI2_EVENT_IR_CONFIGURATION_CHANGE_LIST (0x0020)
488 #define MPI2_EVENT_LOG_ENTRY_ADDED (0x0021)
489 #define MPI2_EVENT_SAS_PHY_COUNTER (0x0022)
490 #define MPI2_EVENT_GPIO_INTERRUPT (0x0023)
491 #define MPI2_EVENT_HOST_BASED_DISCOVERY_PHY (0x0024)
492 #define MPI2_EVENT_SAS_QUIESCE (0x0025)
493 #define MPI2_EVENT_SAS_NOTIFY_PRIMITIVE (0x0026)
494 #define MPI2_EVENT_TEMP_THRESHOLD (0x0027)
495 #define MPI2_EVENT_HOST_MESSAGE (0x0028)
496 #define MPI2_EVENT_MIN_PRODUCT_SPECIFIC (0x006E)
497 #define MPI2_EVENT_MAX_PRODUCT_SPECIFIC (0x007F)
502 #define MPI2_EVENT_DATA_LOG_DATA_LENGTH (0x1C)
543 #define MPI2_EVENT_TEMPERATURE3_EXCEEDED (0x0008)
544 #define MPI2_EVENT_TEMPERATURE2_EXCEEDED (0x0004)
545 #define MPI2_EVENT_TEMPERATURE1_EXCEEDED (0x0002)
546 #define MPI2_EVENT_TEMPERATURE0_EXCEEDED (0x0001)
603 #define MPI2_EVENT_SAS_DEV_STAT_RC_SMART_DATA (0x05)
604 #define MPI2_EVENT_SAS_DEV_STAT_RC_UNSUPPORTED (0x07)
605 #define MPI2_EVENT_SAS_DEV_STAT_RC_INTERNAL_DEVICE_RESET (0x08)
606 #define MPI2_EVENT_SAS_DEV_STAT_RC_TASK_ABORT_INTERNAL (0x09)
607 #define MPI2_EVENT_SAS_DEV_STAT_RC_ABORT_TASK_SET_INTERNAL (0x0A)
608 #define MPI2_EVENT_SAS_DEV_STAT_RC_CLEAR_TASK_SET_INTERNAL (0x0B)
609 #define MPI2_EVENT_SAS_DEV_STAT_RC_QUERY_TASK_INTERNAL (0x0C)
610 #define MPI2_EVENT_SAS_DEV_STAT_RC_ASYNC_NOTIFICATION (0x0D)
611 #define MPI2_EVENT_SAS_DEV_STAT_RC_CMP_INTERNAL_DEV_RESET (0x0E)
612 #define MPI2_EVENT_SAS_DEV_STAT_RC_CMP_TASK_ABORT_INTERNAL (0x0F)
613 #define MPI2_EVENT_SAS_DEV_STAT_RC_SATA_INIT_FAILURE (0x10)
614 #define MPI2_EVENT_SAS_DEV_STAT_RC_EXPANDER_REDUCED_FUNCTIONALITY (0x11)
615 #define MPI2_EVENT_SAS_DEV_STAT_RC_CMP_EXPANDER_REDUCED_FUNCTIONALITY (0x12)
634 #define MPI2_EVENT_IR_RAIDOP_RESYNC (0x00)
635 #define MPI2_EVENT_IR_RAIDOP_ONLINE_CAP_EXPANSION (0x01)
636 #define MPI2_EVENT_IR_RAIDOP_CONSISTENCY_CHECK (0x02)
637 #define MPI2_EVENT_IR_RAIDOP_BACKGROUND_INIT (0x03)
638 #define MPI2_EVENT_IR_RAIDOP_MAKE_DATA_CONSISTENT (0x04)
654 #define MPI2_EVENT_IR_VOLUME_RC_SETTINGS_CHANGED (0x01)
655 #define MPI2_EVENT_IR_VOLUME_RC_STATUS_FLAGS_CHANGED (0x02)
656 #define MPI2_EVENT_IR_VOLUME_RC_STATE_CHANGED (0x03)
677 #define MPI2_EVENT_IR_PHYSDISK_RC_SETTINGS_CHANGED (0x01)
678 #define MPI2_EVENT_IR_PHYSDISK_RC_STATUS_FLAGS_CHANGED (0x02)
679 #define MPI2_EVENT_IR_PHYSDISK_RC_STATE_CHANGED (0x03)
688 #ifndef MPI2_EVENT_IR_CONFIG_ELEMENT_COUNT
689 #define MPI2_EVENT_IR_CONFIG_ELEMENT_COUNT (1)
703 #define MPI2_EVENT_IR_CHANGE_EFLAGS_ELEMENT_TYPE_MASK (0x000F)
704 #define MPI2_EVENT_IR_CHANGE_EFLAGS_VOLUME_ELEMENT (0x0000)
705 #define MPI2_EVENT_IR_CHANGE_EFLAGS_VOLPHYSDISK_ELEMENT (0x0001)
706 #define MPI2_EVENT_IR_CHANGE_EFLAGS_HOTSPARE_ELEMENT (0x0002)
709 #define MPI2_EVENT_IR_CHANGE_RC_ADDED (0x01)
710 #define MPI2_EVENT_IR_CHANGE_RC_REMOVED (0x02)
711 #define MPI2_EVENT_IR_CHANGE_RC_NO_CHANGE (0x03)
712 #define MPI2_EVENT_IR_CHANGE_RC_HIDE (0x04)
713 #define MPI2_EVENT_IR_CHANGE_RC_UNHIDE (0x05)
714 #define MPI2_EVENT_IR_CHANGE_RC_VOLUME_CREATED (0x06)
715 #define MPI2_EVENT_IR_CHANGE_RC_VOLUME_DELETED (0x07)
716 #define MPI2_EVENT_IR_CHANGE_RC_PD_CREATED (0x08)
717 #define MPI2_EVENT_IR_CHANGE_RC_PD_DELETED (0x09)
733 #define MPI2_EVENT_IR_CHANGE_FLAGS_FOREIGN_CONFIG (0x00000001)
750 #define MPI2_EVENT_SAS_DISC_DEVICE_CHANGE (0x02)
751 #define MPI2_EVENT_SAS_DISC_IN_PROGRESS (0x01)
754 #define MPI2_EVENT_SAS_DISC_RC_STARTED (0x01)
755 #define MPI2_EVENT_SAS_DISC_RC_COMPLETED (0x02)
758 #define MPI2_EVENT_SAS_DISC_DS_MAX_ENCLOSURES_EXCEED (0x80000000)
759 #define MPI2_EVENT_SAS_DISC_DS_MAX_EXPANDERS_EXCEED (0x40000000)
760 #define MPI2_EVENT_SAS_DISC_DS_MAX_DEVICES_EXCEED (0x20000000)
761 #define MPI2_EVENT_SAS_DISC_DS_MAX_TOPO_PHYS_EXCEED (0x10000000)
762 #define MPI2_EVENT_SAS_DISC_DS_DOWNSTREAM_INITIATOR (0x08000000)
763 #define MPI2_EVENT_SAS_DISC_DS_MULTI_SUBTRACTIVE_SUBTRACTIVE (0x00008000)
764 #define MPI2_EVENT_SAS_DISC_DS_EXP_MULTI_SUBTRACTIVE (0x00004000)
765 #define MPI2_EVENT_SAS_DISC_DS_MULTI_PORT_DOMAIN (0x00002000)
766 #define MPI2_EVENT_SAS_DISC_DS_TABLE_TO_SUBTRACTIVE_LINK (0x00001000)
767 #define MPI2_EVENT_SAS_DISC_DS_UNSUPPORTED_DEVICE (0x00000800)
768 #define MPI2_EVENT_SAS_DISC_DS_TABLE_LINK (0x00000400)
769 #define MPI2_EVENT_SAS_DISC_DS_SUBTRACTIVE_LINK (0x00000200)
770 #define MPI2_EVENT_SAS_DISC_DS_SMP_CRC_ERROR (0x00000100)
771 #define MPI2_EVENT_SAS_DISC_DS_SMP_FUNCTION_FAILED (0x00000080)
772 #define MPI2_EVENT_SAS_DISC_DS_INDEX_NOT_EXIST (0x00000040)
773 #define MPI2_EVENT_SAS_DISC_DS_OUT_ROUTE_ENTRIES (0x00000020)
774 #define MPI2_EVENT_SAS_DISC_DS_SMP_TIMEOUT (0x00000010)
775 #define MPI2_EVENT_SAS_DISC_DS_MULTIPLE_PORTS (0x00000004)
776 #define MPI2_EVENT_SAS_DISC_DS_UNADDRESSABLE_DEVICE (0x00000002)
777 #define MPI2_EVENT_SAS_DISC_DS_LOOP_DETECTED (0x00000001)
794 #define MPI2_EVENT_PRIMITIVE_CHANGE (0x01)
795 #define MPI2_EVENT_PRIMITIVE_SES (0x02)
796 #define MPI2_EVENT_PRIMITIVE_EXPANDER (0x03)
797 #define MPI2_EVENT_PRIMITIVE_ASYNCHRONOUS_EVENT (0x04)
798 #define MPI2_EVENT_PRIMITIVE_RESERVED3 (0x05)
799 #define MPI2_EVENT_PRIMITIVE_RESERVED4 (0x06)
800 #define MPI2_EVENT_PRIMITIVE_CHANGE0_RESERVED (0x07)
801 #define MPI2_EVENT_PRIMITIVE_CHANGE1_RESERVED (0x08)
816 #define MPI2_EVENT_NOTIFY_ENABLE_SPINUP (0x01)
817 #define MPI2_EVENT_NOTIFY_POWER_LOSS_EXPECTED (0x02)
818 #define MPI2_EVENT_NOTIFY_RESERVED1 (0x03)
819 #define MPI2_EVENT_NOTIFY_RESERVED2 (0x04)
836 #define MPI2_EVENT_SAS_INIT_RC_ADDED (0x01)
837 #define MPI2_EVENT_SAS_INIT_RC_NOT_RESPONDING (0x02)
859 #ifndef MPI2_EVENT_SAS_TOPO_PHY_COUNT
860 #define MPI2_EVENT_SAS_TOPO_PHY_COUNT (1)
889 #define MPI2_EVENT_SAS_TOPO_ES_NO_EXPANDER (0x00)
890 #define MPI2_EVENT_SAS_TOPO_ES_ADDED (0x01)
891 #define MPI2_EVENT_SAS_TOPO_ES_NOT_RESPONDING (0x02)
892 #define MPI2_EVENT_SAS_TOPO_ES_RESPONDING (0x03)
893 #define MPI2_EVENT_SAS_TOPO_ES_DELAY_NOT_RESPONDING (0x04)
896 #define MPI2_EVENT_SAS_TOPO_LR_CURRENT_MASK (0xF0)
897 #define MPI2_EVENT_SAS_TOPO_LR_CURRENT_SHIFT (4)
898 #define MPI2_EVENT_SAS_TOPO_LR_PREV_MASK (0x0F)
899 #define MPI2_EVENT_SAS_TOPO_LR_PREV_SHIFT (0)
901 #define MPI2_EVENT_SAS_TOPO_LR_UNKNOWN_LINK_RATE (0x00)
902 #define MPI2_EVENT_SAS_TOPO_LR_PHY_DISABLED (0x01)
903 #define MPI2_EVENT_SAS_TOPO_LR_NEGOTIATION_FAILED (0x02)
904 #define MPI2_EVENT_SAS_TOPO_LR_SATA_OOB_COMPLETE (0x03)
905 #define MPI2_EVENT_SAS_TOPO_LR_PORT_SELECTOR (0x04)
906 #define MPI2_EVENT_SAS_TOPO_LR_SMP_RESET_IN_PROGRESS (0x05)
907 #define MPI2_EVENT_SAS_TOPO_LR_UNSUPPORTED_PHY (0x06)
908 #define MPI2_EVENT_SAS_TOPO_LR_RATE_1_5 (0x08)
909 #define MPI2_EVENT_SAS_TOPO_LR_RATE_3_0 (0x09)
910 #define MPI2_EVENT_SAS_TOPO_LR_RATE_6_0 (0x0A)
913 #define MPI2_EVENT_SAS_TOPO_PHYSTATUS_VACANT (0x80)
914 #define MPI2_EVENT_SAS_TOPO_PS_MULTIPLEX_CHANGE (0x10)
916 #define MPI2_EVENT_SAS_TOPO_RC_MASK (0x0F)
917 #define MPI2_EVENT_SAS_TOPO_RC_TARG_ADDED (0x01)
918 #define MPI2_EVENT_SAS_TOPO_RC_TARG_NOT_RESPONDING (0x02)
919 #define MPI2_EVENT_SAS_TOPO_RC_PHY_CHANGED (0x03)
920 #define MPI2_EVENT_SAS_TOPO_RC_NO_CHANGE (0x04)
921 #define MPI2_EVENT_SAS_TOPO_RC_DELAY_NOT_RESPONDING (0x05)
941 #define MPI2_EVENT_SAS_ENCL_RC_ADDED (0x01)
942 #define MPI2_EVENT_SAS_ENCL_RC_NOT_RESPONDING (0x02)
988 #define MPI2_EVENT_SAS_QUIESCE_RC_STARTED (0x01)
989 #define MPI2_EVENT_SAS_QUIESCE_RC_COMPLETED (0x02)
1005 #define MPI2_EVENT_HBD_SAS_FLAGS_FRAME_VALID (0x02)
1006 #define MPI2_EVENT_HBD_SAS_FLAGS_SATA_FRAME (0x01)
1026 #define MPI2_EVENT_HBD_DT_SAS (0x01)
1142 #define MPI2_FW_DOWNLOAD_MSGFLGS_LAST_SEGMENT (0x01)
1144 #define MPI2_FW_DOWNLOAD_ITYPE_FW (0x01)
1145 #define MPI2_FW_DOWNLOAD_ITYPE_BIOS (0x02)
1146 #define MPI2_FW_DOWNLOAD_ITYPE_MANUFACTURING (0x06)
1147 #define MPI2_FW_DOWNLOAD_ITYPE_CONFIG_1 (0x07)
1148 #define MPI2_FW_DOWNLOAD_ITYPE_CONFIG_2 (0x08)
1149 #define MPI2_FW_DOWNLOAD_ITYPE_MEGARAID (0x09)
1150 #define MPI2_FW_DOWNLOAD_ITYPE_COMPLETE (0x0A)
1151 #define MPI2_FW_DOWNLOAD_ITYPE_COMMON_BOOT_BLOCK (0x0B)
1152 #define MPI2_FW_DOWNLOAD_ITYPE_MIN_PRODUCT_SPECIFIC (0xF0)
1210 #define MPI2_FW_UPLOAD_ITYPE_FW_CURRENT (0x00)
1211 #define MPI2_FW_UPLOAD_ITYPE_FW_FLASH (0x01)
1212 #define MPI2_FW_UPLOAD_ITYPE_BIOS_FLASH (0x02)
1213 #define MPI2_FW_UPLOAD_ITYPE_FW_BACKUP (0x05)
1214 #define MPI2_FW_UPLOAD_ITYPE_MANUFACTURING (0x06)
1215 #define MPI2_FW_UPLOAD_ITYPE_CONFIG_1 (0x07)
1216 #define MPI2_FW_UPLOAD_ITYPE_CONFIG_2 (0x08)
1217 #define MPI2_FW_UPLOAD_ITYPE_MEGARAID (0x09)
1218 #define MPI2_FW_UPLOAD_ITYPE_COMPLETE (0x0A)
1219 #define MPI2_FW_UPLOAD_ITYPE_COMMON_BOOT_BLOCK (0x0B)
1306 #define MPI2_FW_HEADER_SIGNATURE_OFFSET (0x00)
1307 #define MPI2_FW_HEADER_SIGNATURE_MASK (0xFF000000)
1308 #define MPI2_FW_HEADER_SIGNATURE (0xEA000000)
1311 #define MPI2_FW_HEADER_SIGNATURE0_OFFSET (0x04)
1312 #define MPI2_FW_HEADER_SIGNATURE0 (0x5AFAA55A)
1315 #define MPI2_FW_HEADER_SIGNATURE1_OFFSET (0x08)
1316 #define MPI2_FW_HEADER_SIGNATURE1 (0xA55AFAA5)
1319 #define MPI2_FW_HEADER_SIGNATURE2_OFFSET (0x0C)
1320 #define MPI2_FW_HEADER_SIGNATURE2 (0x5AA55AFA)
1324 #define MPI2_FW_HEADER_PID_TYPE_MASK (0xF000)
1325 #define MPI2_FW_HEADER_PID_TYPE_SAS (0x2000)
1327 #define MPI2_FW_HEADER_PID_PROD_MASK (0x0F00)
1328 #define MPI2_FW_HEADER_PID_PROD_A (0x0000)
1329 #define MPI2_FW_HEADER_PID_PROD_TARGET_INITIATOR_SCSI (0x0200)
1330 #define MPI2_FW_HEADER_PID_PROD_IR_SCSI (0x0700)
1333 #define MPI2_FW_HEADER_PID_FAMILY_MASK (0x00FF)
1335 #define MPI2_FW_HEADER_PID_FAMILY_2108_SAS (0x0013)
1336 #define MPI2_FW_HEADER_PID_FAMILY_2208_SAS (0x0014)
1343 #define MPI2_FW_HEADER_IMAGESIZE_OFFSET (0x2C)
1344 #define MPI2_FW_HEADER_NEXTIMAGE_OFFSET (0x30)
1345 #define MPI2_FW_HEADER_VERNMHWAT_OFFSET (0x64)
1347 #define MPI2_FW_HEADER_WHAT_SIGNATURE (0x29232840)
1349 #define MPI2_FW_HEADER_SIZE (0x100)
1371 #define MPI2_EXT_IMAGE_IMAGETYPE_OFFSET (0x00)
1372 #define MPI2_EXT_IMAGE_IMAGESIZE_OFFSET (0x08)
1373 #define MPI2_EXT_IMAGE_NEXTIMAGE_OFFSET (0x0C)
1375 #define MPI2_EXT_IMAGE_HEADER_SIZE (0x40)
1378 #define MPI2_EXT_IMAGE_TYPE_UNSPECIFIED (0x00)
1379 #define MPI2_EXT_IMAGE_TYPE_FW (0x01)
1380 #define MPI2_EXT_IMAGE_TYPE_NVDATA (0x03)
1381 #define MPI2_EXT_IMAGE_TYPE_BOOTLOADER (0x04)
1382 #define MPI2_EXT_IMAGE_TYPE_INITIALIZATION (0x05)
1383 #define MPI2_EXT_IMAGE_TYPE_FLASH_LAYOUT (0x06)
1384 #define MPI2_EXT_IMAGE_TYPE_SUPPORTED_DEVICES (0x07)
1385 #define MPI2_EXT_IMAGE_TYPE_MEGARAID (0x08)
1386 #define MPI2_EXT_IMAGE_TYPE_MIN_PRODUCT_SPECIFIC (0x80)
1387 #define MPI2_EXT_IMAGE_TYPE_MAX_PRODUCT_SPECIFIC (0xFF)
1388 #define MPI2_EXT_IMAGE_TYPE_MAX \
1389 (MPI2_EXT_IMAGE_TYPE_MAX_PRODUCT_SPECIFIC)
1399 #ifndef MPI2_FLASH_NUMBER_OF_REGIONS
1400 #define MPI2_FLASH_NUMBER_OF_REGIONS (1)
1407 #ifndef MPI2_FLASH_NUMBER_OF_LAYOUTS
1408 #define MPI2_FLASH_NUMBER_OF_LAYOUTS (1)
1448 #define MPI2_FLASH_REGION_UNUSED (0x00)
1449 #define MPI2_FLASH_REGION_FIRMWARE (0x01)
1450 #define MPI2_FLASH_REGION_BIOS (0x02)
1451 #define MPI2_FLASH_REGION_NVDATA (0x03)
1452 #define MPI2_FLASH_REGION_FIRMWARE_BACKUP (0x05)
1453 #define MPI2_FLASH_REGION_MFG_INFORMATION (0x06)
1454 #define MPI2_FLASH_REGION_CONFIG_1 (0x07)
1455 #define MPI2_FLASH_REGION_CONFIG_2 (0x08)
1456 #define MPI2_FLASH_REGION_MEGARAID (0x09)
1457 #define MPI2_FLASH_REGION_INIT (0x0A)
1460 #define MPI2_FLASH_LAYOUT_IMAGE_REVISION (0x00)
1470 #ifndef MPI2_SUPPORTED_DEVICES_IMAGE_NUM_DEVICES
1471 #define MPI2_SUPPORTED_DEVICES_IMAGE_NUM_DEVICES (1)
1499 #define MPI2_SUPPORTED_DEVICES_IMAGE_REVISION (0x00)
1517 #define MPI2_INIT_IMAGE_BOOTFLAGS_OFFSET (0x00)
1520 #define MPI2_INIT_IMAGE_IMAGESIZE_OFFSET (0x04)
1523 #define MPI2_INIT_IMAGE_SIGNATURE0_OFFSET (0x08)
1524 #define MPI2_INIT_IMAGE_SIGNATURE0 (0x5AA55AEA)
1527 #define MPI2_INIT_IMAGE_SIGNATURE1_OFFSET (0x0C)
1528 #define MPI2_INIT_IMAGE_SIGNATURE1 (0xA55AEAA5)
1531 #define MPI2_INIT_IMAGE_SIGNATURE2_OFFSET (0x10)
1532 #define MPI2_INIT_IMAGE_SIGNATURE2 (0x5AEAA55A)
1535 #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_0 (0xEA)
1536 #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_1 (0x5A)
1537 #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_2 (0xA5)
1538 #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_3 (0x5A)
1540 #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_4 (0xA5)
1541 #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_5 (0xEA)
1542 #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_6 (0x5A)
1543 #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_7 (0xA5)
1545 #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_8 (0x5A)
1546 #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_9 (0xA5)
1547 #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_A (0xEA)
1548 #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_B (0x5A)
1551 #define MPI2_INIT_IMAGE_RESETVECTOR_OFFSET (0x14)
1580 #define MPI2_PM_CONTROL_FEATURE_DA_PHY_POWER_COND (0x01)
1581 #define MPI2_PM_CONTROL_FEATURE_PORT_WIDTH_MODULATION (0x02)
1582 #define MPI2_PM_CONTROL_FEATURE_PCIE_LINK (0x03)
1583 #define MPI2_PM_CONTROL_FEATURE_IOC_SPEED (0x04)
1584 #define MPI2_PM_CONTROL_FEATURE_MIN_PRODUCT_SPECIFIC (0x80)
1585 #define MPI2_PM_CONTROL_FEATURE_MAX_PRODUCT_SPECIFIC (0xFF)
1590 #define MPI2_PM_CONTROL_PARAM2_PARTIAL (0x01)
1591 #define MPI2_PM_CONTROL_PARAM2_SLUMBER (0x02)
1592 #define MPI2_PM_CONTROL_PARAM2_EXIT_PWR_MGMT (0x03)
1599 #define MPI2_PM_CONTROL_PARAM2_REQUEST_OWNERSHIP (0x01)
1600 #define MPI2_PM_CONTROL_PARAM2_CHANGE_MODULATION (0x02)
1601 #define MPI2_PM_CONTROL_PARAM2_RELINQUISH_OWNERSHIP (0x03)
1603 #define MPI2_PM_CONTROL_PARAM3_25_PERCENT (0x00)
1604 #define MPI2_PM_CONTROL_PARAM3_50_PERCENT (0x01)
1605 #define MPI2_PM_CONTROL_PARAM3_75_PERCENT (0x02)
1606 #define MPI2_PM_CONTROL_PARAM3_100_PERCENT (0x03)
1611 #define MPI2_PM_CONTROL_PARAM1_PCIE_2_5_GBPS (0x00)
1612 #define MPI2_PM_CONTROL_PARAM1_PCIE_5_0_GBPS (0x01)
1613 #define MPI2_PM_CONTROL_PARAM1_PCIE_8_0_GBPS (0x02)
1615 #define MPI2_PM_CONTROL_PARAM2_WIDTH_X1 (0x01)
1616 #define MPI2_PM_CONTROL_PARAM2_WIDTH_X2 (0x02)
1617 #define MPI2_PM_CONTROL_PARAM2_WIDTH_X4 (0x04)
1618 #define MPI2_PM_CONTROL_PARAM2_WIDTH_X8 (0x08)
1623 #define MPI2_PM_CONTROL_PARAM1_FULL_IOC_SPEED (0x01)
1624 #define MPI2_PM_CONTROL_PARAM1_HALF_IOC_SPEED (0x02)
1625 #define MPI2_PM_CONTROL_PARAM1_QUARTER_IOC_SPEED (0x04)
1626 #define MPI2_PM_CONTROL_PARAM1_EIGHTH_IOC_SPEED (0x08)