Go to the documentation of this file.
373 #define MPI_CONFIG_PAGEATTR_READ_ONLY (0x00)
374 #define MPI_CONFIG_PAGEATTR_CHANGEABLE (0x10)
375 #define MPI_CONFIG_PAGEATTR_PERSISTENT (0x20)
376 #define MPI_CONFIG_PAGEATTR_RO_PERSISTENT (0x30)
377 #define MPI_CONFIG_PAGEATTR_MASK (0xF0)
379 #define MPI_CONFIG_PAGETYPE_IO_UNIT (0x00)
380 #define MPI_CONFIG_PAGETYPE_IOC (0x01)
381 #define MPI_CONFIG_PAGETYPE_BIOS (0x02)
382 #define MPI_CONFIG_PAGETYPE_SCSI_PORT (0x03)
383 #define MPI_CONFIG_PAGETYPE_SCSI_DEVICE (0x04)
384 #define MPI_CONFIG_PAGETYPE_FC_PORT (0x05)
385 #define MPI_CONFIG_PAGETYPE_FC_DEVICE (0x06)
386 #define MPI_CONFIG_PAGETYPE_LAN (0x07)
387 #define MPI_CONFIG_PAGETYPE_RAID_VOLUME (0x08)
388 #define MPI_CONFIG_PAGETYPE_MANUFACTURING (0x09)
389 #define MPI_CONFIG_PAGETYPE_RAID_PHYSDISK (0x0A)
390 #define MPI_CONFIG_PAGETYPE_INBAND (0x0B)
391 #define MPI_CONFIG_PAGETYPE_EXTENDED (0x0F)
392 #define MPI_CONFIG_PAGETYPE_MASK (0x0F)
394 #define MPI_CONFIG_TYPENUM_MASK (0x0FFF)
400 #define MPI_CONFIG_EXTPAGETYPE_SAS_IO_UNIT (0x10)
401 #define MPI_CONFIG_EXTPAGETYPE_SAS_EXPANDER (0x11)
402 #define MPI_CONFIG_EXTPAGETYPE_SAS_DEVICE (0x12)
403 #define MPI_CONFIG_EXTPAGETYPE_SAS_PHY (0x13)
404 #define MPI_CONFIG_EXTPAGETYPE_LOG (0x14)
405 #define MPI_CONFIG_EXTPAGETYPE_ENCLOSURE (0x15)
411 #define MPI_SCSI_PORT_PGAD_PORT_MASK (0x000000FF)
413 #define MPI_SCSI_DEVICE_FORM_MASK (0xF0000000)
414 #define MPI_SCSI_DEVICE_FORM_BUS_TID (0x00000000)
415 #define MPI_SCSI_DEVICE_TARGET_ID_MASK (0x000000FF)
416 #define MPI_SCSI_DEVICE_TARGET_ID_SHIFT (0)
417 #define MPI_SCSI_DEVICE_BUS_MASK (0x0000FF00)
418 #define MPI_SCSI_DEVICE_BUS_SHIFT (8)
419 #define MPI_SCSI_DEVICE_FORM_TARGET_MODE (0x10000000)
420 #define MPI_SCSI_DEVICE_TM_RESPOND_ID_MASK (0x000000FF)
421 #define MPI_SCSI_DEVICE_TM_RESPOND_ID_SHIFT (0)
422 #define MPI_SCSI_DEVICE_TM_BUS_MASK (0x0000FF00)
423 #define MPI_SCSI_DEVICE_TM_BUS_SHIFT (8)
424 #define MPI_SCSI_DEVICE_TM_INIT_ID_MASK (0x00FF0000)
425 #define MPI_SCSI_DEVICE_TM_INIT_ID_SHIFT (16)
427 #define MPI_FC_PORT_PGAD_PORT_MASK (0xF0000000)
428 #define MPI_FC_PORT_PGAD_PORT_SHIFT (28)
429 #define MPI_FC_PORT_PGAD_FORM_MASK (0x0F000000)
430 #define MPI_FC_PORT_PGAD_FORM_INDEX (0x01000000)
431 #define MPI_FC_PORT_PGAD_INDEX_MASK (0x0000FFFF)
432 #define MPI_FC_PORT_PGAD_INDEX_SHIFT (0)
434 #define MPI_FC_DEVICE_PGAD_PORT_MASK (0xF0000000)
435 #define MPI_FC_DEVICE_PGAD_PORT_SHIFT (28)
436 #define MPI_FC_DEVICE_PGAD_FORM_MASK (0x0F000000)
437 #define MPI_FC_DEVICE_PGAD_FORM_NEXT_DID (0x00000000)
438 #define MPI_FC_DEVICE_PGAD_ND_PORT_MASK (0xF0000000)
439 #define MPI_FC_DEVICE_PGAD_ND_PORT_SHIFT (28)
440 #define MPI_FC_DEVICE_PGAD_ND_DID_MASK (0x00FFFFFF)
441 #define MPI_FC_DEVICE_PGAD_ND_DID_SHIFT (0)
442 #define MPI_FC_DEVICE_PGAD_FORM_BUS_TID (0x01000000)
443 #define MPI_FC_DEVICE_PGAD_BT_BUS_MASK (0x0000FF00)
444 #define MPI_FC_DEVICE_PGAD_BT_BUS_SHIFT (8)
445 #define MPI_FC_DEVICE_PGAD_BT_TID_MASK (0x000000FF)
446 #define MPI_FC_DEVICE_PGAD_BT_TID_SHIFT (0)
448 #define MPI_PHYSDISK_PGAD_PHYSDISKNUM_MASK (0x000000FF)
449 #define MPI_PHYSDISK_PGAD_PHYSDISKNUM_SHIFT (0)
451 #define MPI_SAS_EXPAND_PGAD_FORM_MASK (0xF0000000)
452 #define MPI_SAS_EXPAND_PGAD_FORM_SHIFT (28)
453 #define MPI_SAS_EXPAND_PGAD_FORM_GET_NEXT_HANDLE (0x00000000)
454 #define MPI_SAS_EXPAND_PGAD_FORM_HANDLE_PHY_NUM (0x00000001)
455 #define MPI_SAS_EXPAND_PGAD_FORM_HANDLE (0x00000002)
456 #define MPI_SAS_EXPAND_PGAD_GNH_MASK_HANDLE (0x0000FFFF)
457 #define MPI_SAS_EXPAND_PGAD_GNH_SHIFT_HANDLE (0)
458 #define MPI_SAS_EXPAND_PGAD_HPN_MASK_PHY (0x00FF0000)
459 #define MPI_SAS_EXPAND_PGAD_HPN_SHIFT_PHY (16)
460 #define MPI_SAS_EXPAND_PGAD_HPN_MASK_HANDLE (0x0000FFFF)
461 #define MPI_SAS_EXPAND_PGAD_HPN_SHIFT_HANDLE (0)
462 #define MPI_SAS_EXPAND_PGAD_H_MASK_HANDLE (0x0000FFFF)
463 #define MPI_SAS_EXPAND_PGAD_H_SHIFT_HANDLE (0)
465 #define MPI_SAS_DEVICE_PGAD_FORM_MASK (0xF0000000)
466 #define MPI_SAS_DEVICE_PGAD_FORM_SHIFT (28)
467 #define MPI_SAS_DEVICE_PGAD_FORM_GET_NEXT_HANDLE (0x00000000)
468 #define MPI_SAS_DEVICE_PGAD_FORM_BUS_TARGET_ID (0x00000001)
469 #define MPI_SAS_DEVICE_PGAD_FORM_HANDLE (0x00000002)
470 #define MPI_SAS_DEVICE_PGAD_GNH_HANDLE_MASK (0x0000FFFF)
471 #define MPI_SAS_DEVICE_PGAD_GNH_HANDLE_SHIFT (0)
472 #define MPI_SAS_DEVICE_PGAD_BT_BUS_MASK (0x0000FF00)
473 #define MPI_SAS_DEVICE_PGAD_BT_BUS_SHIFT (8)
474 #define MPI_SAS_DEVICE_PGAD_BT_TID_MASK (0x000000FF)
475 #define MPI_SAS_DEVICE_PGAD_BT_TID_SHIFT (0)
476 #define MPI_SAS_DEVICE_PGAD_H_HANDLE_MASK (0x0000FFFF)
477 #define MPI_SAS_DEVICE_PGAD_H_HANDLE_SHIFT (0)
479 #define MPI_SAS_PHY_PGAD_FORM_MASK (0xF0000000)
480 #define MPI_SAS_PHY_PGAD_FORM_SHIFT (28)
481 #define MPI_SAS_PHY_PGAD_FORM_PHY_NUMBER (0x0)
482 #define MPI_SAS_PHY_PGAD_FORM_PHY_TBL_INDEX (0x1)
483 #define MPI_SAS_PHY_PGAD_PHY_NUMBER_MASK (0x000000FF)
484 #define MPI_SAS_PHY_PGAD_PHY_NUMBER_SHIFT (0)
485 #define MPI_SAS_PHY_PGAD_PHY_TBL_INDEX_MASK (0x0000FFFF)
486 #define MPI_SAS_PHY_PGAD_PHY_TBL_INDEX_SHIFT (0)
488 #define MPI_SAS_ENCLOS_PGAD_FORM_MASK (0xF0000000)
489 #define MPI_SAS_ENCLOS_PGAD_FORM_SHIFT (28)
490 #define MPI_SAS_ENCLOS_PGAD_FORM_GET_NEXT_HANDLE (0x00000000)
491 #define MPI_SAS_ENCLOS_PGAD_FORM_HANDLE (0x00000001)
492 #define MPI_SAS_ENCLOS_PGAD_GNH_HANDLE_MASK (0x0000FFFF)
493 #define MPI_SAS_ENCLOS_PGAD_GNH_HANDLE_SHIFT (0)
494 #define MPI_SAS_ENCLOS_PGAD_H_HANDLE_MASK (0x0000FFFF)
495 #define MPI_SAS_ENCLOS_PGAD_H_HANDLE_SHIFT (0)
523 #define MPI_CONFIG_ACTION_PAGE_HEADER (0x00)
524 #define MPI_CONFIG_ACTION_PAGE_READ_CURRENT (0x01)
525 #define MPI_CONFIG_ACTION_PAGE_WRITE_CURRENT (0x02)
526 #define MPI_CONFIG_ACTION_PAGE_DEFAULT (0x03)
527 #define MPI_CONFIG_ACTION_PAGE_WRITE_NVRAM (0x04)
528 #define MPI_CONFIG_ACTION_PAGE_READ_DEFAULT (0x05)
529 #define MPI_CONFIG_ACTION_PAGE_READ_NVRAM (0x06)
561 #define MPI_MANUFACTPAGE_VENDORID_LSILOGIC (0x1000)
563 #define MPI_MANUFACTPAGE_DEVICEID_FC909 (0x0621)
564 #define MPI_MANUFACTPAGE_DEVICEID_FC919 (0x0624)
565 #define MPI_MANUFACTPAGE_DEVICEID_FC929 (0x0622)
566 #define MPI_MANUFACTPAGE_DEVICEID_FC919X (0x0628)
567 #define MPI_MANUFACTPAGE_DEVICEID_FC929X (0x0626)
568 #define MPI_MANUFACTPAGE_DEVICEID_FC939X (0x0642)
569 #define MPI_MANUFACTPAGE_DEVICEID_FC949X (0x0640)
570 #define MPI_MANUFACTPAGE_DEVICEID_FC949E (0x0646)
572 #define MPI_MANUFACTPAGE_DEVID_53C1030 (0x0030)
573 #define MPI_MANUFACTPAGE_DEVID_53C1030ZC (0x0031)
574 #define MPI_MANUFACTPAGE_DEVID_1030_53C1035 (0x0032)
575 #define MPI_MANUFACTPAGE_DEVID_1030ZC_53C1035 (0x0033)
576 #define MPI_MANUFACTPAGE_DEVID_53C1035 (0x0040)
577 #define MPI_MANUFACTPAGE_DEVID_53C1035ZC (0x0041)
579 #define MPI_MANUFACTPAGE_DEVID_SAS1064 (0x0050)
580 #define MPI_MANUFACTPAGE_DEVID_SAS1064A (0x005C)
581 #define MPI_MANUFACTPAGE_DEVID_SAS1064E (0x0056)
582 #define MPI_MANUFACTPAGE_DEVID_SAS1066 (0x005E)
583 #define MPI_MANUFACTPAGE_DEVID_SAS1066E (0x005A)
584 #define MPI_MANUFACTPAGE_DEVID_SAS1068 (0x0054)
585 #define MPI_MANUFACTPAGE_DEVID_SAS1068E (0x0058)
586 #define MPI_MANUFACTPAGE_DEVID_SAS1068_820XELP (0x0059)
587 #define MPI_MANUFACTPAGE_DEVID_SAS1078 (0x0062)
602 #define MPI_MANUFACTURING0_PAGEVERSION (0x00)
612 #define MPI_MANUFACTURING1_PAGEVERSION (0x00)
628 #ifndef MPI_MAN_PAGE_2_HW_SETTINGS_WORDS
629 #define MPI_MAN_PAGE_2_HW_SETTINGS_WORDS (1)
640 #define MPI_MANUFACTURING2_PAGEVERSION (0x00)
647 #ifndef MPI_MAN_PAGE_3_INFO_WORDS
648 #define MPI_MAN_PAGE_3_INFO_WORDS (1)
659 #define MPI_MANUFACTURING3_PAGEVERSION (0x00)
691 #define MPI_MANUFACTURING4_PAGEVERSION (0x05)
694 #define MPI_MANPAGE4_FORCE_BAD_BLOCK_TABLE (0x80)
695 #define MPI_MANPAGE4_FORCE_OFFLINE_FAILOVER (0x40)
696 #define MPI_MANPAGE4_IME_DISABLE (0x20)
697 #define MPI_MANPAGE4_IM_DISABLE (0x10)
698 #define MPI_MANPAGE4_IS_DISABLE (0x08)
699 #define MPI_MANPAGE4_IR_MODEPAGE8_DISABLE (0x04)
700 #define MPI_MANPAGE4_IM_RESYNC_CACHE_ENABLE (0x02)
701 #define MPI_MANPAGE4_IR_NO_MIX_SAS_SATA (0x01)
704 #define MPI_MANPAGE4_EXTFLAGS_MASK_COERCION_SIZE (0x0180)
705 #define MPI_MANPAGE4_EXTFLAGS_SHIFT_COERCION_SIZE (7)
706 #define MPI_MANPAGE4_EXTFLAGS_1GB_COERCION_SIZE (0)
707 #define MPI_MANPAGE4_EXTFLAGS_128MB_COERCION_SIZE (1)
709 #define MPI_MANPAGE4_EXTFLAGS_NO_MIX_SSD_SAS_SATA (0x0040)
710 #define MPI_MANPAGE4_EXTFLAGS_MIX_SSD_AND_NON_SSD (0x0020)
711 #define MPI_MANPAGE4_EXTFLAGS_DUAL_PORT_SUPPORT (0x0010)
712 #define MPI_MANPAGE4_EXTFLAGS_HIDE_NON_IR_METADATA (0x0008)
713 #define MPI_MANPAGE4_EXTFLAGS_SAS_CACHE_DISABLE (0x0004)
714 #define MPI_MANPAGE4_EXTFLAGS_SATA_CACHE_DISABLE (0x0002)
715 #define MPI_MANPAGE4_EXTFLAGS_LEGACY_MODE (0x0001)
718 #ifndef MPI_MANPAGE5_NUM_FORCEWWID
719 #define MPI_MANPAGE5_NUM_FORCEWWID (1)
735 #define MPI_MANUFACTURING5_PAGEVERSION (0x02)
738 #define MPI_MANPAGE5_TWO_WWID_PER_PHY (0x01)
748 #define MPI_MANUFACTURING6_PAGEVERSION (0x00)
763 #define MPI_MANPAGE7_PINOUT_SFF_8484_L4 (0x00080000)
764 #define MPI_MANPAGE7_PINOUT_SFF_8484_L3 (0x00040000)
765 #define MPI_MANPAGE7_PINOUT_SFF_8484_L2 (0x00020000)
766 #define MPI_MANPAGE7_PINOUT_SFF_8484_L1 (0x00010000)
767 #define MPI_MANPAGE7_PINOUT_SFF_8470_L4 (0x00000800)
768 #define MPI_MANPAGE7_PINOUT_SFF_8470_L3 (0x00000400)
769 #define MPI_MANPAGE7_PINOUT_SFF_8470_L2 (0x00000200)
770 #define MPI_MANPAGE7_PINOUT_SFF_8470_L1 (0x00000100)
771 #define MPI_MANPAGE7_PINOUT_SFF_8482 (0x00000002)
772 #define MPI_MANPAGE7_PINOUT_CONNECTION_UNKNOWN (0x00000001)
775 #define MPI_MANPAGE7_LOCATION_UNKNOWN (0x01)
776 #define MPI_MANPAGE7_LOCATION_INTERNAL (0x02)
777 #define MPI_MANPAGE7_LOCATION_EXTERNAL (0x04)
778 #define MPI_MANPAGE7_LOCATION_SWITCHABLE (0x08)
779 #define MPI_MANPAGE7_LOCATION_AUTO (0x10)
780 #define MPI_MANPAGE7_LOCATION_NOT_PRESENT (0x20)
781 #define MPI_MANPAGE7_LOCATION_NOT_CONNECTED (0x80)
787 #ifndef MPI_MANPAGE7_CONNECTOR_INFO_MAX
788 #define MPI_MANPAGE7_CONNECTOR_INFO_MAX (1)
805 #define MPI_MANUFACTURING7_PAGEVERSION (0x00)
808 #define MPI_MANPAGE7_FLAG_USE_SLOT_INFO (0x00000001)
818 #define MPI_MANUFACTURING8_PAGEVERSION (0x00)
828 #define MPI_MANUFACTURING9_PAGEVERSION (0x00)
838 #define MPI_MANUFACTURING10_PAGEVERSION (0x00)
852 #define MPI_IOUNITPAGE0_PAGEVERSION (0x00)
862 #define MPI_IOUNITPAGE1_PAGEVERSION (0x02)
865 #define MPI_IOUNITPAGE1_MULTI_FUNCTION (0x00000000)
866 #define MPI_IOUNITPAGE1_SINGLE_FUNCTION (0x00000001)
867 #define MPI_IOUNITPAGE1_MULTI_PATHING (0x00000002)
868 #define MPI_IOUNITPAGE1_SINGLE_PATHING (0x00000000)
869 #define MPI_IOUNITPAGE1_IR_USE_STATIC_VOLUME_ID (0x00000004)
870 #define MPI_IOUNITPAGE1_DISABLE_QUEUE_FULL_HANDLING (0x00000020)
871 #define MPI_IOUNITPAGE1_DISABLE_IR (0x00000040)
872 #define MPI_IOUNITPAGE1_FORCE_32 (0x00000080)
873 #define MPI_IOUNITPAGE1_NATIVE_COMMAND_Q_DISABLE (0x00000100)
874 #define MPI_IOUNITPAGE1_SATA_WRITE_CACHE_DISABLE (0x00000200)
884 #define MPI_ADAPTER_INFO_FLAGS_EMBEDDED (0x0001)
885 #define MPI_ADAPTER_INFO_FLAGS_INIT_STATUS (0x0002)
897 #define MPI_IOUNITPAGE2_PAGEVERSION (0x02)
899 #define MPI_IOUNITPAGE2_FLAGS_PAUSE_ON_ERROR (0x00000002)
900 #define MPI_IOUNITPAGE2_FLAGS_VERBOSE_ENABLE (0x00000004)
901 #define MPI_IOUNITPAGE2_FLAGS_COLOR_VIDEO_DISABLE (0x00000008)
902 #define MPI_IOUNITPAGE2_FLAGS_DONT_HOOK_INT_40 (0x00000010)
904 #define MPI_IOUNITPAGE2_FLAGS_DEV_LIST_DISPLAY_MASK (0x000000E0)
905 #define MPI_IOUNITPAGE2_FLAGS_INSTALLED_DEV_DISPLAY (0x00000000)
906 #define MPI_IOUNITPAGE2_FLAGS_ADAPTER_DISPLAY (0x00000020)
907 #define MPI_IOUNITPAGE2_FLAGS_ADAPTER_DEV_DISPLAY (0x00000040)
914 #ifndef MPI_IO_UNIT_PAGE_3_GPIO_VAL_MAX
915 #define MPI_IO_UNIT_PAGE_3_GPIO_VAL_MAX (1)
928 #define MPI_IOUNITPAGE3_PAGEVERSION (0x01)
930 #define MPI_IOUNITPAGE3_GPIO_FUNCTION_MASK (0xFC)
931 #define MPI_IOUNITPAGE3_GPIO_FUNCTION_SHIFT (2)
932 #define MPI_IOUNITPAGE3_GPIO_SETTING_OFF (0x00)
933 #define MPI_IOUNITPAGE3_GPIO_SETTING_ON (0x01)
944 #define MPI_IOUNITPAGE4_PAGEVERSION (0x00)
966 #define MPI_IOCPAGE0_PAGEVERSION (0x01)
980 #define MPI_IOCPAGE1_PAGEVERSION (0x03)
983 #define MPI_IOCPAGE1_EEDP_MODE_MASK (0x07000000)
984 #define MPI_IOCPAGE1_EEDP_MODE_OFF (0x00000000)
985 #define MPI_IOCPAGE1_EEDP_MODE_T10 (0x01000000)
986 #define MPI_IOCPAGE1_EEDP_MODE_LSI_1 (0x02000000)
987 #define MPI_IOCPAGE1_INITIATOR_CONTEXT_REPLY_DISABLE (0x00000010)
988 #define MPI_IOCPAGE1_REPLY_COALESCING (0x00000001)
990 #define MPI_IOCPAGE1_PCISLOTNUM_UNKNOWN (0xFF)
1007 #define MPI_RAID_VOL_TYPE_IS (0x00)
1008 #define MPI_RAID_VOL_TYPE_IME (0x01)
1009 #define MPI_RAID_VOL_TYPE_IM (0x02)
1010 #define MPI_RAID_VOL_TYPE_RAID_5 (0x03)
1011 #define MPI_RAID_VOL_TYPE_RAID_6 (0x04)
1012 #define MPI_RAID_VOL_TYPE_RAID_10 (0x05)
1013 #define MPI_RAID_VOL_TYPE_RAID_50 (0x06)
1014 #define MPI_RAID_VOL_TYPE_UNKNOWN (0xFF)
1018 #define MPI_IOCPAGE2_FLAG_VOLUME_INACTIVE (0x08)
1024 #ifndef MPI_IOC_PAGE_2_RAID_VOLUME_MAX
1025 #define MPI_IOC_PAGE_2_RAID_VOLUME_MAX (1)
1040 #define MPI_IOCPAGE2_PAGEVERSION (0x04)
1044 #define MPI_IOCPAGE2_CAP_FLAGS_IS_SUPPORT (0x00000001)
1045 #define MPI_IOCPAGE2_CAP_FLAGS_IME_SUPPORT (0x00000002)
1046 #define MPI_IOCPAGE2_CAP_FLAGS_IM_SUPPORT (0x00000004)
1047 #define MPI_IOCPAGE2_CAP_FLAGS_RAID_5_SUPPORT (0x00000008)
1048 #define MPI_IOCPAGE2_CAP_FLAGS_RAID_6_SUPPORT (0x00000010)
1049 #define MPI_IOCPAGE2_CAP_FLAGS_RAID_10_SUPPORT (0x00000020)
1050 #define MPI_IOCPAGE2_CAP_FLAGS_RAID_50_SUPPORT (0x00000040)
1051 #define MPI_IOCPAGE2_CAP_FLAGS_RAID_64_BIT_ADDRESSING (0x10000000)
1052 #define MPI_IOCPAGE2_CAP_FLAGS_SES_SUPPORT (0x20000000)
1053 #define MPI_IOCPAGE2_CAP_FLAGS_SAFTE_SUPPORT (0x40000000)
1054 #define MPI_IOCPAGE2_CAP_FLAGS_CROSS_CHANNEL_SUPPORT (0x80000000)
1070 #ifndef MPI_IOC_PAGE_3_PHYSDISK_MAX
1071 #define MPI_IOC_PAGE_3_PHYSDISK_MAX (1)
1084 #define MPI_IOCPAGE3_PAGEVERSION (0x00)
1099 #ifndef MPI_IOC_PAGE_4_SEP_MAX
1100 #define MPI_IOC_PAGE_4_SEP_MAX (1)
1113 #define MPI_IOCPAGE4_PAGEVERSION (0x00)
1126 #define MPI_IOC_PAGE_5_HOT_SPARE_ACTIVE (0x01)
1132 #ifndef MPI_IOC_PAGE_5_HOT_SPARE_MAX
1133 #define MPI_IOC_PAGE_5_HOT_SPARE_MAX (1)
1147 #define MPI_IOCPAGE5_PAGEVERSION (0x00)
1181 #define MPI_IOCPAGE6_PAGEVERSION (0x01)
1185 #define MPI_IOCPAGE6_CAP_FLAGS_SSD_SUPPORT (0x00000020)
1186 #define MPI_IOCPAGE6_CAP_FLAGS_MULTIPORT_DRIVE_SUPPORT (0x00000010)
1187 #define MPI_IOCPAGE6_CAP_FLAGS_DISABLE_SMART_POLLING (0x00000008)
1189 #define MPI_IOCPAGE6_CAP_FLAGS_MASK_METADATA_SIZE (0x00000006)
1190 #define MPI_IOCPAGE6_CAP_FLAGS_64MB_METADATA_SIZE (0x00000000)
1191 #define MPI_IOCPAGE6_CAP_FLAGS_512MB_METADATA_SIZE (0x00000002)
1193 #define MPI_IOCPAGE6_CAP_FLAGS_GLOBAL_HOT_SPARE (0x00000001)
1217 #define MPI_BIOSPAGE1_PAGEVERSION (0x03)
1220 #define MPI_BIOSPAGE1_OPTIONS_SPI_ENABLE (0x00000400)
1221 #define MPI_BIOSPAGE1_OPTIONS_FC_ENABLE (0x00000200)
1222 #define MPI_BIOSPAGE1_OPTIONS_SAS_ENABLE (0x00000100)
1223 #define MPI_BIOSPAGE1_OPTIONS_DISABLE_BIOS (0x00000001)
1226 #define MPI_BIOSPAGE1_IOCSET_MASK_INITIAL_SPINUP_DELAY (0x0F000000)
1227 #define MPI_BIOSPAGE1_IOCSET_SHIFT_INITIAL_SPINUP_DELAY (24)
1229 #define MPI_BIOSPAGE1_IOCSET_MASK_PORT_ENABLE_DELAY (0x00F00000)
1230 #define MPI_BIOSPAGE1_IOCSET_SHIFT_PORT_ENABLE_DELAY (20)
1232 #define MPI_BIOSPAGE1_IOCSET_AUTO_PORT_ENABLE (0x00080000)
1233 #define MPI_BIOSPAGE1_IOCSET_DIRECT_ATTACH_SPINUP_MODE (0x00040000)
1235 #define MPI_BIOSPAGE1_IOCSET_MASK_BOOT_PREFERENCE (0x00030000)
1236 #define MPI_BIOSPAGE1_IOCSET_ENCLOSURE_SLOT_BOOT (0x00000000)
1237 #define MPI_BIOSPAGE1_IOCSET_SAS_ADDRESS_BOOT (0x00010000)
1239 #define MPI_BIOSPAGE1_IOCSET_MASK_MAX_TARGET_SPIN_UP (0x0000F000)
1240 #define MPI_BIOSPAGE1_IOCSET_SHIFT_MAX_TARGET_SPIN_UP (12)
1242 #define MPI_BIOSPAGE1_IOCSET_MASK_SPINUP_DELAY (0x00000F00)
1243 #define MPI_BIOSPAGE1_IOCSET_SHIFT_SPINUP_DELAY (8)
1245 #define MPI_BIOSPAGE1_IOCSET_MASK_RM_SETTING (0x000000C0)
1246 #define MPI_BIOSPAGE1_IOCSET_NONE_RM_SETTING (0x00000000)
1247 #define MPI_BIOSPAGE1_IOCSET_BOOT_RM_SETTING (0x00000040)
1248 #define MPI_BIOSPAGE1_IOCSET_MEDIA_RM_SETTING (0x00000080)
1250 #define MPI_BIOSPAGE1_IOCSET_MASK_ADAPTER_SUPPORT (0x00000030)
1251 #define MPI_BIOSPAGE1_IOCSET_NO_SUPPORT (0x00000000)
1252 #define MPI_BIOSPAGE1_IOCSET_BIOS_SUPPORT (0x00000010)
1253 #define MPI_BIOSPAGE1_IOCSET_OS_SUPPORT (0x00000020)
1254 #define MPI_BIOSPAGE1_IOCSET_ALL_SUPPORT (0x00000030)
1256 #define MPI_BIOSPAGE1_IOCSET_ALTERNATE_CHS (0x00000008)
1259 #define MPI_BIOSPAGE1_DEVSET_DISABLE_SMART_POLLING (0x00000010)
1260 #define MPI_BIOSPAGE1_DEVSET_DISABLE_SEQ_LUN (0x00000008)
1261 #define MPI_BIOSPAGE1_DEVSET_DISABLE_RM_LUN (0x00000004)
1262 #define MPI_BIOSPAGE1_DEVSET_DISABLE_NON_RM_LUN (0x00000002)
1263 #define MPI_BIOSPAGE1_DEVSET_DISABLE_OTHER_LUN (0x00000001)
1266 #define MPI_BIOSPAGE1_EXPSPINUP_MASK_MAX_TARGET (0xF0)
1267 #define MPI_BIOSPAGE1_EXPSPINUP_SHIFT_MAX_TARGET (4)
1268 #define MPI_BIOSPAGE1_EXPSPINUP_MASK_DELAY (0x0F)
1445 #define MPI_BIOSPAGE2_PAGEVERSION (0x02)
1447 #define MPI_BIOSPAGE2_FORM_MASK (0x0F)
1448 #define MPI_BIOSPAGE2_FORM_ADAPTER_ORDER (0x00)
1449 #define MPI_BIOSPAGE2_FORM_ADAPTER_NUMBER (0x01)
1450 #define MPI_BIOSPAGE2_FORM_PCI_ADDRESS (0x02)
1451 #define MPI_BIOSPAGE2_FORM_PCI_SLOT_NUMBER (0x03)
1452 #define MPI_BIOSPAGE2_FORM_FC_WWN (0x04)
1453 #define MPI_BIOSPAGE2_FORM_SAS_WWN (0x05)
1454 #define MPI_BIOSPAGE2_FORM_ENCLOSURE_SLOT (0x06)
1463 #define MPI_BIOSPAGE4_PAGEVERSION (0x00)
1478 #define MPI_SCSIPORTPAGE0_PAGEVERSION (0x02)
1480 #define MPI_SCSIPORTPAGE0_CAP_IU (0x00000001)
1481 #define MPI_SCSIPORTPAGE0_CAP_DT (0x00000002)
1482 #define MPI_SCSIPORTPAGE0_CAP_QAS (0x00000004)
1483 #define MPI_SCSIPORTPAGE0_CAP_MIN_SYNC_PERIOD_MASK (0x0000FF00)
1484 #define MPI_SCSIPORTPAGE0_SYNC_ASYNC (0x00)
1485 #define MPI_SCSIPORTPAGE0_SYNC_5 (0x32)
1486 #define MPI_SCSIPORTPAGE0_SYNC_10 (0x19)
1487 #define MPI_SCSIPORTPAGE0_SYNC_20 (0x0C)
1488 #define MPI_SCSIPORTPAGE0_SYNC_33_33 (0x0B)
1489 #define MPI_SCSIPORTPAGE0_SYNC_40 (0x0A)
1490 #define MPI_SCSIPORTPAGE0_SYNC_80 (0x09)
1491 #define MPI_SCSIPORTPAGE0_SYNC_160 (0x08)
1492 #define MPI_SCSIPORTPAGE0_SYNC_UNKNOWN (0xFF)
1494 #define MPI_SCSIPORTPAGE0_CAP_SHIFT_MIN_SYNC_PERIOD (8)
1495 #define MPI_SCSIPORTPAGE0_CAP_GET_MIN_SYNC_PERIOD(Cap) \
1496 ( ((Cap) & MPI_SCSIPORTPAGE0_CAP_MIN_SYNC_PERIOD_MASK) \
1497 >> MPI_SCSIPORTPAGE0_CAP_SHIFT_MIN_SYNC_PERIOD \
1499 #define MPI_SCSIPORTPAGE0_CAP_MAX_SYNC_OFFSET_MASK (0x00FF0000)
1500 #define MPI_SCSIPORTPAGE0_CAP_SHIFT_MAX_SYNC_OFFSET (16)
1501 #define MPI_SCSIPORTPAGE0_CAP_GET_MAX_SYNC_OFFSET(Cap) \
1502 ( ((Cap) & MPI_SCSIPORTPAGE0_CAP_MAX_SYNC_OFFSET_MASK) \
1503 >> MPI_SCSIPORTPAGE0_CAP_SHIFT_MAX_SYNC_OFFSET \
1505 #define MPI_SCSIPORTPAGE0_CAP_IDP (0x08000000)
1506 #define MPI_SCSIPORTPAGE0_CAP_WIDE (0x20000000)
1507 #define MPI_SCSIPORTPAGE0_CAP_AIP (0x80000000)
1509 #define MPI_SCSIPORTPAGE0_PHY_SIGNAL_TYPE_MASK (0x00000003)
1510 #define MPI_SCSIPORTPAGE0_PHY_SIGNAL_HVD (0x01)
1511 #define MPI_SCSIPORTPAGE0_PHY_SIGNAL_SE (0x02)
1512 #define MPI_SCSIPORTPAGE0_PHY_SIGNAL_LVD (0x03)
1513 #define MPI_SCSIPORTPAGE0_PHY_MASK_CONNECTED_ID (0xFF000000)
1514 #define MPI_SCSIPORTPAGE0_PHY_SHIFT_CONNECTED_ID (24)
1515 #define MPI_SCSIPORTPAGE0_PHY_BUS_FREE_CONNECTED_ID (0xFE)
1516 #define MPI_SCSIPORTPAGE0_PHY_UNKNOWN_CONNECTED_ID (0xFF)
1530 #define MPI_SCSIPORTPAGE1_PAGEVERSION (0x03)
1533 #define MPI_SCSIPORTPAGE1_CFG_PORT_SCSI_ID_MASK (0x000000FF)
1534 #define MPI_SCSIPORTPAGE1_CFG_PORT_RESPONSE_ID_MASK (0xFFFF0000)
1535 #define MPI_SCSIPORTPAGE1_CFG_SHIFT_PORT_RESPONSE_ID (16)
1538 #define MPI_SCSIPORTPAGE1_TARGCONFIG_TARG_ONLY (0x01)
1539 #define MPI_SCSIPORTPAGE1_TARGCONFIG_INIT_TARG (0x02)
1559 #define MPI_SCSIPORTPAGE2_PAGEVERSION (0x02)
1562 #define MPI_SCSIPORTPAGE2_PORT_FLAGS_SCAN_HIGH_TO_LOW (0x00000001)
1563 #define MPI_SCSIPORTPAGE2_PORT_FLAGS_AVOID_SCSI_RESET (0x00000004)
1564 #define MPI_SCSIPORTPAGE2_PORT_FLAGS_ALTERNATE_CHS (0x00000008)
1565 #define MPI_SCSIPORTPAGE2_PORT_FLAGS_TERMINATION_DISABLE (0x00000010)
1567 #define MPI_SCSIPORTPAGE2_PORT_FLAGS_DV_MASK (0x00000060)
1568 #define MPI_SCSIPORTPAGE2_PORT_FLAGS_FULL_DV (0x00000000)
1569 #define MPI_SCSIPORTPAGE2_PORT_FLAGS_BASIC_DV_ONLY (0x00000020)
1570 #define MPI_SCSIPORTPAGE2_PORT_FLAGS_OFF_DV (0x00000060)
1574 #define MPI_SCSIPORTPAGE2_PORT_HOST_ID_MASK (0x0000000F)
1575 #define MPI_SCSIPORTPAGE2_PORT_MASK_INIT_HBA (0x00000030)
1576 #define MPI_SCSIPORTPAGE2_PORT_DISABLE_INIT_HBA (0x00000000)
1577 #define MPI_SCSIPORTPAGE2_PORT_BIOS_INIT_HBA (0x00000010)
1578 #define MPI_SCSIPORTPAGE2_PORT_OS_INIT_HBA (0x00000020)
1579 #define MPI_SCSIPORTPAGE2_PORT_BIOS_OS_INIT_HBA (0x00000030)
1580 #define MPI_SCSIPORTPAGE2_PORT_REMOVABLE_MEDIA (0x000000C0)
1581 #define MPI_SCSIPORTPAGE2_PORT_RM_NONE (0x00000000)
1582 #define MPI_SCSIPORTPAGE2_PORT_RM_BOOT_ONLY (0x00000040)
1583 #define MPI_SCSIPORTPAGE2_PORT_RM_WITH_MEDIA (0x00000080)
1584 #define MPI_SCSIPORTPAGE2_PORT_SPINUP_DELAY_MASK (0x00000F00)
1585 #define MPI_SCSIPORTPAGE2_PORT_SHIFT_SPINUP_DELAY (8)
1586 #define MPI_SCSIPORTPAGE2_PORT_MASK_NEGO_MASTER_SETTINGS (0x00003000)
1587 #define MPI_SCSIPORTPAGE2_PORT_NEGO_MASTER_SETTINGS (0x00000000)
1588 #define MPI_SCSIPORTPAGE2_PORT_NONE_MASTER_SETTINGS (0x00001000)
1589 #define MPI_SCSIPORTPAGE2_PORT_ALL_MASTER_SETTINGS (0x00003000)
1591 #define MPI_SCSIPORTPAGE2_DEVICE_DISCONNECT_ENABLE (0x0001)
1592 #define MPI_SCSIPORTPAGE2_DEVICE_ID_SCAN_ENABLE (0x0002)
1593 #define MPI_SCSIPORTPAGE2_DEVICE_LUN_SCAN_ENABLE (0x0004)
1594 #define MPI_SCSIPORTPAGE2_DEVICE_TAG_QUEUE_ENABLE (0x0008)
1595 #define MPI_SCSIPORTPAGE2_DEVICE_WIDE_DISABLE (0x0010)
1596 #define MPI_SCSIPORTPAGE2_DEVICE_BOOT_CHOICE (0x0020)
1611 #define MPI_SCSIDEVPAGE0_PAGEVERSION (0x04)
1613 #define MPI_SCSIDEVPAGE0_NP_IU (0x00000001)
1614 #define MPI_SCSIDEVPAGE0_NP_DT (0x00000002)
1615 #define MPI_SCSIDEVPAGE0_NP_QAS (0x00000004)
1616 #define MPI_SCSIDEVPAGE0_NP_HOLD_MCS (0x00000008)
1617 #define MPI_SCSIDEVPAGE0_NP_WR_FLOW (0x00000010)
1618 #define MPI_SCSIDEVPAGE0_NP_RD_STRM (0x00000020)
1619 #define MPI_SCSIDEVPAGE0_NP_RTI (0x00000040)
1620 #define MPI_SCSIDEVPAGE0_NP_PCOMP_EN (0x00000080)
1621 #define MPI_SCSIDEVPAGE0_NP_NEG_SYNC_PERIOD_MASK (0x0000FF00)
1622 #define MPI_SCSIDEVPAGE0_NP_SHIFT_SYNC_PERIOD (8)
1623 #define MPI_SCSIDEVPAGE0_NP_NEG_SYNC_OFFSET_MASK (0x00FF0000)
1624 #define MPI_SCSIDEVPAGE0_NP_SHIFT_SYNC_OFFSET (16)
1625 #define MPI_SCSIDEVPAGE0_NP_IDP (0x08000000)
1626 #define MPI_SCSIDEVPAGE0_NP_WIDE (0x20000000)
1627 #define MPI_SCSIDEVPAGE0_NP_AIP (0x80000000)
1629 #define MPI_SCSIDEVPAGE0_INFO_PARAMS_NEGOTIATED (0x00000001)
1630 #define MPI_SCSIDEVPAGE0_INFO_SDTR_REJECTED (0x00000002)
1631 #define MPI_SCSIDEVPAGE0_INFO_WDTR_REJECTED (0x00000004)
1632 #define MPI_SCSIDEVPAGE0_INFO_PPR_REJECTED (0x00000008)
1644 #define MPI_SCSIDEVPAGE1_PAGEVERSION (0x05)
1646 #define MPI_SCSIDEVPAGE1_RP_IU (0x00000001)
1647 #define MPI_SCSIDEVPAGE1_RP_DT (0x00000002)
1648 #define MPI_SCSIDEVPAGE1_RP_QAS (0x00000004)
1649 #define MPI_SCSIDEVPAGE1_RP_HOLD_MCS (0x00000008)
1650 #define MPI_SCSIDEVPAGE1_RP_WR_FLOW (0x00000010)
1651 #define MPI_SCSIDEVPAGE1_RP_RD_STRM (0x00000020)
1652 #define MPI_SCSIDEVPAGE1_RP_RTI (0x00000040)
1653 #define MPI_SCSIDEVPAGE1_RP_PCOMP_EN (0x00000080)
1654 #define MPI_SCSIDEVPAGE1_RP_MIN_SYNC_PERIOD_MASK (0x0000FF00)
1655 #define MPI_SCSIDEVPAGE1_RP_SHIFT_MIN_SYNC_PERIOD (8)
1656 #define MPI_SCSIDEVPAGE1_RP_MAX_SYNC_OFFSET_MASK (0x00FF0000)
1657 #define MPI_SCSIDEVPAGE1_RP_SHIFT_MAX_SYNC_OFFSET (16)
1658 #define MPI_SCSIDEVPAGE1_RP_IDP (0x08000000)
1659 #define MPI_SCSIDEVPAGE1_RP_WIDE (0x20000000)
1660 #define MPI_SCSIDEVPAGE1_RP_AIP (0x80000000)
1662 #define MPI_SCSIDEVPAGE1_CONF_WDTR_DISALLOWED (0x00000002)
1663 #define MPI_SCSIDEVPAGE1_CONF_SDTR_DISALLOWED (0x00000004)
1664 #define MPI_SCSIDEVPAGE1_CONF_EXTENDED_PARAMS_ENABLE (0x00000008)
1665 #define MPI_SCSIDEVPAGE1_CONF_FORCE_PPR_MSG (0x00000010)
1677 #define MPI_SCSIDEVPAGE2_PAGEVERSION (0x01)
1679 #define MPI_SCSIDEVPAGE2_DV_ISI_ENABLE (0x00000010)
1680 #define MPI_SCSIDEVPAGE2_DV_SECONDARY_DRIVER_ENABLE (0x00000020)
1681 #define MPI_SCSIDEVPAGE2_DV_SLEW_RATE_CTRL (0x00000380)
1682 #define MPI_SCSIDEVPAGE2_DV_PRIM_DRIVE_STR_CTRL (0x00001C00)
1683 #define MPI_SCSIDEVPAGE2_DV_SECOND_DRIVE_STR_CTRL (0x0000E000)
1684 #define MPI_SCSIDEVPAGE2_DV_XCLKH_ST (0x10000000)
1685 #define MPI_SCSIDEVPAGE2_DV_XCLKS_ST (0x20000000)
1686 #define MPI_SCSIDEVPAGE2_DV_XCLKH_DT (0x40000000)
1687 #define MPI_SCSIDEVPAGE2_DV_XCLKS_DT (0x80000000)
1689 #define MPI_SCSIDEVPAGE2_PPS_PPS_MASK (0x00000003)
1691 #define MPI_SCSIDEVPAGE2_DPS_BIT_0_PL_SELECT_MASK (0x00000003)
1692 #define MPI_SCSIDEVPAGE2_DPS_BIT_1_PL_SELECT_MASK (0x0000000C)
1693 #define MPI_SCSIDEVPAGE2_DPS_BIT_2_PL_SELECT_MASK (0x00000030)
1694 #define MPI_SCSIDEVPAGE2_DPS_BIT_3_PL_SELECT_MASK (0x000000C0)
1695 #define MPI_SCSIDEVPAGE2_DPS_BIT_4_PL_SELECT_MASK (0x00000300)
1696 #define MPI_SCSIDEVPAGE2_DPS_BIT_5_PL_SELECT_MASK (0x00000C00)
1697 #define MPI_SCSIDEVPAGE2_DPS_BIT_6_PL_SELECT_MASK (0x00003000)
1698 #define MPI_SCSIDEVPAGE2_DPS_BIT_7_PL_SELECT_MASK (0x0000C000)
1699 #define MPI_SCSIDEVPAGE2_DPS_BIT_8_PL_SELECT_MASK (0x00030000)
1700 #define MPI_SCSIDEVPAGE2_DPS_BIT_9_PL_SELECT_MASK (0x000C0000)
1701 #define MPI_SCSIDEVPAGE2_DPS_BIT_10_PL_SELECT_MASK (0x00300000)
1702 #define MPI_SCSIDEVPAGE2_DPS_BIT_11_PL_SELECT_MASK (0x00C00000)
1703 #define MPI_SCSIDEVPAGE2_DPS_BIT_12_PL_SELECT_MASK (0x03000000)
1704 #define MPI_SCSIDEVPAGE2_DPS_BIT_13_PL_SELECT_MASK (0x0C000000)
1705 #define MPI_SCSIDEVPAGE2_DPS_BIT_14_PL_SELECT_MASK (0x30000000)
1706 #define MPI_SCSIDEVPAGE2_DPS_BIT_15_PL_SELECT_MASK (0xC0000000)
1719 #define MPI_SCSIDEVPAGE3_PAGEVERSION (0x00)
1721 #define MPI_SCSIDEVPAGE3_MAX_COUNTER (0xFFFE)
1722 #define MPI_SCSIDEVPAGE3_UNSUPPORTED_COUNTER (0xFFFF)
1755 #define MPI_FCPORTPAGE0_PAGEVERSION (0x02)
1757 #define MPI_FCPORTPAGE0_FLAGS_PROT_MASK (0x0000000F)
1758 #define MPI_FCPORTPAGE0_FLAGS_PROT_FCP_INIT (MPI_PORTFACTS_PROTOCOL_INITIATOR)
1759 #define MPI_FCPORTPAGE0_FLAGS_PROT_FCP_TARG (MPI_PORTFACTS_PROTOCOL_TARGET)
1760 #define MPI_FCPORTPAGE0_FLAGS_PROT_LAN (MPI_PORTFACTS_PROTOCOL_LAN)
1761 #define MPI_FCPORTPAGE0_FLAGS_PROT_LOGBUSADDR (MPI_PORTFACTS_PROTOCOL_LOGBUSADDR)
1763 #define MPI_FCPORTPAGE0_FLAGS_ALIAS_ALPA_SUPPORTED (0x00000010)
1764 #define MPI_FCPORTPAGE0_FLAGS_ALIAS_WWN_SUPPORTED (0x00000020)
1765 #define MPI_FCPORTPAGE0_FLAGS_FABRIC_WWN_VALID (0x00000040)
1767 #define MPI_FCPORTPAGE0_FLAGS_ATTACH_TYPE_MASK (0x00000F00)
1768 #define MPI_FCPORTPAGE0_FLAGS_ATTACH_NO_INIT (0x00000000)
1769 #define MPI_FCPORTPAGE0_FLAGS_ATTACH_POINT_TO_POINT (0x00000100)
1770 #define MPI_FCPORTPAGE0_FLAGS_ATTACH_PRIVATE_LOOP (0x00000200)
1771 #define MPI_FCPORTPAGE0_FLAGS_ATTACH_FABRIC_DIRECT (0x00000400)
1772 #define MPI_FCPORTPAGE0_FLAGS_ATTACH_PUBLIC_LOOP (0x00000800)
1774 #define MPI_FCPORTPAGE0_LTYPE_RESERVED (0x00)
1775 #define MPI_FCPORTPAGE0_LTYPE_OTHER (0x01)
1776 #define MPI_FCPORTPAGE0_LTYPE_UNKNOWN (0x02)
1777 #define MPI_FCPORTPAGE0_LTYPE_COPPER (0x03)
1778 #define MPI_FCPORTPAGE0_LTYPE_SINGLE_1300 (0x04)
1779 #define MPI_FCPORTPAGE0_LTYPE_SINGLE_1500 (0x05)
1780 #define MPI_FCPORTPAGE0_LTYPE_50_LASER_MULTI (0x06)
1781 #define MPI_FCPORTPAGE0_LTYPE_50_LED_MULTI (0x07)
1782 #define MPI_FCPORTPAGE0_LTYPE_62_LASER_MULTI (0x08)
1783 #define MPI_FCPORTPAGE0_LTYPE_62_LED_MULTI (0x09)
1784 #define MPI_FCPORTPAGE0_LTYPE_MULTI_LONG_WAVE (0x0A)
1785 #define MPI_FCPORTPAGE0_LTYPE_MULTI_SHORT_WAVE (0x0B)
1786 #define MPI_FCPORTPAGE0_LTYPE_LASER_SHORT_WAVE (0x0C)
1787 #define MPI_FCPORTPAGE0_LTYPE_LED_SHORT_WAVE (0x0D)
1788 #define MPI_FCPORTPAGE0_LTYPE_1300_LONG_WAVE (0x0E)
1789 #define MPI_FCPORTPAGE0_LTYPE_1500_LONG_WAVE (0x0F)
1791 #define MPI_FCPORTPAGE0_PORTSTATE_UNKNOWN (0x01)
1792 #define MPI_FCPORTPAGE0_PORTSTATE_ONLINE (0x02)
1793 #define MPI_FCPORTPAGE0_PORTSTATE_OFFLINE (0x03)
1794 #define MPI_FCPORTPAGE0_PORTSTATE_BYPASSED (0x04)
1795 #define MPI_FCPORTPAGE0_PORTSTATE_DIAGNOST (0x05)
1796 #define MPI_FCPORTPAGE0_PORTSTATE_LINKDOWN (0x06)
1797 #define MPI_FCPORTPAGE0_PORTSTATE_ERROR (0x07)
1798 #define MPI_FCPORTPAGE0_PORTSTATE_LOOPBACK (0x08)
1800 #define MPI_FCPORTPAGE0_SUPPORT_CLASS_1 (0x00000001)
1801 #define MPI_FCPORTPAGE0_SUPPORT_CLASS_2 (0x00000002)
1802 #define MPI_FCPORTPAGE0_SUPPORT_CLASS_3 (0x00000004)
1804 #define MPI_FCPORTPAGE0_SUPPORT_SPEED_UKNOWN (0x00000000)
1805 #define MPI_FCPORTPAGE0_SUPPORT_1GBIT_SPEED (0x00000001)
1806 #define MPI_FCPORTPAGE0_SUPPORT_2GBIT_SPEED (0x00000002)
1807 #define MPI_FCPORTPAGE0_SUPPORT_10GBIT_SPEED (0x00000004)
1808 #define MPI_FCPORTPAGE0_SUPPORT_4GBIT_SPEED (0x00000008)
1810 #define MPI_FCPORTPAGE0_CURRENT_SPEED_UKNOWN MPI_FCPORTPAGE0_SUPPORT_SPEED_UKNOWN
1811 #define MPI_FCPORTPAGE0_CURRENT_SPEED_1GBIT MPI_FCPORTPAGE0_SUPPORT_1GBIT_SPEED
1812 #define MPI_FCPORTPAGE0_CURRENT_SPEED_2GBIT MPI_FCPORTPAGE0_SUPPORT_2GBIT_SPEED
1813 #define MPI_FCPORTPAGE0_CURRENT_SPEED_10GBIT MPI_FCPORTPAGE0_SUPPORT_10GBIT_SPEED
1814 #define MPI_FCPORTPAGE0_CURRENT_SPEED_4GBIT MPI_FCPORTPAGE0_SUPPORT_4GBIT_SPEED
1815 #define MPI_FCPORTPAGE0_CURRENT_SPEED_NOT_NEGOTIATED (0x00008000)
1835 #define MPI_FCPORTPAGE1_PAGEVERSION (0x06)
1837 #define MPI_FCPORTPAGE1_FLAGS_EXT_FCP_STATUS_EN (0x08000000)
1838 #define MPI_FCPORTPAGE1_FLAGS_IMMEDIATE_ERROR_REPLY (0x04000000)
1839 #define MPI_FCPORTPAGE1_FLAGS_FORCE_USE_NOSEEPROM_WWNS (0x02000000)
1840 #define MPI_FCPORTPAGE1_FLAGS_VERBOSE_RESCAN_EVENTS (0x01000000)
1841 #define MPI_FCPORTPAGE1_FLAGS_TARGET_MODE_OXID (0x00800000)
1842 #define MPI_FCPORTPAGE1_FLAGS_PORT_OFFLINE (0x00400000)
1843 #define MPI_FCPORTPAGE1_FLAGS_SOFT_ALPA_FALLBACK (0x00200000)
1844 #define MPI_FCPORTPAGE1_FLAGS_TARGET_LARGE_CDB_ENABLE (0x00000080)
1845 #define MPI_FCPORTPAGE1_FLAGS_MASK_RR_TOV_UNITS (0x00000070)
1846 #define MPI_FCPORTPAGE1_FLAGS_SUPPRESS_PROT_REG (0x00000008)
1847 #define MPI_FCPORTPAGE1_FLAGS_PLOGI_ON_LOGO (0x00000004)
1848 #define MPI_FCPORTPAGE1_FLAGS_MAINTAIN_LOGINS (0x00000002)
1849 #define MPI_FCPORTPAGE1_FLAGS_SORT_BY_DID (0x00000001)
1850 #define MPI_FCPORTPAGE1_FLAGS_SORT_BY_WWN (0x00000000)
1852 #define MPI_FCPORTPAGE1_FLAGS_PROT_MASK (0xF0000000)
1853 #define MPI_FCPORTPAGE1_FLAGS_PROT_SHIFT (28)
1854 #define MPI_FCPORTPAGE1_FLAGS_PROT_FCP_INIT ((U32)MPI_PORTFACTS_PROTOCOL_INITIATOR << MPI_FCPORTPAGE1_FLAGS_PROT_SHIFT)
1855 #define MPI_FCPORTPAGE1_FLAGS_PROT_FCP_TARG ((U32)MPI_PORTFACTS_PROTOCOL_TARGET << MPI_FCPORTPAGE1_FLAGS_PROT_SHIFT)
1856 #define MPI_FCPORTPAGE1_FLAGS_PROT_LAN ((U32)MPI_PORTFACTS_PROTOCOL_LAN << MPI_FCPORTPAGE1_FLAGS_PROT_SHIFT)
1857 #define MPI_FCPORTPAGE1_FLAGS_PROT_LOGBUSADDR ((U32)MPI_PORTFACTS_PROTOCOL_LOGBUSADDR << MPI_FCPORTPAGE1_FLAGS_PROT_SHIFT)
1859 #define MPI_FCPORTPAGE1_FLAGS_NONE_RR_TOV_UNITS (0x00000000)
1860 #define MPI_FCPORTPAGE1_FLAGS_THOUSANDTH_RR_TOV_UNITS (0x00000010)
1861 #define MPI_FCPORTPAGE1_FLAGS_TENTH_RR_TOV_UNITS (0x00000030)
1862 #define MPI_FCPORTPAGE1_FLAGS_TEN_RR_TOV_UNITS (0x00000050)
1864 #define MPI_FCPORTPAGE1_HARD_ALPA_NOT_USED (0xFF)
1866 #define MPI_FCPORTPAGE1_LCONFIG_SPEED_MASK (0x0F)
1867 #define MPI_FCPORTPAGE1_LCONFIG_SPEED_1GIG (0x00)
1868 #define MPI_FCPORTPAGE1_LCONFIG_SPEED_2GIG (0x01)
1869 #define MPI_FCPORTPAGE1_LCONFIG_SPEED_4GIG (0x02)
1870 #define MPI_FCPORTPAGE1_LCONFIG_SPEED_10GIG (0x03)
1871 #define MPI_FCPORTPAGE1_LCONFIG_SPEED_AUTO (0x0F)
1873 #define MPI_FCPORTPAGE1_TOPOLOGY_MASK (0x0F)
1874 #define MPI_FCPORTPAGE1_TOPOLOGY_NLPORT (0x01)
1875 #define MPI_FCPORTPAGE1_TOPOLOGY_NPORT (0x02)
1876 #define MPI_FCPORTPAGE1_TOPOLOGY_AUTO (0x0F)
1878 #define MPI_FCPORTPAGE1_ALT_CONN_UNKNOWN (0x00)
1880 #define MPI_FCPORTPAGE1_INITIATOR_DEV_TIMEOUT_MASK (0x7F)
1881 #define MPI_FCPORTPAGE1_INITIATOR_DEV_UNIT_16 (0x80)
1892 #define MPI_FCPORTPAGE2_PAGEVERSION (0x01)
1918 #define MPI_PERSISTENT_FLAGS_SHIFT (16)
1919 #define MPI_PERSISTENT_FLAGS_ENTRY_VALID (0x0001)
1920 #define MPI_PERSISTENT_FLAGS_SCAN_ID (0x0002)
1921 #define MPI_PERSISTENT_FLAGS_SCAN_LUNS (0x0004)
1922 #define MPI_PERSISTENT_FLAGS_BOOT_DEVICE (0x0008)
1923 #define MPI_PERSISTENT_FLAGS_BY_DID (0x0080)
1929 #ifndef MPI_FC_PORT_PAGE_3_ENTRY_MAX
1930 #define MPI_FC_PORT_PAGE_3_ENTRY_MAX (1)
1940 #define MPI_FCPORTPAGE3_PAGEVERSION (0x01)
1951 #define MPI_FCPORTPAGE4_PAGEVERSION (0x00)
1953 #define MPI_FCPORTPAGE4_PORT_FLAGS_ALTERNATE_CHS (0x00000008)
1955 #define MPI_FCPORTPAGE4_PORT_MASK_INIT_HBA (0x00000030)
1956 #define MPI_FCPORTPAGE4_PORT_DISABLE_INIT_HBA (0x00000000)
1957 #define MPI_FCPORTPAGE4_PORT_BIOS_INIT_HBA (0x00000010)
1958 #define MPI_FCPORTPAGE4_PORT_OS_INIT_HBA (0x00000020)
1959 #define MPI_FCPORTPAGE4_PORT_BIOS_OS_INIT_HBA (0x00000030)
1960 #define MPI_FCPORTPAGE4_PORT_REMOVABLE_MEDIA (0x000000C0)
1961 #define MPI_FCPORTPAGE4_PORT_SPINUP_DELAY_MASK (0x00000F00)
1982 #define MPI_FCPORTPAGE5_PAGEVERSION (0x02)
1984 #define MPI_FCPORTPAGE5_FLAGS_ALPA_ACQUIRED (0x01)
1985 #define MPI_FCPORTPAGE5_FLAGS_HARD_ALPA (0x02)
1986 #define MPI_FCPORTPAGE5_FLAGS_HARD_WWNN (0x04)
1987 #define MPI_FCPORTPAGE5_FLAGS_HARD_WWPN (0x08)
1988 #define MPI_FCPORTPAGE5_FLAGS_DISABLE (0x10)
2013 #define MPI_FCPORTPAGE6_PAGEVERSION (0x00)
2024 #define MPI_FCPORTPAGE7_PAGEVERSION (0x00)
2034 #define MPI_FCPORTPAGE8_PAGEVERSION (0x00)
2054 #define MPI_FCPORTPAGE9_PAGEVERSION (0x00)
2084 #define MPI_FCPORT10_BASE_ID_UNKNOWN (0x00)
2085 #define MPI_FCPORT10_BASE_ID_GBIC (0x01)
2086 #define MPI_FCPORT10_BASE_ID_FIXED (0x02)
2087 #define MPI_FCPORT10_BASE_ID_SFP (0x03)
2088 #define MPI_FCPORT10_BASE_ID_SFP_MIN (0x04)
2089 #define MPI_FCPORT10_BASE_ID_SFP_MAX (0x7F)
2090 #define MPI_FCPORT10_BASE_ID_VEND_SPEC_MASK (0x80)
2092 #define MPI_FCPORT10_BASE_EXTID_UNKNOWN (0x00)
2093 #define MPI_FCPORT10_BASE_EXTID_MODDEF1 (0x01)
2094 #define MPI_FCPORT10_BASE_EXTID_MODDEF2 (0x02)
2095 #define MPI_FCPORT10_BASE_EXTID_MODDEF3 (0x03)
2096 #define MPI_FCPORT10_BASE_EXTID_SEEPROM (0x04)
2097 #define MPI_FCPORT10_BASE_EXTID_MODDEF5 (0x05)
2098 #define MPI_FCPORT10_BASE_EXTID_MODDEF6 (0x06)
2099 #define MPI_FCPORT10_BASE_EXTID_MODDEF7 (0x07)
2100 #define MPI_FCPORT10_BASE_EXTID_VNDSPC_MASK (0x80)
2102 #define MPI_FCPORT10_BASE_CONN_UNKNOWN (0x00)
2103 #define MPI_FCPORT10_BASE_CONN_SC (0x01)
2104 #define MPI_FCPORT10_BASE_CONN_COPPER1 (0x02)
2105 #define MPI_FCPORT10_BASE_CONN_COPPER2 (0x03)
2106 #define MPI_FCPORT10_BASE_CONN_BNC_TNC (0x04)
2107 #define MPI_FCPORT10_BASE_CONN_COAXIAL (0x05)
2108 #define MPI_FCPORT10_BASE_CONN_FIBERJACK (0x06)
2109 #define MPI_FCPORT10_BASE_CONN_LC (0x07)
2110 #define MPI_FCPORT10_BASE_CONN_MT_RJ (0x08)
2111 #define MPI_FCPORT10_BASE_CONN_MU (0x09)
2112 #define MPI_FCPORT10_BASE_CONN_SG (0x0A)
2113 #define MPI_FCPORT10_BASE_CONN_OPT_PIGT (0x0B)
2114 #define MPI_FCPORT10_BASE_CONN_RSV1_MIN (0x0C)
2115 #define MPI_FCPORT10_BASE_CONN_RSV1_MAX (0x1F)
2116 #define MPI_FCPORT10_BASE_CONN_HSSDC_II (0x20)
2117 #define MPI_FCPORT10_BASE_CONN_CPR_PIGT (0x21)
2118 #define MPI_FCPORT10_BASE_CONN_RSV2_MIN (0x22)
2119 #define MPI_FCPORT10_BASE_CONN_RSV2_MAX (0x7F)
2120 #define MPI_FCPORT10_BASE_CONN_VNDSPC_MASK (0x80)
2122 #define MPI_FCPORT10_BASE_ENCODE_UNSPEC (0x00)
2123 #define MPI_FCPORT10_BASE_ENCODE_8B10B (0x01)
2124 #define MPI_FCPORT10_BASE_ENCODE_4B5B (0x02)
2125 #define MPI_FCPORT10_BASE_ENCODE_NRZ (0x03)
2126 #define MPI_FCPORT10_BASE_ENCODE_MANCHESTER (0x04)
2144 #define MPI_FCPORT10_EXT_OPTION1_RATESEL (0x20)
2145 #define MPI_FCPORT10_EXT_OPTION1_TX_DISABLE (0x10)
2146 #define MPI_FCPORT10_EXT_OPTION1_TX_FAULT (0x08)
2147 #define MPI_FCPORT10_EXT_OPTION1_LOS_INVERT (0x04)
2148 #define MPI_FCPORT10_EXT_OPTION1_LOS (0x02)
2165 #define MPI_FCPORTPAGE10_PAGEVERSION (0x01)
2168 #define MPI_FCPORTPAGE10_FLAGS_MODDEF_MASK (0x00000007)
2169 #define MPI_FCPORTPAGE10_FLAGS_MODDEF2 (0x00000001)
2170 #define MPI_FCPORTPAGE10_FLAGS_MODDEF1 (0x00000002)
2171 #define MPI_FCPORTPAGE10_FLAGS_MODDEF0 (0x00000004)
2172 #define MPI_FCPORTPAGE10_FLAGS_MODDEF_NOGBIC (0x00000007)
2173 #define MPI_FCPORTPAGE10_FLAGS_MODDEF_CPR_IEEE_CX (0x00000006)
2174 #define MPI_FCPORTPAGE10_FLAGS_MODDEF_COPPER (0x00000005)
2175 #define MPI_FCPORTPAGE10_FLAGS_MODDEF_OPTICAL_LW (0x00000004)
2176 #define MPI_FCPORTPAGE10_FLAGS_MODDEF_SEEPROM (0x00000003)
2177 #define MPI_FCPORTPAGE10_FLAGS_MODDEF_SW_OPTICAL (0x00000002)
2178 #define MPI_FCPORTPAGE10_FLAGS_MODDEF_LX_IEEE_OPT_LW (0x00000001)
2179 #define MPI_FCPORTPAGE10_FLAGS_MODDEF_SX_IEEE_OPT_SW (0x00000000)
2181 #define MPI_FCPORTPAGE10_FLAGS_CC_BASE_OK (0x00000010)
2182 #define MPI_FCPORTPAGE10_FLAGS_CC_EXT_OK (0x00000020)
2208 #define MPI_FC_DEVICE_PAGE0_PAGEVERSION (0x03)
2210 #define MPI_FC_DEVICE_PAGE0_FLAGS_TARGETID_BUS_VALID (0x01)
2211 #define MPI_FC_DEVICE_PAGE0_FLAGS_PLOGI_INVALID (0x02)
2212 #define MPI_FC_DEVICE_PAGE0_FLAGS_PRLI_INVALID (0x04)
2214 #define MPI_FC_DEVICE_PAGE0_PROT_IP (0x01)
2215 #define MPI_FC_DEVICE_PAGE0_PROT_FCP_TARGET (0x02)
2216 #define MPI_FC_DEVICE_PAGE0_PROT_FCP_INITIATOR (0x04)
2217 #define MPI_FC_DEVICE_PAGE0_PROT_FCP_RETRY (0x08)
2219 #define MPI_FC_DEVICE_PAGE0_PGAD_PORT_MASK (MPI_FC_DEVICE_PGAD_PORT_MASK)
2220 #define MPI_FC_DEVICE_PAGE0_PGAD_FORM_MASK (MPI_FC_DEVICE_PGAD_FORM_MASK)
2221 #define MPI_FC_DEVICE_PAGE0_PGAD_FORM_NEXT_DID (MPI_FC_DEVICE_PGAD_FORM_NEXT_DID)
2222 #define MPI_FC_DEVICE_PAGE0_PGAD_FORM_BUS_TID (MPI_FC_DEVICE_PGAD_FORM_BUS_TID)
2223 #define MPI_FC_DEVICE_PAGE0_PGAD_DID_MASK (MPI_FC_DEVICE_PGAD_ND_DID_MASK)
2224 #define MPI_FC_DEVICE_PAGE0_PGAD_BUS_MASK (MPI_FC_DEVICE_PGAD_BT_BUS_MASK)
2225 #define MPI_FC_DEVICE_PAGE0_PGAD_BUS_SHIFT (MPI_FC_DEVICE_PGAD_BT_BUS_SHIFT)
2226 #define MPI_FC_DEVICE_PAGE0_PGAD_TID_MASK (MPI_FC_DEVICE_PGAD_BT_TID_MASK)
2228 #define MPI_FC_DEVICE_PAGE0_HARD_ALPA_UNKNOWN (0xFF)
2242 #define MPI_RAIDVOL0_PHYSDISK_PRIMARY (0x01)
2243 #define MPI_RAIDVOL0_PHYSDISK_SECONDARY (0x02)
2254 #define MPI_RAIDVOL0_STATUS_FLAG_ENABLED (0x01)
2255 #define MPI_RAIDVOL0_STATUS_FLAG_QUIESCED (0x02)
2256 #define MPI_RAIDVOL0_STATUS_FLAG_RESYNC_IN_PROGRESS (0x04)
2257 #define MPI_RAIDVOL0_STATUS_FLAG_VOLUME_INACTIVE (0x08)
2258 #define MPI_RAIDVOL0_STATUS_FLAG_BAD_BLOCK_TABLE_FULL (0x10)
2260 #define MPI_RAIDVOL0_STATUS_STATE_OPTIMAL (0x00)
2261 #define MPI_RAIDVOL0_STATUS_STATE_DEGRADED (0x01)
2262 #define MPI_RAIDVOL0_STATUS_STATE_FAILED (0x02)
2263 #define MPI_RAIDVOL0_STATUS_STATE_MISSING (0x03)
2274 #define MPI_RAIDVOL0_SETTING_WRITE_CACHING_ENABLE (0x0001)
2275 #define MPI_RAIDVOL0_SETTING_OFFLINE_ON_SMART (0x0002)
2276 #define MPI_RAIDVOL0_SETTING_AUTO_CONFIGURE (0x0004)
2277 #define MPI_RAIDVOL0_SETTING_PRIORITY_RESYNC (0x0008)
2278 #define MPI_RAIDVOL0_SETTING_FAST_DATA_SCRUBBING_0102 (0x0020)
2280 #define MPI_RAIDVOL0_SETTING_MASK_METADATA_SIZE (0x00C0)
2281 #define MPI_RAIDVOL0_SETTING_64MB_METADATA_SIZE (0x0000)
2282 #define MPI_RAIDVOL0_SETTING_512MB_METADATA_SIZE (0x0040)
2284 #define MPI_RAIDVOL0_SETTING_USE_PRODUCT_ID_SUFFIX (0x0010)
2285 #define MPI_RAIDVOL0_SETTING_USE_DEFAULTS (0x8000)
2288 #define MPI_RAID_HOT_SPARE_POOL_0 (0x01)
2289 #define MPI_RAID_HOT_SPARE_POOL_1 (0x02)
2290 #define MPI_RAID_HOT_SPARE_POOL_2 (0x04)
2291 #define MPI_RAID_HOT_SPARE_POOL_3 (0x08)
2292 #define MPI_RAID_HOT_SPARE_POOL_4 (0x10)
2293 #define MPI_RAID_HOT_SPARE_POOL_5 (0x20)
2294 #define MPI_RAID_HOT_SPARE_POOL_6 (0x40)
2295 #define MPI_RAID_HOT_SPARE_POOL_7 (0x80)
2301 #ifndef MPI_RAID_VOL_PAGE_0_PHYSDISK_MAX
2302 #define MPI_RAID_VOL_PAGE_0_PHYSDISK_MAX (1)
2327 #define MPI_RAIDVOLPAGE0_PAGEVERSION (0x07)
2330 #define MPI_RAIDVOLPAGE0_UNKNOWN_INACTIVE (0x00)
2331 #define MPI_RAIDVOLPAGE0_STALE_METADATA_INACTIVE (0x01)
2332 #define MPI_RAIDVOLPAGE0_FOREIGN_VOLUME_INACTIVE (0x02)
2333 #define MPI_RAIDVOLPAGE0_INSUFFICIENT_RESOURCE_INACTIVE (0x03)
2334 #define MPI_RAIDVOLPAGE0_CLONE_VOLUME_INACTIVE (0x04)
2335 #define MPI_RAIDVOLPAGE0_INSUFFICIENT_METADATA_INACTIVE (0x05)
2336 #define MPI_RAIDVOLPAGE0_PREVIOUSLY_DELETED (0x06)
2354 #define MPI_RAIDVOLPAGE1_PAGEVERSION (0x01)
2403 #define MPI_PHYSDISK0_STATUS_FLAG_OUT_OF_SYNC (0x01)
2404 #define MPI_PHYSDISK0_STATUS_FLAG_QUIESCED (0x02)
2405 #define MPI_PHYSDISK0_STATUS_FLAG_INACTIVE_VOLUME (0x04)
2406 #define MPI_PHYSDISK0_STATUS_FLAG_OPTIMAL_PREVIOUS (0x00)
2407 #define MPI_PHYSDISK0_STATUS_FLAG_NOT_OPTIMAL_PREVIOUS (0x08)
2409 #define MPI_PHYSDISK0_STATUS_ONLINE (0x00)
2410 #define MPI_PHYSDISK0_STATUS_MISSING (0x01)
2411 #define MPI_PHYSDISK0_STATUS_NOT_COMPATIBLE (0x02)
2412 #define MPI_PHYSDISK0_STATUS_FAILED (0x03)
2413 #define MPI_PHYSDISK0_STATUS_INITIALIZING (0x04)
2414 #define MPI_PHYSDISK0_STATUS_OFFLINE_REQUESTED (0x05)
2415 #define MPI_PHYSDISK0_STATUS_FAILED_REQUESTED (0x06)
2416 #define MPI_PHYSDISK0_STATUS_OTHER_OFFLINE (0xFF)
2436 #define MPI_RAIDPHYSDISKPAGE0_PAGEVERSION (0x02)
2453 #define MPI_RAID_PHYSDISK1_FLAG_BROKEN (0x0002)
2454 #define MPI_RAID_PHYSDISK1_FLAG_INVALID (0x0001)
2461 #ifndef MPI_RAID_PHYS_DISK1_PATH_MAX
2462 #define MPI_RAID_PHYS_DISK1_PATH_MAX (1)
2476 #define MPI_RAIDPHYSDISKPAGE1_PAGEVERSION (0x00)
2492 #define MPI_LAN_PAGE0_PAGEVERSION (0x01)
2494 #define MPI_LAN_PAGE0_RETURN_LOOPBACK (0x0000)
2495 #define MPI_LAN_PAGE0_SUPPRESS_LOOPBACK (0x0001)
2496 #define MPI_LAN_PAGE0_LOOPBACK_MASK (0x0001)
2517 #define MPI_LAN_PAGE1_PAGEVERSION (0x03)
2519 #define MPI_LAN_PAGE1_DEV_STATE_RESET (0x00)
2520 #define MPI_LAN_PAGE1_DEV_STATE_OPERATIONAL (0x01)
2536 #define MPI_INBAND_PAGEVERSION (0x00)
2561 #ifndef MPI_SAS_IOUNIT0_PHY_MAX
2562 #define MPI_SAS_IOUNIT0_PHY_MAX (1)
2577 #define MPI_SASIOUNITPAGE0_PAGEVERSION (0x04)
2580 #define MPI_SAS_IOUNIT0_PORT_FLAGS_DISCOVERY_IN_PROGRESS (0x08)
2581 #define MPI_SAS_IOUNIT0_PORT_FLAGS_0_TARGET_IOC_NUM (0x00)
2582 #define MPI_SAS_IOUNIT0_PORT_FLAGS_1_TARGET_IOC_NUM (0x04)
2583 #define MPI_SAS_IOUNIT0_PORT_FLAGS_AUTO_PORT_CONFIG (0x01)
2586 #define MPI_SAS_IOUNIT0_PHY_FLAGS_PHY_DISABLED (0x04)
2587 #define MPI_SAS_IOUNIT0_PHY_FLAGS_TX_INVERT (0x02)
2588 #define MPI_SAS_IOUNIT0_PHY_FLAGS_RX_INVERT (0x01)
2591 #define MPI_SAS_IOUNIT0_RATE_UNKNOWN (0x00)
2592 #define MPI_SAS_IOUNIT0_RATE_PHY_DISABLED (0x01)
2593 #define MPI_SAS_IOUNIT0_RATE_FAILED_SPEED_NEGOTIATION (0x02)
2594 #define MPI_SAS_IOUNIT0_RATE_SATA_OOB_COMPLETE (0x03)
2595 #define MPI_SAS_IOUNIT0_RATE_1_5 (0x08)
2596 #define MPI_SAS_IOUNIT0_RATE_3_0 (0x09)
2597 #define MPI_SAS_IOUNIT0_RATE_6_0 (0x0A)
2602 #define MPI_SAS_IOUNIT0_DS_LOOP_DETECTED (0x00000001)
2603 #define MPI_SAS_IOUNIT0_DS_UNADDRESSABLE_DEVICE (0x00000002)
2604 #define MPI_SAS_IOUNIT0_DS_MULTIPLE_PORTS (0x00000004)
2605 #define MPI_SAS_IOUNIT0_DS_EXPANDER_ERR (0x00000008)
2606 #define MPI_SAS_IOUNIT0_DS_SMP_TIMEOUT (0x00000010)
2607 #define MPI_SAS_IOUNIT0_DS_OUT_ROUTE_ENTRIES (0x00000020)
2608 #define MPI_SAS_IOUNIT0_DS_INDEX_NOT_EXIST (0x00000040)
2609 #define MPI_SAS_IOUNIT0_DS_SMP_FUNCTION_FAILED (0x00000080)
2610 #define MPI_SAS_IOUNIT0_DS_SMP_CRC_ERROR (0x00000100)
2611 #define MPI_SAS_IOUNIT0_DS_SUBTRACTIVE_LINK (0x00000200)
2612 #define MPI_SAS_IOUNIT0_DS_TABLE_LINK (0x00000400)
2613 #define MPI_SAS_IOUNIT0_DS_UNSUPPORTED_DEVICE (0x00000800)
2614 #define MPI_SAS_IOUNIT0_DS_MAX_SATA_TARGETS (0x00001000)
2615 #define MPI_SAS_IOUNIT0_DS_MULTI_PORT_DOMAIN (0x00002000)
2634 #ifndef MPI_SAS_IOUNIT1_PHY_MAX
2635 #define MPI_SAS_IOUNIT1_PHY_MAX (1)
2653 #define MPI_SASIOUNITPAGE1_PAGEVERSION (0x07)
2656 #define MPI_SAS_IOUNIT1_CONTROL_DEVICE_SELF_TEST (0x8000)
2657 #define MPI_SAS_IOUNIT1_CONTROL_SATA_3_0_MAX (0x4000)
2658 #define MPI_SAS_IOUNIT1_CONTROL_SATA_1_5_MAX (0x2000)
2659 #define MPI_SAS_IOUNIT1_CONTROL_SATA_SW_PRESERVE (0x1000)
2660 #define MPI_SAS_IOUNIT1_CONTROL_DISABLE_SAS_HASH (0x0800)
2662 #define MPI_SAS_IOUNIT1_CONTROL_MASK_DEV_SUPPORT (0x0600)
2663 #define MPI_SAS_IOUNIT1_CONTROL_SHIFT_DEV_SUPPORT (9)
2664 #define MPI_SAS_IOUNIT1_CONTROL_DEV_SUPPORT_BOTH (0x00)
2665 #define MPI_SAS_IOUNIT1_CONTROL_DEV_SAS_SUPPORT (0x01)
2666 #define MPI_SAS_IOUNIT1_CONTROL_DEV_SATA_SUPPORT (0x02)
2668 #define MPI_SAS_IOUNIT1_CONTROL_POSTPONE_SATA_INIT (0x0100)
2669 #define MPI_SAS_IOUNIT1_CONTROL_SATA_48BIT_LBA_REQUIRED (0x0080)
2670 #define MPI_SAS_IOUNIT1_CONTROL_SATA_SMART_REQUIRED (0x0040)
2671 #define MPI_SAS_IOUNIT1_CONTROL_SATA_NCQ_REQUIRED (0x0020)
2672 #define MPI_SAS_IOUNIT1_CONTROL_SATA_FUA_REQUIRED (0x0010)
2673 #define MPI_SAS_IOUNIT1_CONTROL_PHY_ENABLE_ORDER_HIGH (0x0008)
2674 #define MPI_SAS_IOUNIT1_CONTROL_SUBTRACTIVE_ILLEGAL (0x0004)
2675 #define MPI_SAS_IOUNIT1_CONTROL_FIRST_LVL_DISC_ONLY (0x0002)
2676 #define MPI_SAS_IOUNIT1_CONTROL_CLEAR_AFFILIATION (0x0001)
2679 #define MPI_SAS_IOUNIT1_ACONTROL_MULTI_PORT_DOMAIN_ILLEGAL (0x0080)
2680 #define MPI_SAS_IOUNIT1_ACONTROL_SATA_ASYNCHROUNOUS_NOTIFICATION (0x0040)
2681 #define MPI_SAS_IOUNIT1_ACONTROL_HIDE_NONZERO_ATTACHED_PHY_IDENT (0x0020)
2682 #define MPI_SAS_IOUNIT1_ACONTROL_PORT_ENABLE_ONLY_SATA_LINK_RESET (0x0010)
2683 #define MPI_SAS_IOUNIT1_ACONTROL_OTHER_AFFILIATION_SATA_LINK_RESET (0x0008)
2684 #define MPI_SAS_IOUNIT1_ACONTROL_SELF_AFFILIATION_SATA_LINK_RESET (0x0004)
2685 #define MPI_SAS_IOUNIT1_ACONTROL_NO_AFFILIATION_SATA_LINK_RESET (0x0002)
2686 #define MPI_SAS_IOUNIT1_ACONTROL_ALLOW_TABLE_TO_TABLE (0x0001)
2689 #define MPI_SAS_IOUNIT1_REPORT_MISSING_TIMEOUT_MASK (0x7F)
2690 #define MPI_SAS_IOUNIT1_REPORT_MISSING_UNIT_16 (0x80)
2693 #define MPI_SAS_IOUNIT1_PORT_FLAGS_0_TARGET_IOC_NUM (0x00)
2694 #define MPI_SAS_IOUNIT1_PORT_FLAGS_1_TARGET_IOC_NUM (0x04)
2695 #define MPI_SAS_IOUNIT1_PORT_FLAGS_AUTO_PORT_CONFIG (0x01)
2698 #define MPI_SAS_IOUNIT1_PHY_FLAGS_PHY_DISABLE (0x04)
2699 #define MPI_SAS_IOUNIT1_PHY_FLAGS_TX_INVERT (0x02)
2700 #define MPI_SAS_IOUNIT1_PHY_FLAGS_RX_INVERT (0x01)
2703 #define MPI_SAS_IOUNIT1_MAX_RATE_MASK (0xF0)
2704 #define MPI_SAS_IOUNIT1_MAX_RATE_1_5 (0x80)
2705 #define MPI_SAS_IOUNIT1_MAX_RATE_3_0 (0x90)
2706 #define MPI_SAS_IOUNIT1_MIN_RATE_MASK (0x0F)
2707 #define MPI_SAS_IOUNIT1_MIN_RATE_1_5 (0x08)
2708 #define MPI_SAS_IOUNIT1_MIN_RATE_3_0 (0x09)
2727 #define MPI_SASIOUNITPAGE2_PAGEVERSION (0x06)
2730 #define MPI_SAS_IOUNIT2_STATUS_DEVICE_LIMIT_EXCEEDED (0x08)
2731 #define MPI_SAS_IOUNIT2_STATUS_ENCLOSURE_DEVICES_UNMAPPED (0x04)
2732 #define MPI_SAS_IOUNIT2_STATUS_DISABLED_PERSISTENT_MAPPINGS (0x02)
2733 #define MPI_SAS_IOUNIT2_STATUS_FULL_PERSISTENT_MAPPINGS (0x01)
2736 #define MPI_SAS_IOUNIT2_FLAGS_DISABLE_PERSISTENT_MAPPINGS (0x01)
2738 #define MPI_SAS_IOUNIT2_FLAGS_MASK_PHYS_MAP_MODE (0x0E)
2739 #define MPI_SAS_IOUNIT2_FLAGS_SHIFT_PHYS_MAP_MODE (1)
2740 #define MPI_SAS_IOUNIT2_FLAGS_NO_PHYS_MAP (0x00)
2741 #define MPI_SAS_IOUNIT2_FLAGS_DIRECT_ATTACH_PHYS_MAP (0x01)
2742 #define MPI_SAS_IOUNIT2_FLAGS_ENCLOSURE_SLOT_PHYS_MAP (0x02)
2743 #define MPI_SAS_IOUNIT2_FLAGS_HOST_ASSIGNED_PHYS_MAP (0x07)
2745 #define MPI_SAS_IOUNIT2_FLAGS_RESERVE_ID_0_FOR_BOOT (0x10)
2746 #define MPI_SAS_IOUNIT2_FLAGS_DA_STARTING_SLOT (0x20)
2764 #define MPI_SASIOUNITPAGE3_PAGEVERSION (0x00)
2790 #define MPI_SASEXPANDER0_PAGEVERSION (0x03)
2793 #define MPI_SAS_EXPANDER0_DS_LOOP_DETECTED (0x00000001)
2794 #define MPI_SAS_EXPANDER0_DS_UNADDRESSABLE_DEVICE (0x00000002)
2795 #define MPI_SAS_EXPANDER0_DS_MULTIPLE_PORTS (0x00000004)
2796 #define MPI_SAS_EXPANDER0_DS_EXPANDER_ERR (0x00000008)
2797 #define MPI_SAS_EXPANDER0_DS_SMP_TIMEOUT (0x00000010)
2798 #define MPI_SAS_EXPANDER0_DS_OUT_ROUTE_ENTRIES (0x00000020)
2799 #define MPI_SAS_EXPANDER0_DS_INDEX_NOT_EXIST (0x00000040)
2800 #define MPI_SAS_EXPANDER0_DS_SMP_FUNCTION_FAILED (0x00000080)
2801 #define MPI_SAS_EXPANDER0_DS_SMP_CRC_ERROR (0x00000100)
2802 #define MPI_SAS_EXPANDER0_DS_SUBTRACTIVE_LINK (0x00000200)
2803 #define MPI_SAS_EXPANDER0_DS_TABLE_LINK (0x00000400)
2804 #define MPI_SAS_EXPANDER0_DS_UNSUPPORTED_DEVICE (0x00000800)
2807 #define MPI_SAS_EXPANDER0_FLAGS_CONNECTOR_END_DEVICE (0x04)
2808 #define MPI_SAS_EXPANDER0_FLAGS_ROUTE_TABLE_CONFIG (0x02)
2809 #define MPI_SAS_EXPANDER0_FLAGS_CONFIG_IN_PROGRESS (0x01)
2837 #define MPI_SASEXPANDER1_PAGEVERSION (0x01)
2848 #define MPI_SAS_EXPANDER1_DISCINFO_BAD_PHY_DISABLED (0x04)
2849 #define MPI_SAS_EXPANDER1_DISCINFO_LINK_STATUS_CHANGE (0x02)
2850 #define MPI_SAS_EXPANDER1_DISCINFO_NO_ROUTING_ENTRIES (0x01)
2853 #define MPI_SAS_EXPANDER1_NEG_RATE_UNKNOWN (0x00)
2854 #define MPI_SAS_EXPANDER1_NEG_RATE_PHY_DISABLED (0x01)
2855 #define MPI_SAS_EXPANDER1_NEG_RATE_FAILED_NEGOTIATION (0x02)
2856 #define MPI_SAS_EXPANDER1_NEG_RATE_SATA_OOB_COMPLETE (0x03)
2857 #define MPI_SAS_EXPANDER1_NEG_RATE_1_5 (0x08)
2858 #define MPI_SAS_EXPANDER1_NEG_RATE_3_0 (0x09)
2884 #define MPI_SASDEVICE0_PAGEVERSION (0x05)
2887 #define MPI_SAS_DEVICE0_ASTATUS_NO_ERRORS (0x00)
2888 #define MPI_SAS_DEVICE0_ASTATUS_SATA_INIT_FAILED (0x01)
2889 #define MPI_SAS_DEVICE0_ASTATUS_SATA_CAPABILITY_FAILED (0x02)
2890 #define MPI_SAS_DEVICE0_ASTATUS_SATA_AFFILIATION_CONFLICT (0x03)
2891 #define MPI_SAS_DEVICE0_ASTATUS_SATA_NEEDS_INITIALIZATION (0x04)
2893 #define MPI_SAS_DEVICE0_ASTATUS_SIF_UNKNOWN (0x10)
2894 #define MPI_SAS_DEVICE0_ASTATUS_SIF_AFFILIATION_CONFLICT (0x11)
2895 #define MPI_SAS_DEVICE0_ASTATUS_SIF_DIAG (0x12)
2896 #define MPI_SAS_DEVICE0_ASTATUS_SIF_IDENTIFICATION (0x13)
2897 #define MPI_SAS_DEVICE0_ASTATUS_SIF_CHECK_POWER (0x14)
2898 #define MPI_SAS_DEVICE0_ASTATUS_SIF_PIO_SN (0x15)
2899 #define MPI_SAS_DEVICE0_ASTATUS_SIF_MDMA_SN (0x16)
2900 #define MPI_SAS_DEVICE0_ASTATUS_SIF_UDMA_SN (0x17)
2901 #define MPI_SAS_DEVICE0_ASTATUS_SIF_ZONING_VIOLATION (0x18)
2902 #define MPI_SAS_DEVICE0_ASTATUS_SIF_NOT_ADDRESSABLE (0x19)
2903 #define MPI_SAS_DEVICE0_ASTATUS_SIF_MAX (0x1F)
2906 #define MPI_SAS_DEVICE0_FLAGS_SATA_ASYNCHRONOUS_NOTIFY (0x0400)
2907 #define MPI_SAS_DEVICE0_FLAGS_SATA_SW_PRESERVE (0x0200)
2908 #define MPI_SAS_DEVICE0_FLAGS_UNSUPPORTED_DEVICE (0x0100)
2909 #define MPI_SAS_DEVICE0_FLAGS_SATA_48BIT_LBA_SUPPORTED (0x0080)
2910 #define MPI_SAS_DEVICE0_FLAGS_SATA_SMART_SUPPORTED (0x0040)
2911 #define MPI_SAS_DEVICE0_FLAGS_SATA_NCQ_SUPPORTED (0x0020)
2912 #define MPI_SAS_DEVICE0_FLAGS_SATA_FUA_SUPPORTED (0x0010)
2913 #define MPI_SAS_DEVICE0_FLAGS_PORT_SELECTOR_ATTACH (0x0008)
2914 #define MPI_SAS_DEVICE0_FLAGS_MAPPING_PERSISTENT (0x0004)
2915 #define MPI_SAS_DEVICE0_FLAGS_DEVICE_MAPPED (0x0002)
2916 #define MPI_SAS_DEVICE0_FLAGS_DEVICE_PRESENT (0x0001)
2934 #define MPI_SASDEVICE1_PAGEVERSION (0x00)
2945 #define MPI_SASDEVICE2_PAGEVERSION (0x01)
2948 #define MPI_SASDEVICE2_ENC_MAP_MASK_MISSING_COUNT (0x0000000F)
2949 #define MPI_SASDEVICE2_ENC_MAP_SHIFT_MISSING_COUNT (0)
2950 #define MPI_SASDEVICE2_ENC_MAP_MASK_NUM_SLOTS (0x000007F0)
2951 #define MPI_SASDEVICE2_ENC_MAP_SHIFT_NUM_SLOTS (4)
2952 #define MPI_SASDEVICE2_ENC_MAP_MASK_START_INDEX (0x001FF800)
2953 #define MPI_SASDEVICE2_ENC_MAP_SHIFT_START_INDEX (11)
2978 #define MPI_SASPHY0_PAGEVERSION (0x01)
2981 #define MPI_SAS_PHY0_PRATE_MAX_RATE_MASK (0xF0)
2982 #define MPI_SAS_PHY0_PRATE_MAX_RATE_NOT_PROGRAMMABLE (0x00)
2983 #define MPI_SAS_PHY0_PRATE_MAX_RATE_1_5 (0x80)
2984 #define MPI_SAS_PHY0_PRATE_MAX_RATE_3_0 (0x90)
2985 #define MPI_SAS_PHY0_PRATE_MIN_RATE_MASK (0x0F)
2986 #define MPI_SAS_PHY0_PRATE_MIN_RATE_NOT_PROGRAMMABLE (0x00)
2987 #define MPI_SAS_PHY0_PRATE_MIN_RATE_1_5 (0x08)
2988 #define MPI_SAS_PHY0_PRATE_MIN_RATE_3_0 (0x09)
2991 #define MPI_SAS_PHY0_HWRATE_MAX_RATE_MASK (0xF0)
2992 #define MPI_SAS_PHY0_HWRATE_MAX_RATE_1_5 (0x80)
2993 #define MPI_SAS_PHY0_HWRATE_MAX_RATE_3_0 (0x90)
2994 #define MPI_SAS_PHY0_HWRATE_MIN_RATE_MASK (0x0F)
2995 #define MPI_SAS_PHY0_HWRATE_MIN_RATE_1_5 (0x08)
2996 #define MPI_SAS_PHY0_HWRATE_MIN_RATE_3_0 (0x09)
2999 #define MPI_SAS_PHY0_FLAGS_SGPIO_DIRECT_ATTACH_ENC (0x01)
3002 #define MPI_SAS_PHY0_PHYINFO_SATA_PORT_ACTIVE (0x00004000)
3003 #define MPI_SAS_PHY0_PHYINFO_SATA_PORT_SELECTOR (0x00002000)
3004 #define MPI_SAS_PHY0_PHYINFO_VIRTUAL_PHY (0x00001000)
3006 #define MPI_SAS_PHY0_PHYINFO_MASK_PARTIAL_PATHWAY_TIME (0x00000F00)
3007 #define MPI_SAS_PHY0_PHYINFO_SHIFT_PARTIAL_PATHWAY_TIME (8)
3009 #define MPI_SAS_PHY0_PHYINFO_MASK_ROUTING_ATTRIBUTE (0x000000F0)
3010 #define MPI_SAS_PHY0_PHYINFO_DIRECT_ROUTING (0x00000000)
3011 #define MPI_SAS_PHY0_PHYINFO_SUBTRACTIVE_ROUTING (0x00000010)
3012 #define MPI_SAS_PHY0_PHYINFO_TABLE_ROUTING (0x00000020)
3014 #define MPI_SAS_PHY0_PHYINFO_MASK_LINK_RATE (0x0000000F)
3015 #define MPI_SAS_PHY0_PHYINFO_UNKNOWN_LINK_RATE (0x00000000)
3016 #define MPI_SAS_PHY0_PHYINFO_PHY_DISABLED (0x00000001)
3017 #define MPI_SAS_PHY0_PHYINFO_NEGOTIATION_FAILED (0x00000002)
3018 #define MPI_SAS_PHY0_PHYINFO_SATA_OOB_COMPLETE (0x00000003)
3019 #define MPI_SAS_PHY0_PHYINFO_RATE_1_5 (0x00000008)
3020 #define MPI_SAS_PHY0_PHYINFO_RATE_3_0 (0x00000009)
3034 #define MPI_SASPHY1_PAGEVERSION (0x00)
3059 #define MPI_SASENCLOSURE0_PAGEVERSION (0x01)
3062 #define MPI_SAS_ENCLS0_FLAGS_SEP_BUS_ID_VALID (0x0020)
3063 #define MPI_SAS_ENCLS0_FLAGS_START_BUS_ID_VALID (0x0010)
3065 #define MPI_SAS_ENCLS0_FLAGS_MNG_MASK (0x000F)
3066 #define MPI_SAS_ENCLS0_FLAGS_MNG_UNKNOWN (0x0000)
3067 #define MPI_SAS_ENCLS0_FLAGS_MNG_IOC_SES (0x0001)
3068 #define MPI_SAS_ENCLS0_FLAGS_MNG_IOC_SGPIO (0x0002)
3069 #define MPI_SAS_ENCLS0_FLAGS_MNG_EXP_SGPIO (0x0003)
3070 #define MPI_SAS_ENCLS0_FLAGS_MNG_SES_ENCLOSURE (0x0004)
3071 #define MPI_SAS_ENCLS0_FLAGS_MNG_IOC_GPIO (0x0005)
3081 #ifndef MPI_LOG_0_NUM_LOG_ENTRIES
3082 #define MPI_LOG_0_NUM_LOG_ENTRIES (1)
3085 #define MPI_LOG_0_LOG_DATA_LENGTH (0x1C)
3098 #define MPI_LOG_0_ENTRY_QUAL_ENTRY_UNUSED (0x0000)
3099 #define MPI_LOG_0_ENTRY_QUAL_POWER_ON_RESET (0x0001)
3112 #define MPI_LOG_0_PAGEVERSION (0x01)