Lines Matching +full:0 +full:x0624
79 * New fields added to FC Port Page 0 and some flags
124 * Added rejected bits to SCSI Device Page 0 Information.
130 * Page 3, IOC Page 3, IOC Page 4, RAID Volume Page 0, and
131 * RAID PhysDisk Page 0.
206 * Added more defines for SAS IO Unit Page 0
220 * Added AccessStatus field to SAS Device Page 0 and added
227 * Page 0.
238 * Added Unsupported device to SAS Dev Page 0 Flags field
245 * Page 0.
247 * and to SAS Device Page 0 Flags to control SATA devices.
248 * Added defines and structures for the new Log Page 0, a
250 * 02-09-05 01.05.07 Added InactiveStatus field to RAID Volume Page 0.
252 * Added PhysicalPort field to SAS Expander pages 0 and 1.
255 * New status value for RAID Volume Page 0 VolumeStatus
257 * New value for RAID Physical Page 0 InactiveStatus.
259 * Page 0 PhysDiskStatus field.
262 * Added Slot and Enclosure fields to SAS Device Page 0.
266 * Added Bad Block Table Full define to RAID Volume Page 0.
268 * Page 0.
270 * of SAS IO Unit Page 0.
277 * Added OwnerDevHandle and Flags field to SAS PHY Page 0.
278 * Added IOC GPIO Flags define to SAS Enclosure Page 0.
286 * Added EnclosureHandle field to SAS Expander page 0.
296 * Changed LogEntry format for Log Page 0.
302 * Added MaxLBAHigh field to RAID Volume Page 0.
303 * Added Nvdata version fields to SAS IO Unit Page 0.
313 * field of RAID Volume Page 0.
321 * Added more AccessStatus values for SAS Device Page 0.
323 * Flags field of SAS Device Page 0.
336 * Expander Page 0 Flags field.
349 * Page 0 (_SATA_NEEDS_INITIALIZATION).
406 #define MPI_CONFIG_PAGEATTR_READ_ONLY (0x00)
407 #define MPI_CONFIG_PAGEATTR_CHANGEABLE (0x10)
408 #define MPI_CONFIG_PAGEATTR_PERSISTENT (0x20)
409 #define MPI_CONFIG_PAGEATTR_RO_PERSISTENT (0x30)
410 #define MPI_CONFIG_PAGEATTR_MASK (0xF0)
412 #define MPI_CONFIG_PAGETYPE_IO_UNIT (0x00)
413 #define MPI_CONFIG_PAGETYPE_IOC (0x01)
414 #define MPI_CONFIG_PAGETYPE_BIOS (0x02)
415 #define MPI_CONFIG_PAGETYPE_SCSI_PORT (0x03)
416 #define MPI_CONFIG_PAGETYPE_SCSI_DEVICE (0x04)
417 #define MPI_CONFIG_PAGETYPE_FC_PORT (0x05)
418 #define MPI_CONFIG_PAGETYPE_FC_DEVICE (0x06)
419 #define MPI_CONFIG_PAGETYPE_LAN (0x07)
420 #define MPI_CONFIG_PAGETYPE_RAID_VOLUME (0x08)
421 #define MPI_CONFIG_PAGETYPE_MANUFACTURING (0x09)
422 #define MPI_CONFIG_PAGETYPE_RAID_PHYSDISK (0x0A)
423 #define MPI_CONFIG_PAGETYPE_INBAND (0x0B)
424 #define MPI_CONFIG_PAGETYPE_EXTENDED (0x0F)
425 #define MPI_CONFIG_PAGETYPE_MASK (0x0F)
427 #define MPI_CONFIG_TYPENUM_MASK (0x0FFF)
432 #define MPI_CONFIG_EXTPAGETYPE_SAS_IO_UNIT (0x10)
433 #define MPI_CONFIG_EXTPAGETYPE_SAS_EXPANDER (0x11)
434 #define MPI_CONFIG_EXTPAGETYPE_SAS_DEVICE (0x12)
435 #define MPI_CONFIG_EXTPAGETYPE_SAS_PHY (0x13)
436 #define MPI_CONFIG_EXTPAGETYPE_LOG (0x14)
437 #define MPI_CONFIG_EXTPAGETYPE_ENCLOSURE (0x15)
442 #define MPI_SCSI_PORT_PGAD_PORT_MASK (0x000000FF)
444 #define MPI_SCSI_DEVICE_FORM_MASK (0xF0000000)
445 #define MPI_SCSI_DEVICE_FORM_BUS_TID (0x00000000)
446 #define MPI_SCSI_DEVICE_TARGET_ID_MASK (0x000000FF)
447 #define MPI_SCSI_DEVICE_TARGET_ID_SHIFT (0)
448 #define MPI_SCSI_DEVICE_BUS_MASK (0x0000FF00)
450 #define MPI_SCSI_DEVICE_FORM_TARGET_MODE (0x10000000)
451 #define MPI_SCSI_DEVICE_TM_RESPOND_ID_MASK (0x000000FF)
452 #define MPI_SCSI_DEVICE_TM_RESPOND_ID_SHIFT (0)
453 #define MPI_SCSI_DEVICE_TM_BUS_MASK (0x0000FF00)
455 #define MPI_SCSI_DEVICE_TM_INIT_ID_MASK (0x00FF0000)
458 #define MPI_FC_PORT_PGAD_PORT_MASK (0xF0000000)
460 #define MPI_FC_PORT_PGAD_FORM_MASK (0x0F000000)
461 #define MPI_FC_PORT_PGAD_FORM_INDEX (0x01000000)
462 #define MPI_FC_PORT_PGAD_INDEX_MASK (0x0000FFFF)
463 #define MPI_FC_PORT_PGAD_INDEX_SHIFT (0)
465 #define MPI_FC_DEVICE_PGAD_PORT_MASK (0xF0000000)
467 #define MPI_FC_DEVICE_PGAD_FORM_MASK (0x0F000000)
468 #define MPI_FC_DEVICE_PGAD_FORM_NEXT_DID (0x00000000)
469 #define MPI_FC_DEVICE_PGAD_ND_PORT_MASK (0xF0000000)
471 #define MPI_FC_DEVICE_PGAD_ND_DID_MASK (0x00FFFFFF)
472 #define MPI_FC_DEVICE_PGAD_ND_DID_SHIFT (0)
473 #define MPI_FC_DEVICE_PGAD_FORM_BUS_TID (0x01000000)
474 #define MPI_FC_DEVICE_PGAD_BT_BUS_MASK (0x0000FF00)
476 #define MPI_FC_DEVICE_PGAD_BT_TID_MASK (0x000000FF)
477 #define MPI_FC_DEVICE_PGAD_BT_TID_SHIFT (0)
479 #define MPI_PHYSDISK_PGAD_PHYSDISKNUM_MASK (0x000000FF)
480 #define MPI_PHYSDISK_PGAD_PHYSDISKNUM_SHIFT (0)
482 #define MPI_SAS_EXPAND_PGAD_FORM_MASK (0xF0000000)
484 #define MPI_SAS_EXPAND_PGAD_FORM_GET_NEXT_HANDLE (0x00000000)
485 #define MPI_SAS_EXPAND_PGAD_FORM_HANDLE_PHY_NUM (0x00000001)
486 #define MPI_SAS_EXPAND_PGAD_FORM_HANDLE (0x00000002)
487 #define MPI_SAS_EXPAND_PGAD_GNH_MASK_HANDLE (0x0000FFFF)
488 #define MPI_SAS_EXPAND_PGAD_GNH_SHIFT_HANDLE (0)
489 #define MPI_SAS_EXPAND_PGAD_HPN_MASK_PHY (0x00FF0000)
491 #define MPI_SAS_EXPAND_PGAD_HPN_MASK_HANDLE (0x0000FFFF)
492 #define MPI_SAS_EXPAND_PGAD_HPN_SHIFT_HANDLE (0)
493 #define MPI_SAS_EXPAND_PGAD_H_MASK_HANDLE (0x0000FFFF)
494 #define MPI_SAS_EXPAND_PGAD_H_SHIFT_HANDLE (0)
496 #define MPI_SAS_DEVICE_PGAD_FORM_MASK (0xF0000000)
498 #define MPI_SAS_DEVICE_PGAD_FORM_GET_NEXT_HANDLE (0x00000000)
499 #define MPI_SAS_DEVICE_PGAD_FORM_BUS_TARGET_ID (0x00000001)
500 #define MPI_SAS_DEVICE_PGAD_FORM_HANDLE (0x00000002)
501 #define MPI_SAS_DEVICE_PGAD_GNH_HANDLE_MASK (0x0000FFFF)
502 #define MPI_SAS_DEVICE_PGAD_GNH_HANDLE_SHIFT (0)
503 #define MPI_SAS_DEVICE_PGAD_BT_BUS_MASK (0x0000FF00)
505 #define MPI_SAS_DEVICE_PGAD_BT_TID_MASK (0x000000FF)
506 #define MPI_SAS_DEVICE_PGAD_BT_TID_SHIFT (0)
507 #define MPI_SAS_DEVICE_PGAD_H_HANDLE_MASK (0x0000FFFF)
508 #define MPI_SAS_DEVICE_PGAD_H_HANDLE_SHIFT (0)
510 #define MPI_SAS_PHY_PGAD_FORM_MASK (0xF0000000)
512 #define MPI_SAS_PHY_PGAD_FORM_PHY_NUMBER (0x0)
513 #define MPI_SAS_PHY_PGAD_FORM_PHY_TBL_INDEX (0x1)
514 #define MPI_SAS_PHY_PGAD_PHY_NUMBER_MASK (0x000000FF)
515 #define MPI_SAS_PHY_PGAD_PHY_NUMBER_SHIFT (0)
516 #define MPI_SAS_PHY_PGAD_PHY_TBL_INDEX_MASK (0x0000FFFF)
517 #define MPI_SAS_PHY_PGAD_PHY_TBL_INDEX_SHIFT (0)
519 #define MPI_SAS_ENCLOS_PGAD_FORM_MASK (0xF0000000)
521 #define MPI_SAS_ENCLOS_PGAD_FORM_GET_NEXT_HANDLE (0x00000000)
522 #define MPI_SAS_ENCLOS_PGAD_FORM_HANDLE (0x00000001)
523 #define MPI_SAS_ENCLOS_PGAD_GNH_HANDLE_MASK (0x0000FFFF)
524 #define MPI_SAS_ENCLOS_PGAD_GNH_HANDLE_SHIFT (0)
525 #define MPI_SAS_ENCLOS_PGAD_H_HANDLE_MASK (0x0000FFFF)
526 #define MPI_SAS_ENCLOS_PGAD_H_HANDLE_SHIFT (0)
541 U8 Reserved2[8]; /* 0Ch */
551 #define MPI_CONFIG_ACTION_PAGE_HEADER (0x00)
552 #define MPI_CONFIG_ACTION_PAGE_READ_CURRENT (0x01)
553 #define MPI_CONFIG_ACTION_PAGE_WRITE_CURRENT (0x02)
554 #define MPI_CONFIG_ACTION_PAGE_DEFAULT (0x03)
555 #define MPI_CONFIG_ACTION_PAGE_WRITE_NVRAM (0x04)
556 #define MPI_CONFIG_ACTION_PAGE_READ_DEFAULT (0x05)
557 #define MPI_CONFIG_ACTION_PAGE_READ_NVRAM (0x06)
570 U8 Reserved2[2]; /* 0Ch */
571 U16 IOCStatus; /* 0Eh */
586 #define MPI_MANUFACTPAGE_VENDORID_LSILOGIC (0x1000)
588 #define MPI_MANUFACTPAGE_DEVICEID_FC909 (0x0621)
589 #define MPI_MANUFACTPAGE_DEVICEID_FC919 (0x0624)
590 #define MPI_MANUFACTPAGE_DEVICEID_FC929 (0x0622)
591 #define MPI_MANUFACTPAGE_DEVICEID_FC919X (0x0628)
592 #define MPI_MANUFACTPAGE_DEVICEID_FC929X (0x0626)
593 #define MPI_MANUFACTPAGE_DEVICEID_FC939X (0x0642)
594 #define MPI_MANUFACTPAGE_DEVICEID_FC949X (0x0640)
595 #define MPI_MANUFACTPAGE_DEVICEID_FC949E (0x0646)
597 #define MPI_MANUFACTPAGE_DEVID_53C1030 (0x0030)
598 #define MPI_MANUFACTPAGE_DEVID_53C1030ZC (0x0031)
599 #define MPI_MANUFACTPAGE_DEVID_1030_53C1035 (0x0032)
600 #define MPI_MANUFACTPAGE_DEVID_1030ZC_53C1035 (0x0033)
601 #define MPI_MANUFACTPAGE_DEVID_53C1035 (0x0040)
602 #define MPI_MANUFACTPAGE_DEVID_53C1035ZC (0x0041)
604 #define MPI_MANUFACTPAGE_DEVID_SAS1064 (0x0050)
605 #define MPI_MANUFACTPAGE_DEVID_SAS1064A (0x005C)
606 #define MPI_MANUFACTPAGE_DEVID_SAS1064E (0x0056)
607 #define MPI_MANUFACTPAGE_DEVID_SAS1066 (0x005E)
608 #define MPI_MANUFACTPAGE_DEVID_SAS1066E (0x005A)
609 #define MPI_MANUFACTPAGE_DEVID_SAS1068 (0x0054)
610 #define MPI_MANUFACTPAGE_DEVID_SAS1068E (0x0058)
611 #define MPI_MANUFACTPAGE_DEVID_SAS1078 (0x0062)
625 #define MPI_MANUFACTURING0_PAGEVERSION (0x00)
634 #define MPI_MANUFACTURING1_PAGEVERSION (0x00)
660 #define MPI_MANUFACTURING2_PAGEVERSION (0x00)
678 #define MPI_MANUFACTURING3_PAGEVERSION (0x00)
686 U8 InfoOffset1; /* 0Ah */
687 U8 InfoSize1; /* 0Bh */
688 U8 InquirySize; /* 0Ch */
689 U8 Flags; /* 0Dh */
690 U16 ExtFlags; /* 0Eh */
709 #define MPI_MANUFACTURING4_PAGEVERSION (0x05)
712 #define MPI_MANPAGE4_FORCE_BAD_BLOCK_TABLE (0x80)
713 #define MPI_MANPAGE4_FORCE_OFFLINE_FAILOVER (0x40)
714 #define MPI_MANPAGE4_IME_DISABLE (0x20)
715 #define MPI_MANPAGE4_IM_DISABLE (0x10)
716 #define MPI_MANPAGE4_IS_DISABLE (0x08)
717 #define MPI_MANPAGE4_IR_MODEPAGE8_DISABLE (0x04)
718 #define MPI_MANPAGE4_IM_RESYNC_CACHE_ENABLE (0x02)
719 #define MPI_MANPAGE4_IR_NO_MIX_SAS_SATA (0x01)
722 #define MPI_MANPAGE4_EXTFLAGS_RAID0_SINGLE_DRIVE (0x0400)
723 #define MPI_MANPAGE4_EXTFLAGS_SSD_SCRUB_DISABLE (0x0200)
724 #define MPI_MANPAGE4_EXTFLAGS_MASK_COERCION_SIZE (0x0180)
726 #define MPI_MANPAGE4_EXTFLAGS_1GB_COERCION_SIZE (0)
729 #define MPI_MANPAGE4_EXTFLAGS_NO_MIX_SSD_SAS_SATA (0x0040)
730 #define MPI_MANPAGE4_EXTFLAGS_MIX_SSD_AND_NON_SSD (0x0020)
731 #define MPI_MANPAGE4_EXTFLAGS_DUAL_PORT_SUPPORT (0x0010)
732 #define MPI_MANPAGE4_EXTFLAGS_HIDE_NON_IR_METADATA (0x0008)
733 #define MPI_MANPAGE4_EXTFLAGS_SAS_CACHE_DISABLE (0x0004)
734 #define MPI_MANPAGE4_EXTFLAGS_SATA_CACHE_DISABLE (0x0002)
735 #define MPI_MANPAGE4_EXTFLAGS_LEGACY_MODE (0x0001)
745 U8 Flags; /* 0Ch */
746 U8 NumForceWWID; /* 0Dh */
747 U16 Reserved2; /* 0Eh */
754 #define MPI_MANUFACTURING5_PAGEVERSION (0x02)
757 #define MPI_MANPAGE5_TWO_WWID_PER_PHY (0x01)
766 #define MPI_MANUFACTURING6_PAGEVERSION (0x00)
780 #define MPI_MANPAGE7_PINOUT_SFF_8484_L4 (0x00080000)
781 #define MPI_MANPAGE7_PINOUT_SFF_8484_L3 (0x00040000)
782 #define MPI_MANPAGE7_PINOUT_SFF_8484_L2 (0x00020000)
783 #define MPI_MANPAGE7_PINOUT_SFF_8484_L1 (0x00010000)
784 #define MPI_MANPAGE7_PINOUT_SFF_8470_L4 (0x00000800)
785 #define MPI_MANPAGE7_PINOUT_SFF_8470_L3 (0x00000400)
786 #define MPI_MANPAGE7_PINOUT_SFF_8470_L2 (0x00000200)
787 #define MPI_MANPAGE7_PINOUT_SFF_8470_L1 (0x00000100)
788 #define MPI_MANPAGE7_PINOUT_SFF_8482 (0x00000002)
789 #define MPI_MANPAGE7_PINOUT_CONNECTION_UNKNOWN (0x00000001)
792 #define MPI_MANPAGE7_LOCATION_UNKNOWN (0x01)
793 #define MPI_MANPAGE7_LOCATION_INTERNAL (0x02)
794 #define MPI_MANPAGE7_LOCATION_EXTERNAL (0x04)
795 #define MPI_MANPAGE7_LOCATION_SWITCHABLE (0x08)
796 #define MPI_MANPAGE7_LOCATION_AUTO (0x10)
797 #define MPI_MANPAGE7_LOCATION_NOT_PRESENT (0x20)
798 #define MPI_MANPAGE7_LOCATION_NOT_CONNECTED (0x80)
813 U32 Flags; /* 0Ch */
822 #define MPI_MANUFACTURING7_PAGEVERSION (0x00)
825 #define MPI_MANPAGE7_FLAG_USE_SLOT_INFO (0x00000001)
834 #define MPI_MANUFACTURING8_PAGEVERSION (0x00)
843 #define MPI_MANUFACTURING9_PAGEVERSION (0x00)
852 #define MPI_MANUFACTURING10_PAGEVERSION (0x00)
865 #define MPI_IOUNITPAGE0_PAGEVERSION (0x00)
874 #define MPI_IOUNITPAGE1_PAGEVERSION (0x02)
877 #define MPI_IOUNITPAGE1_MULTI_FUNCTION (0x00000000)
878 #define MPI_IOUNITPAGE1_SINGLE_FUNCTION (0x00000001)
879 #define MPI_IOUNITPAGE1_MULTI_PATHING (0x00000002)
880 #define MPI_IOUNITPAGE1_SINGLE_PATHING (0x00000000)
881 #define MPI_IOUNITPAGE1_IR_USE_STATIC_VOLUME_ID (0x00000004)
882 #define MPI_IOUNITPAGE1_DISABLE_QUEUE_FULL_HANDLING (0x00000020)
883 #define MPI_IOUNITPAGE1_DISABLE_IR (0x00000040)
884 #define MPI_IOUNITPAGE1_FORCE_32 (0x00000080)
885 #define MPI_IOUNITPAGE1_NATIVE_COMMAND_Q_DISABLE (0x00000100)
886 #define MPI_IOUNITPAGE1_SATA_WRITE_CACHE_DISABLE (0x00000200)
896 #define MPI_ADAPTER_INFO_FLAGS_EMBEDDED (0x0001)
897 #define MPI_ADAPTER_INFO_FLAGS_INIT_STATUS (0x0002)
904 MPI_ADAPTER_INFO AdapterOrder[4]; /* 0Ch */
909 #define MPI_IOUNITPAGE2_PAGEVERSION (0x02)
911 #define MPI_IOUNITPAGE2_FLAGS_PAUSE_ON_ERROR (0x00000002)
912 #define MPI_IOUNITPAGE2_FLAGS_VERBOSE_ENABLE (0x00000004)
913 #define MPI_IOUNITPAGE2_FLAGS_COLOR_VIDEO_DISABLE (0x00000008)
914 #define MPI_IOUNITPAGE2_FLAGS_DONT_HOOK_INT_40 (0x00000010)
916 #define MPI_IOUNITPAGE2_FLAGS_DEV_LIST_DISPLAY_MASK (0x000000E0)
917 #define MPI_IOUNITPAGE2_FLAGS_INSTALLED_DEV_DISPLAY (0x00000000)
918 #define MPI_IOUNITPAGE2_FLAGS_ADAPTER_DISPLAY (0x00000020)
919 #define MPI_IOUNITPAGE2_FLAGS_ADAPTER_DEV_DISPLAY (0x00000040)
939 #define MPI_IOUNITPAGE3_PAGEVERSION (0x01)
941 #define MPI_IOUNITPAGE3_GPIO_FUNCTION_MASK (0xFC)
943 #define MPI_IOUNITPAGE3_GPIO_SETTING_OFF (0x00)
944 #define MPI_IOUNITPAGE3_GPIO_SETTING_ON (0x01)
954 #define MPI_IOUNITPAGE4_PAGEVERSION (0x00)
965 U16 VendorID; /* 0Ch */
966 U16 DeviceID; /* 0Eh */
975 #define MPI_IOCPAGE0_PAGEVERSION (0x01)
982 U8 CoalescingDepth; /* 0Ch */
983 U8 PCISlotNum; /* 0Dh */
984 U8 Reserved[2]; /* 0Eh */
988 #define MPI_IOCPAGE1_PAGEVERSION (0x03)
991 #define MPI_IOCPAGE1_EEDP_MODE_MASK (0x07000000)
992 #define MPI_IOCPAGE1_EEDP_MODE_OFF (0x00000000)
993 #define MPI_IOCPAGE1_EEDP_MODE_T10 (0x01000000)
994 #define MPI_IOCPAGE1_EEDP_MODE_LSI_1 (0x02000000)
995 #define MPI_IOCPAGE1_INITIATOR_CONTEXT_REPLY_DISABLE (0x00000010)
996 #define MPI_IOCPAGE1_REPLY_COALESCING (0x00000001)
998 #define MPI_IOCPAGE1_PCISLOTNUM_UNKNOWN (0xFF)
1014 #define MPI_RAID_VOL_TYPE_IS (0x00)
1015 #define MPI_RAID_VOL_TYPE_IME (0x01)
1016 #define MPI_RAID_VOL_TYPE_IM (0x02)
1017 #define MPI_RAID_VOL_TYPE_RAID_5 (0x03)
1018 #define MPI_RAID_VOL_TYPE_RAID_6 (0x04)
1019 #define MPI_RAID_VOL_TYPE_RAID_10 (0x05)
1020 #define MPI_RAID_VOL_TYPE_RAID_50 (0x06)
1021 #define MPI_RAID_VOL_TYPE_UNKNOWN (0xFF)
1025 #define MPI_IOCPAGE2_FLAG_VOLUME_INACTIVE (0x08)
1041 U8 NumActivePhysDisks; /* 0Ah */
1042 U8 MaxPhysDisks; /* 0Bh */
1043 CONFIG_PAGE_IOC_2_RAID_VOL RaidVolume[MPI_IOC_PAGE_2_RAID_VOLUME_MAX];/* 0Ch */
1047 #define MPI_IOCPAGE2_PAGEVERSION (0x04)
1051 #define MPI_IOCPAGE2_CAP_FLAGS_IS_SUPPORT (0x00000001)
1052 #define MPI_IOCPAGE2_CAP_FLAGS_IME_SUPPORT (0x00000002)
1053 #define MPI_IOCPAGE2_CAP_FLAGS_IM_SUPPORT (0x00000004)
1054 #define MPI_IOCPAGE2_CAP_FLAGS_RAID_5_SUPPORT (0x00000008)
1055 #define MPI_IOCPAGE2_CAP_FLAGS_RAID_6_SUPPORT (0x00000010)
1056 #define MPI_IOCPAGE2_CAP_FLAGS_RAID_10_SUPPORT (0x00000020)
1057 #define MPI_IOCPAGE2_CAP_FLAGS_RAID_50_SUPPORT (0x00000040)
1058 #define MPI_IOCPAGE2_CAP_FLAGS_RAID_64_BIT_ADDRESSING (0x10000000)
1059 #define MPI_IOCPAGE2_CAP_FLAGS_SES_SUPPORT (0x20000000)
1060 #define MPI_IOCPAGE2_CAP_FLAGS_SAFTE_SUPPORT (0x40000000)
1061 #define MPI_IOCPAGE2_CAP_FLAGS_CROSS_CHANNEL_SUPPORT (0x80000000)
1090 #define MPI_IOCPAGE3_PAGEVERSION (0x00)
1118 #define MPI_IOCPAGE4_PAGEVERSION (0x00)
1130 #define MPI_IOC_PAGE_5_HOT_SPARE_ACTIVE (0x01)
1146 U16 Reserved3; /* 0Ah */
1147 IOC_5_HOT_SPARE HotSpare[MPI_IOC_PAGE_5_HOT_SPARE_MAX]; /* 0Ch */
1151 #define MPI_IOCPAGE5_PAGEVERSION (0x00)
1159 U8 MaxDrivesIME; /* 0Ah */
1160 U8 Reserved1; /* 0Bh */
1161 U8 MinDrivesIS; /* 0Ch */
1162 U8 MinDrivesIM; /* 0Dh */
1163 U8 MinDrivesIME; /* 0Eh */
1164 U8 Reserved2; /* 0Fh */
1185 #define MPI_IOCPAGE6_PAGEVERSION (0x01)
1189 #define MPI_IOCPAGE6_CAP_FLAGS_SSD_SUPPORT (0x00000020)
1190 #define MPI_IOCPAGE6_CAP_FLAGS_MULTIPORT_DRIVE_SUPPORT (0x00000010)
1191 #define MPI_IOCPAGE6_CAP_FLAGS_DISABLE_SMART_POLLING (0x00000008)
1193 #define MPI_IOCPAGE6_CAP_FLAGS_MASK_METADATA_SIZE (0x00000006)
1194 #define MPI_IOCPAGE6_CAP_FLAGS_64MB_METADATA_SIZE (0x00000000)
1195 #define MPI_IOCPAGE6_CAP_FLAGS_512MB_METADATA_SIZE (0x00000002)
1197 #define MPI_IOCPAGE6_CAP_FLAGS_GLOBAL_HOT_SPARE (0x00000001)
1208 U32 Reserved1; /* 0Ch */
1220 #define MPI_BIOSPAGE1_PAGEVERSION (0x03)
1223 #define MPI_BIOSPAGE1_OPTIONS_SPI_ENABLE (0x00000400)
1224 #define MPI_BIOSPAGE1_OPTIONS_FC_ENABLE (0x00000200)
1225 #define MPI_BIOSPAGE1_OPTIONS_SAS_ENABLE (0x00000100)
1227 #define MPI_BIOSPAGE1_OPTIONS_SCAN_HIGH_TO_LOW (0x00000002)
1228 #define MPI_BIOSPAGE1_OPTIONS_SCAN_LOW_TO_HIGH (0x00000000)
1230 #define MPI_BIOSPAGE1_OPTIONS_DISABLE_BIOS (0x00000001)
1233 #define MPI_BIOSPAGE1_IOCSET_MASK_INITIAL_SPINUP_DELAY (0x0F000000)
1236 #define MPI_BIOSPAGE1_IOCSET_MASK_PORT_ENABLE_DELAY (0x00F00000)
1239 #define MPI_BIOSPAGE1_IOCSET_AUTO_PORT_ENABLE (0x00080000)
1240 #define MPI_BIOSPAGE1_IOCSET_DIRECT_ATTACH_SPINUP_MODE (0x00040000)
1242 #define MPI_BIOSPAGE1_IOCSET_MASK_BOOT_PREFERENCE (0x00030000)
1243 #define MPI_BIOSPAGE1_IOCSET_ENCLOSURE_SLOT_BOOT (0x00000000)
1244 #define MPI_BIOSPAGE1_IOCSET_SAS_ADDRESS_BOOT (0x00010000)
1246 #define MPI_BIOSPAGE1_IOCSET_MASK_MAX_TARGET_SPIN_UP (0x0000F000)
1249 #define MPI_BIOSPAGE1_IOCSET_MASK_SPINUP_DELAY (0x00000F00)
1252 #define MPI_BIOSPAGE1_IOCSET_MASK_RM_SETTING (0x000000C0)
1253 #define MPI_BIOSPAGE1_IOCSET_NONE_RM_SETTING (0x00000000)
1254 #define MPI_BIOSPAGE1_IOCSET_BOOT_RM_SETTING (0x00000040)
1255 #define MPI_BIOSPAGE1_IOCSET_MEDIA_RM_SETTING (0x00000080)
1257 #define MPI_BIOSPAGE1_IOCSET_MASK_ADAPTER_SUPPORT (0x00000030)
1258 #define MPI_BIOSPAGE1_IOCSET_NO_SUPPORT (0x00000000)
1259 #define MPI_BIOSPAGE1_IOCSET_BIOS_SUPPORT (0x00000010)
1260 #define MPI_BIOSPAGE1_IOCSET_OS_SUPPORT (0x00000020)
1261 #define MPI_BIOSPAGE1_IOCSET_ALL_SUPPORT (0x00000030)
1263 #define MPI_BIOSPAGE1_IOCSET_ALTERNATE_CHS (0x00000008)
1266 #define MPI_BIOSPAGE1_DEVSET_DISABLE_SMART_POLLING (0x00000010)
1267 #define MPI_BIOSPAGE1_DEVSET_DISABLE_SEQ_LUN (0x00000008)
1268 #define MPI_BIOSPAGE1_DEVSET_DISABLE_RM_LUN (0x00000004)
1269 #define MPI_BIOSPAGE1_DEVSET_DISABLE_NON_RM_LUN (0x00000002)
1270 #define MPI_BIOSPAGE1_DEVSET_DISABLE_OTHER_LUN (0x00000001)
1273 #define MPI_BIOSPAGE1_EXPSPINUP_MASK_MAX_TARGET (0xF0)
1275 #define MPI_BIOSPAGE1_EXPSPINUP_MASK_DELAY (0x0F)
1282 U32 Reserved4; /* 0Ch */
1306 U32 Reserved4; /* 0Ch */
1328 U32 Reserved3; /* 0Ch */
1351 U32 Reserved4; /* 0Ch */
1370 U32 Reserved2; /* 0Ch */
1389 U32 Reserved2; /* 0Ch */
1408 U32 Reserved2; /* 0Ch */
1441 U32 Reserved3; /* 0Ch */
1452 #define MPI_BIOSPAGE2_PAGEVERSION (0x02)
1454 #define MPI_BIOSPAGE2_FORM_MASK (0x0F)
1455 #define MPI_BIOSPAGE2_FORM_ADAPTER_ORDER (0x00)
1456 #define MPI_BIOSPAGE2_FORM_ADAPTER_NUMBER (0x01)
1457 #define MPI_BIOSPAGE2_FORM_PCI_ADDRESS (0x02)
1458 #define MPI_BIOSPAGE2_FORM_PCI_SLOT_NUMBER (0x03)
1459 #define MPI_BIOSPAGE2_FORM_FC_WWN (0x04)
1460 #define MPI_BIOSPAGE2_FORM_SAS_WWN (0x05)
1461 #define MPI_BIOSPAGE2_FORM_ENCLOSURE_SLOT (0x06)
1470 #define MPI_BIOSPAGE4_PAGEVERSION (0x00)
1484 #define MPI_SCSIPORTPAGE0_PAGEVERSION (0x02)
1486 #define MPI_SCSIPORTPAGE0_CAP_IU (0x00000001)
1487 #define MPI_SCSIPORTPAGE0_CAP_DT (0x00000002)
1488 #define MPI_SCSIPORTPAGE0_CAP_QAS (0x00000004)
1489 #define MPI_SCSIPORTPAGE0_CAP_MIN_SYNC_PERIOD_MASK (0x0000FF00)
1490 #define MPI_SCSIPORTPAGE0_SYNC_ASYNC (0x00)
1491 #define MPI_SCSIPORTPAGE0_SYNC_5 (0x32)
1492 #define MPI_SCSIPORTPAGE0_SYNC_10 (0x19)
1493 #define MPI_SCSIPORTPAGE0_SYNC_20 (0x0C)
1494 #define MPI_SCSIPORTPAGE0_SYNC_33_33 (0x0B)
1495 #define MPI_SCSIPORTPAGE0_SYNC_40 (0x0A)
1496 #define MPI_SCSIPORTPAGE0_SYNC_80 (0x09)
1497 #define MPI_SCSIPORTPAGE0_SYNC_160 (0x08)
1498 #define MPI_SCSIPORTPAGE0_SYNC_UNKNOWN (0xFF)
1505 #define MPI_SCSIPORTPAGE0_CAP_MAX_SYNC_OFFSET_MASK (0x00FF0000)
1511 #define MPI_SCSIPORTPAGE0_CAP_IDP (0x08000000)
1512 #define MPI_SCSIPORTPAGE0_CAP_WIDE (0x20000000)
1513 #define MPI_SCSIPORTPAGE0_CAP_AIP (0x80000000)
1515 #define MPI_SCSIPORTPAGE0_PHY_SIGNAL_TYPE_MASK (0x00000003)
1516 #define MPI_SCSIPORTPAGE0_PHY_SIGNAL_HVD (0x01)
1517 #define MPI_SCSIPORTPAGE0_PHY_SIGNAL_SE (0x02)
1518 #define MPI_SCSIPORTPAGE0_PHY_SIGNAL_LVD (0x03)
1519 #define MPI_SCSIPORTPAGE0_PHY_MASK_CONNECTED_ID (0xFF000000)
1521 #define MPI_SCSIPORTPAGE0_PHY_BUS_FREE_CONNECTED_ID (0xFE)
1522 #define MPI_SCSIPORTPAGE0_PHY_UNKNOWN_CONNECTED_ID (0xFF)
1529 U8 TargetConfig; /* 0Ch */
1530 U8 Reserved1; /* 0Dh */
1531 U16 IDConfig; /* 0Eh */
1535 #define MPI_SCSIPORTPAGE1_PAGEVERSION (0x03)
1538 #define MPI_SCSIPORTPAGE1_CFG_PORT_SCSI_ID_MASK (0x000000FF)
1539 #define MPI_SCSIPORTPAGE1_CFG_PORT_RESPONSE_ID_MASK (0xFFFF0000)
1543 #define MPI_SCSIPORTPAGE1_TARGCONFIG_TARG_ONLY (0x01)
1544 #define MPI_SCSIPORTPAGE1_TARGCONFIG_INIT_TARG (0x02)
1559 MPI_DEVICE_INFO DeviceSettings[16]; /* 0Ch */
1563 #define MPI_SCSIPORTPAGE2_PAGEVERSION (0x02)
1566 #define MPI_SCSIPORTPAGE2_PORT_FLAGS_SCAN_HIGH_TO_LOW (0x00000001)
1567 #define MPI_SCSIPORTPAGE2_PORT_FLAGS_AVOID_SCSI_RESET (0x00000004)
1568 #define MPI_SCSIPORTPAGE2_PORT_FLAGS_ALTERNATE_CHS (0x00000008)
1569 #define MPI_SCSIPORTPAGE2_PORT_FLAGS_TERMINATION_DISABLE (0x00000010)
1571 #define MPI_SCSIPORTPAGE2_PORT_FLAGS_DV_MASK (0x00000060)
1572 #define MPI_SCSIPORTPAGE2_PORT_FLAGS_FULL_DV (0x00000000)
1573 #define MPI_SCSIPORTPAGE2_PORT_FLAGS_BASIC_DV_ONLY (0x00000020)
1574 #define MPI_SCSIPORTPAGE2_PORT_FLAGS_OFF_DV (0x00000060)
1577 #define MPI_SCSIPORTPAGE2_PORT_HOST_ID_MASK (0x0000000F)
1578 #define MPI_SCSIPORTPAGE2_PORT_MASK_INIT_HBA (0x00000030)
1579 #define MPI_SCSIPORTPAGE2_PORT_DISABLE_INIT_HBA (0x00000000)
1580 #define MPI_SCSIPORTPAGE2_PORT_BIOS_INIT_HBA (0x00000010)
1581 #define MPI_SCSIPORTPAGE2_PORT_OS_INIT_HBA (0x00000020)
1582 #define MPI_SCSIPORTPAGE2_PORT_BIOS_OS_INIT_HBA (0x00000030)
1583 #define MPI_SCSIPORTPAGE2_PORT_REMOVABLE_MEDIA (0x000000C0)
1584 #define MPI_SCSIPORTPAGE2_PORT_RM_NONE (0x00000000)
1585 #define MPI_SCSIPORTPAGE2_PORT_RM_BOOT_ONLY (0x00000040)
1586 #define MPI_SCSIPORTPAGE2_PORT_RM_WITH_MEDIA (0x00000080)
1587 #define MPI_SCSIPORTPAGE2_PORT_SPINUP_DELAY_MASK (0x00000F00)
1589 #define MPI_SCSIPORTPAGE2_PORT_MASK_NEGO_MASTER_SETTINGS (0x00003000)
1590 #define MPI_SCSIPORTPAGE2_PORT_NEGO_MASTER_SETTINGS (0x00000000)
1591 #define MPI_SCSIPORTPAGE2_PORT_NONE_MASTER_SETTINGS (0x00001000)
1592 #define MPI_SCSIPORTPAGE2_PORT_ALL_MASTER_SETTINGS (0x00003000)
1594 #define MPI_SCSIPORTPAGE2_DEVICE_DISCONNECT_ENABLE (0x0001)
1595 #define MPI_SCSIPORTPAGE2_DEVICE_ID_SCAN_ENABLE (0x0002)
1596 #define MPI_SCSIPORTPAGE2_DEVICE_LUN_SCAN_ENABLE (0x0004)
1597 #define MPI_SCSIPORTPAGE2_DEVICE_TAG_QUEUE_ENABLE (0x0008)
1598 #define MPI_SCSIPORTPAGE2_DEVICE_WIDE_DISABLE (0x0010)
1599 #define MPI_SCSIPORTPAGE2_DEVICE_BOOT_CHOICE (0x0020)
1613 #define MPI_SCSIDEVPAGE0_PAGEVERSION (0x04)
1615 #define MPI_SCSIDEVPAGE0_NP_IU (0x00000001)
1616 #define MPI_SCSIDEVPAGE0_NP_DT (0x00000002)
1617 #define MPI_SCSIDEVPAGE0_NP_QAS (0x00000004)
1618 #define MPI_SCSIDEVPAGE0_NP_HOLD_MCS (0x00000008)
1619 #define MPI_SCSIDEVPAGE0_NP_WR_FLOW (0x00000010)
1620 #define MPI_SCSIDEVPAGE0_NP_RD_STRM (0x00000020)
1621 #define MPI_SCSIDEVPAGE0_NP_RTI (0x00000040)
1622 #define MPI_SCSIDEVPAGE0_NP_PCOMP_EN (0x00000080)
1623 #define MPI_SCSIDEVPAGE0_NP_NEG_SYNC_PERIOD_MASK (0x0000FF00)
1625 #define MPI_SCSIDEVPAGE0_NP_NEG_SYNC_OFFSET_MASK (0x00FF0000)
1627 #define MPI_SCSIDEVPAGE0_NP_IDP (0x08000000)
1628 #define MPI_SCSIDEVPAGE0_NP_WIDE (0x20000000)
1629 #define MPI_SCSIDEVPAGE0_NP_AIP (0x80000000)
1631 #define MPI_SCSIDEVPAGE0_INFO_PARAMS_NEGOTIATED (0x00000001)
1632 #define MPI_SCSIDEVPAGE0_INFO_SDTR_REJECTED (0x00000002)
1633 #define MPI_SCSIDEVPAGE0_INFO_WDTR_REJECTED (0x00000004)
1634 #define MPI_SCSIDEVPAGE0_INFO_PPR_REJECTED (0x00000008)
1641 U32 Configuration; /* 0Ch */
1645 #define MPI_SCSIDEVPAGE1_PAGEVERSION (0x05)
1647 #define MPI_SCSIDEVPAGE1_RP_IU (0x00000001)
1648 #define MPI_SCSIDEVPAGE1_RP_DT (0x00000002)
1649 #define MPI_SCSIDEVPAGE1_RP_QAS (0x00000004)
1650 #define MPI_SCSIDEVPAGE1_RP_HOLD_MCS (0x00000008)
1651 #define MPI_SCSIDEVPAGE1_RP_WR_FLOW (0x00000010)
1652 #define MPI_SCSIDEVPAGE1_RP_RD_STRM (0x00000020)
1653 #define MPI_SCSIDEVPAGE1_RP_RTI (0x00000040)
1654 #define MPI_SCSIDEVPAGE1_RP_PCOMP_EN (0x00000080)
1655 #define MPI_SCSIDEVPAGE1_RP_MIN_SYNC_PERIOD_MASK (0x0000FF00)
1657 #define MPI_SCSIDEVPAGE1_RP_MAX_SYNC_OFFSET_MASK (0x00FF0000)
1659 #define MPI_SCSIDEVPAGE1_RP_IDP (0x08000000)
1660 #define MPI_SCSIDEVPAGE1_RP_WIDE (0x20000000)
1661 #define MPI_SCSIDEVPAGE1_RP_AIP (0x80000000)
1663 #define MPI_SCSIDEVPAGE1_CONF_WDTR_DISALLOWED (0x00000002)
1664 #define MPI_SCSIDEVPAGE1_CONF_SDTR_DISALLOWED (0x00000004)
1665 #define MPI_SCSIDEVPAGE1_CONF_EXTENDED_PARAMS_ENABLE (0x00000008)
1666 #define MPI_SCSIDEVPAGE1_CONF_FORCE_PPR_MSG (0x00000010)
1673 U32 DataPipeSelect; /* 0Ch */
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)
1714 U16 Reserved; /* 0Ah */
1718 #define MPI_SCSIDEVPAGE3_PAGEVERSION (0x00)
1720 #define MPI_SCSIDEVPAGE3_MAX_COUNTER (0xFFFE)
1721 #define MPI_SCSIDEVPAGE3_UNSUPPORTED_COUNTER (0xFFFF)
1733 U8 PortState; /* 0Ah */
1734 U8 Reserved; /* 0Bh */
1735 U32 PortIdentifier; /* 0Ch */
1753 #define MPI_FCPORTPAGE0_PAGEVERSION (0x02)
1755 #define MPI_FCPORTPAGE0_FLAGS_PROT_MASK (0x0000000F)
1761 #define MPI_FCPORTPAGE0_FLAGS_ALIAS_ALPA_SUPPORTED (0x00000010)
1762 #define MPI_FCPORTPAGE0_FLAGS_ALIAS_WWN_SUPPORTED (0x00000020)
1763 #define MPI_FCPORTPAGE0_FLAGS_FABRIC_WWN_VALID (0x00000040)
1765 #define MPI_FCPORTPAGE0_FLAGS_ATTACH_TYPE_MASK (0x00000F00)
1766 #define MPI_FCPORTPAGE0_FLAGS_ATTACH_NO_INIT (0x00000000)
1767 #define MPI_FCPORTPAGE0_FLAGS_ATTACH_POINT_TO_POINT (0x00000100)
1768 #define MPI_FCPORTPAGE0_FLAGS_ATTACH_PRIVATE_LOOP (0x00000200)
1769 #define MPI_FCPORTPAGE0_FLAGS_ATTACH_FABRIC_DIRECT (0x00000400)
1770 #define MPI_FCPORTPAGE0_FLAGS_ATTACH_PUBLIC_LOOP (0x00000800)
1772 #define MPI_FCPORTPAGE0_LTYPE_RESERVED (0x00)
1773 #define MPI_FCPORTPAGE0_LTYPE_OTHER (0x01)
1774 #define MPI_FCPORTPAGE0_LTYPE_UNKNOWN (0x02)
1775 #define MPI_FCPORTPAGE0_LTYPE_COPPER (0x03)
1776 #define MPI_FCPORTPAGE0_LTYPE_SINGLE_1300 (0x04)
1777 #define MPI_FCPORTPAGE0_LTYPE_SINGLE_1500 (0x05)
1778 #define MPI_FCPORTPAGE0_LTYPE_50_LASER_MULTI (0x06)
1779 #define MPI_FCPORTPAGE0_LTYPE_50_LED_MULTI (0x07)
1780 #define MPI_FCPORTPAGE0_LTYPE_62_LASER_MULTI (0x08)
1781 #define MPI_FCPORTPAGE0_LTYPE_62_LED_MULTI (0x09)
1782 #define MPI_FCPORTPAGE0_LTYPE_MULTI_LONG_WAVE (0x0A)
1783 #define MPI_FCPORTPAGE0_LTYPE_MULTI_SHORT_WAVE (0x0B)
1784 #define MPI_FCPORTPAGE0_LTYPE_LASER_SHORT_WAVE (0x0C)
1785 #define MPI_FCPORTPAGE0_LTYPE_LED_SHORT_WAVE (0x0D)
1786 #define MPI_FCPORTPAGE0_LTYPE_1300_LONG_WAVE (0x0E)
1787 #define MPI_FCPORTPAGE0_LTYPE_1500_LONG_WAVE (0x0F)
1789 #define MPI_FCPORTPAGE0_PORTSTATE_UNKNOWN (0x01) /*(SNIA)HBA_PORTSTATE_UNKNOWN …
1790 #define MPI_FCPORTPAGE0_PORTSTATE_ONLINE (0x02) /*(SNIA)HBA_PORTSTATE_ONLINE …
1791 #define MPI_FCPORTPAGE0_PORTSTATE_OFFLINE (0x03) /*(SNIA)HBA_PORTSTATE_OFFLINE …
1792 #define MPI_FCPORTPAGE0_PORTSTATE_BYPASSED (0x04) /*(SNIA)HBA_PORTSTATE_BYPASSED …
1793 #define MPI_FCPORTPAGE0_PORTSTATE_DIAGNOST (0x05) /*(SNIA)HBA_PORTSTATE_DIAGNOSTI…
1794 #define MPI_FCPORTPAGE0_PORTSTATE_LINKDOWN (0x06) /*(SNIA)HBA_PORTSTATE_LINKDOWN …
1795 #define MPI_FCPORTPAGE0_PORTSTATE_ERROR (0x07) /*(SNIA)HBA_PORTSTATE_ERROR …
1796 #define MPI_FCPORTPAGE0_PORTSTATE_LOOPBACK (0x08) /*(SNIA)HBA_PORTSTATE_LOOPBACK …
1798 #define MPI_FCPORTPAGE0_SUPPORT_CLASS_1 (0x00000001)
1799 #define MPI_FCPORTPAGE0_SUPPORT_CLASS_2 (0x00000002)
1800 #define MPI_FCPORTPAGE0_SUPPORT_CLASS_3 (0x00000004)
1802 …fine MPI_FCPORTPAGE0_SUPPORT_SPEED_UKNOWN (0x00000000) /* (SNIA)HBA_PORTSPEED_UNKNOWN 0…
1803 #define MPI_FCPORTPAGE0_SUPPORT_1GBIT_SPEED (0x00000001) /* (SNIA)HBA_PORTSPEED_1GBIT …
1804 #define MPI_FCPORTPAGE0_SUPPORT_2GBIT_SPEED (0x00000002) /* (SNIA)HBA_PORTSPEED_2GBIT …
1805 #define MPI_FCPORTPAGE0_SUPPORT_10GBIT_SPEED (0x00000004) /* (SNIA)HBA_PORTSPEED_10GBIT …
1806 #define MPI_FCPORTPAGE0_SUPPORT_4GBIT_SPEED (0x00000008) /* (SNIA)HBA_PORTSPEED_4GBIT …
1813 #define MPI_FCPORTPAGE0_CURRENT_SPEED_NOT_NEGOTIATED (0x00008000) /* (SNIA)HBA_PORTSPEED_…
1832 #define MPI_FCPORTPAGE1_PAGEVERSION (0x06)
1834 #define MPI_FCPORTPAGE1_FLAGS_EXT_FCP_STATUS_EN (0x08000000)
1835 #define MPI_FCPORTPAGE1_FLAGS_IMMEDIATE_ERROR_REPLY (0x04000000)
1836 #define MPI_FCPORTPAGE1_FLAGS_FORCE_USE_NOSEEPROM_WWNS (0x02000000)
1837 #define MPI_FCPORTPAGE1_FLAGS_VERBOSE_RESCAN_EVENTS (0x01000000)
1838 #define MPI_FCPORTPAGE1_FLAGS_TARGET_MODE_OXID (0x00800000)
1839 #define MPI_FCPORTPAGE1_FLAGS_PORT_OFFLINE (0x00400000)
1840 #define MPI_FCPORTPAGE1_FLAGS_SOFT_ALPA_FALLBACK (0x00200000)
1841 #define MPI_FCPORTPAGE1_FLAGS_TARGET_LARGE_CDB_ENABLE (0x00000080)
1842 #define MPI_FCPORTPAGE1_FLAGS_MASK_RR_TOV_UNITS (0x00000070)
1843 #define MPI_FCPORTPAGE1_FLAGS_SUPPRESS_PROT_REG (0x00000008)
1844 #define MPI_FCPORTPAGE1_FLAGS_PLOGI_ON_LOGO (0x00000004)
1845 #define MPI_FCPORTPAGE1_FLAGS_MAINTAIN_LOGINS (0x00000002)
1846 #define MPI_FCPORTPAGE1_FLAGS_SORT_BY_DID (0x00000001)
1847 #define MPI_FCPORTPAGE1_FLAGS_SORT_BY_WWN (0x00000000)
1849 #define MPI_FCPORTPAGE1_FLAGS_PROT_MASK (0xF0000000)
1856 #define MPI_FCPORTPAGE1_FLAGS_NONE_RR_TOV_UNITS (0x00000000)
1857 #define MPI_FCPORTPAGE1_FLAGS_THOUSANDTH_RR_TOV_UNITS (0x00000010)
1858 #define MPI_FCPORTPAGE1_FLAGS_TENTH_RR_TOV_UNITS (0x00000030)
1859 #define MPI_FCPORTPAGE1_FLAGS_TEN_RR_TOV_UNITS (0x00000050)
1861 #define MPI_FCPORTPAGE1_HARD_ALPA_NOT_USED (0xFF)
1863 #define MPI_FCPORTPAGE1_LCONFIG_SPEED_MASK (0x0F)
1864 #define MPI_FCPORTPAGE1_LCONFIG_SPEED_1GIG (0x00)
1865 #define MPI_FCPORTPAGE1_LCONFIG_SPEED_2GIG (0x01)
1866 #define MPI_FCPORTPAGE1_LCONFIG_SPEED_4GIG (0x02)
1867 #define MPI_FCPORTPAGE1_LCONFIG_SPEED_10GIG (0x03)
1868 #define MPI_FCPORTPAGE1_LCONFIG_SPEED_AUTO (0x0F)
1870 #define MPI_FCPORTPAGE1_TOPOLOGY_MASK (0x0F)
1871 #define MPI_FCPORTPAGE1_TOPOLOGY_NLPORT (0x01)
1872 #define MPI_FCPORTPAGE1_TOPOLOGY_NPORT (0x02)
1873 #define MPI_FCPORTPAGE1_TOPOLOGY_AUTO (0x0F)
1875 #define MPI_FCPORTPAGE1_ALT_CONN_UNKNOWN (0x00)
1877 #define MPI_FCPORTPAGE1_INITIATOR_DEV_TIMEOUT_MASK (0x7F)
1878 #define MPI_FCPORTPAGE1_INITIATOR_DEV_UNIT_16 (0x80)
1888 #define MPI_FCPORTPAGE2_PAGEVERSION (0x01)
1914 #define MPI_PERSISTENT_FLAGS_ENTRY_VALID (0x0001)
1915 #define MPI_PERSISTENT_FLAGS_SCAN_ID (0x0002)
1916 #define MPI_PERSISTENT_FLAGS_SCAN_LUNS (0x0004)
1917 #define MPI_PERSISTENT_FLAGS_BOOT_DEVICE (0x0008)
1918 #define MPI_PERSISTENT_FLAGS_BY_DID (0x0080)
1935 #define MPI_FCPORTPAGE3_PAGEVERSION (0x01)
1945 #define MPI_FCPORTPAGE4_PAGEVERSION (0x00)
1947 #define MPI_FCPORTPAGE4_PORT_FLAGS_ALTERNATE_CHS (0x00000008)
1949 #define MPI_FCPORTPAGE4_PORT_MASK_INIT_HBA (0x00000030)
1950 #define MPI_FCPORTPAGE4_PORT_DISABLE_INIT_HBA (0x00000000)
1951 #define MPI_FCPORTPAGE4_PORT_BIOS_INIT_HBA (0x00000010)
1952 #define MPI_FCPORTPAGE4_PORT_OS_INIT_HBA (0x00000020)
1953 #define MPI_FCPORTPAGE4_PORT_BIOS_OS_INIT_HBA (0x00000030)
1954 #define MPI_FCPORTPAGE4_PORT_REMOVABLE_MEDIA (0x000000C0)
1955 #define MPI_FCPORTPAGE4_PORT_SPINUP_DELAY_MASK (0x00000F00)
1963 U64 AliasWWPN; /* 0Ch */
1975 #define MPI_FCPORTPAGE5_PAGEVERSION (0x02)
1977 #define MPI_FCPORTPAGE5_FLAGS_ALPA_ACQUIRED (0x01)
1978 #define MPI_FCPORTPAGE5_FLAGS_HARD_ALPA (0x02)
1979 #define MPI_FCPORTPAGE5_FLAGS_HARD_WWNN (0x04)
1980 #define MPI_FCPORTPAGE5_FLAGS_HARD_WWPN (0x08)
1981 #define MPI_FCPORTPAGE5_FLAGS_DISABLE (0x10)
2006 #define MPI_FCPORTPAGE6_PAGEVERSION (0x00)
2016 #define MPI_FCPORTPAGE7_PAGEVERSION (0x00)
2025 #define MPI_FCPORTPAGE8_PAGEVERSION (0x00)
2044 #define MPI_FCPORTPAGE9_PAGEVERSION (0x00)
2073 #define MPI_FCPORT10_BASE_ID_UNKNOWN (0x00)
2074 #define MPI_FCPORT10_BASE_ID_GBIC (0x01)
2075 #define MPI_FCPORT10_BASE_ID_FIXED (0x02)
2076 #define MPI_FCPORT10_BASE_ID_SFP (0x03)
2077 #define MPI_FCPORT10_BASE_ID_SFP_MIN (0x04)
2078 #define MPI_FCPORT10_BASE_ID_SFP_MAX (0x7F)
2079 #define MPI_FCPORT10_BASE_ID_VEND_SPEC_MASK (0x80)
2081 #define MPI_FCPORT10_BASE_EXTID_UNKNOWN (0x00)
2082 #define MPI_FCPORT10_BASE_EXTID_MODDEF1 (0x01)
2083 #define MPI_FCPORT10_BASE_EXTID_MODDEF2 (0x02)
2084 #define MPI_FCPORT10_BASE_EXTID_MODDEF3 (0x03)
2085 #define MPI_FCPORT10_BASE_EXTID_SEEPROM (0x04)
2086 #define MPI_FCPORT10_BASE_EXTID_MODDEF5 (0x05)
2087 #define MPI_FCPORT10_BASE_EXTID_MODDEF6 (0x06)
2088 #define MPI_FCPORT10_BASE_EXTID_MODDEF7 (0x07)
2089 #define MPI_FCPORT10_BASE_EXTID_VNDSPC_MASK (0x80)
2091 #define MPI_FCPORT10_BASE_CONN_UNKNOWN (0x00)
2092 #define MPI_FCPORT10_BASE_CONN_SC (0x01)
2093 #define MPI_FCPORT10_BASE_CONN_COPPER1 (0x02)
2094 #define MPI_FCPORT10_BASE_CONN_COPPER2 (0x03)
2095 #define MPI_FCPORT10_BASE_CONN_BNC_TNC (0x04)
2096 #define MPI_FCPORT10_BASE_CONN_COAXIAL (0x05)
2097 #define MPI_FCPORT10_BASE_CONN_FIBERJACK (0x06)
2098 #define MPI_FCPORT10_BASE_CONN_LC (0x07)
2099 #define MPI_FCPORT10_BASE_CONN_MT_RJ (0x08)
2100 #define MPI_FCPORT10_BASE_CONN_MU (0x09)
2101 #define MPI_FCPORT10_BASE_CONN_SG (0x0A)
2102 #define MPI_FCPORT10_BASE_CONN_OPT_PIGT (0x0B)
2103 #define MPI_FCPORT10_BASE_CONN_RSV1_MIN (0x0C)
2104 #define MPI_FCPORT10_BASE_CONN_RSV1_MAX (0x1F)
2105 #define MPI_FCPORT10_BASE_CONN_HSSDC_II (0x20)
2106 #define MPI_FCPORT10_BASE_CONN_CPR_PIGT (0x21)
2107 #define MPI_FCPORT10_BASE_CONN_RSV2_MIN (0x22)
2108 #define MPI_FCPORT10_BASE_CONN_RSV2_MAX (0x7F)
2109 #define MPI_FCPORT10_BASE_CONN_VNDSPC_MASK (0x80)
2111 #define MPI_FCPORT10_BASE_ENCODE_UNSPEC (0x00)
2112 #define MPI_FCPORT10_BASE_ENCODE_8B10B (0x01)
2113 #define MPI_FCPORT10_BASE_ENCODE_4B5B (0x02)
2114 #define MPI_FCPORT10_BASE_ENCODE_NRZ (0x03)
2115 #define MPI_FCPORT10_BASE_ENCODE_MANCHESTER (0x04)
2132 #define MPI_FCPORT10_EXT_OPTION1_RATESEL (0x20)
2133 #define MPI_FCPORT10_EXT_OPTION1_TX_DISABLE (0x10)
2134 #define MPI_FCPORT10_EXT_OPTION1_TX_FAULT (0x08)
2135 #define MPI_FCPORT10_EXT_OPTION1_LOS_INVERT (0x04)
2136 #define MPI_FCPORT10_EXT_OPTION1_LOS (0x02)
2145 U32 HwConfig2; /* 0Ch */
2152 #define MPI_FCPORTPAGE10_PAGEVERSION (0x01)
2155 #define MPI_FCPORTPAGE10_FLAGS_MODDEF_MASK (0x00000007)
2156 #define MPI_FCPORTPAGE10_FLAGS_MODDEF2 (0x00000001)
2157 #define MPI_FCPORTPAGE10_FLAGS_MODDEF1 (0x00000002)
2158 #define MPI_FCPORTPAGE10_FLAGS_MODDEF0 (0x00000004)
2159 #define MPI_FCPORTPAGE10_FLAGS_MODDEF_NOGBIC (0x00000007)
2160 #define MPI_FCPORTPAGE10_FLAGS_MODDEF_CPR_IEEE_CX (0x00000006)
2161 #define MPI_FCPORTPAGE10_FLAGS_MODDEF_COPPER (0x00000005)
2162 #define MPI_FCPORTPAGE10_FLAGS_MODDEF_OPTICAL_LW (0x00000004)
2163 #define MPI_FCPORTPAGE10_FLAGS_MODDEF_SEEPROM (0x00000003)
2164 #define MPI_FCPORTPAGE10_FLAGS_MODDEF_SW_OPTICAL (0x00000002)
2165 #define MPI_FCPORTPAGE10_FLAGS_MODDEF_LX_IEEE_OPT_LW (0x00000001)
2166 #define MPI_FCPORTPAGE10_FLAGS_MODDEF_SX_IEEE_OPT_SW (0x00000000)
2168 #define MPI_FCPORTPAGE10_FLAGS_CC_BASE_OK (0x00000010)
2169 #define MPI_FCPORTPAGE10_FLAGS_CC_EXT_OK (0x00000020)
2179 U64 WWPN; /* 0Ch */
2194 #define MPI_FC_DEVICE_PAGE0_PAGEVERSION (0x03)
2196 #define MPI_FC_DEVICE_PAGE0_FLAGS_TARGETID_BUS_VALID (0x01)
2197 #define MPI_FC_DEVICE_PAGE0_FLAGS_PLOGI_INVALID (0x02)
2198 #define MPI_FC_DEVICE_PAGE0_FLAGS_PRLI_INVALID (0x04)
2200 #define MPI_FC_DEVICE_PAGE0_PROT_IP (0x01)
2201 #define MPI_FC_DEVICE_PAGE0_PROT_FCP_TARGET (0x02)
2202 #define MPI_FC_DEVICE_PAGE0_PROT_FCP_INITIATOR (0x04)
2203 #define MPI_FC_DEVICE_PAGE0_PROT_FCP_RETRY (0x08)
2214 #define MPI_FC_DEVICE_PAGE0_HARD_ALPA_UNKNOWN (0xFF)
2228 #define MPI_RAIDVOL0_PHYSDISK_PRIMARY (0x01)
2229 #define MPI_RAIDVOL0_PHYSDISK_SECONDARY (0x02)
2239 /* RAID Volume Page 0 VolumeStatus defines */
2240 #define MPI_RAIDVOL0_STATUS_FLAG_ENABLED (0x01)
2241 #define MPI_RAIDVOL0_STATUS_FLAG_QUIESCED (0x02)
2242 #define MPI_RAIDVOL0_STATUS_FLAG_RESYNC_IN_PROGRESS (0x04)
2243 #define MPI_RAIDVOL0_STATUS_FLAG_VOLUME_INACTIVE (0x08)
2244 #define MPI_RAIDVOL0_STATUS_FLAG_BAD_BLOCK_TABLE_FULL (0x10)
2246 #define MPI_RAIDVOL0_STATUS_STATE_OPTIMAL (0x00)
2247 #define MPI_RAIDVOL0_STATUS_STATE_DEGRADED (0x01)
2248 #define MPI_RAIDVOL0_STATUS_STATE_FAILED (0x02)
2249 #define MPI_RAIDVOL0_STATUS_STATE_MISSING (0x03)
2259 /* RAID Volume Page 0 VolumeSettings defines */
2260 #define MPI_RAIDVOL0_SETTING_WRITE_CACHING_ENABLE (0x0001)
2261 #define MPI_RAIDVOL0_SETTING_OFFLINE_ON_SMART (0x0002)
2262 #define MPI_RAIDVOL0_SETTING_AUTO_CONFIGURE (0x0004)
2263 #define MPI_RAIDVOL0_SETTING_PRIORITY_RESYNC (0x0008)
2264 #define MPI_RAIDVOL0_SETTING_FAST_DATA_SCRUBBING_0102 (0x0020) /* obsolete */
2266 #define MPI_RAIDVOL0_SETTING_MASK_METADATA_SIZE (0x00C0)
2267 #define MPI_RAIDVOL0_SETTING_64MB_METADATA_SIZE (0x0000)
2268 #define MPI_RAIDVOL0_SETTING_512MB_METADATA_SIZE (0x0040)
2270 #define MPI_RAIDVOL0_SETTING_USE_PRODUCT_ID_SUFFIX (0x0010)
2271 #define MPI_RAIDVOL0_SETTING_USE_DEFAULTS (0x8000)
2273 /* RAID Volume Page 0 HotSparePool defines, also used in RAID Physical Disk */
2274 #define MPI_RAID_HOT_SPARE_POOL_0 (0x01)
2275 #define MPI_RAID_HOT_SPARE_POOL_1 (0x02)
2276 #define MPI_RAID_HOT_SPARE_POOL_2 (0x04)
2277 #define MPI_RAID_HOT_SPARE_POOL_3 (0x08)
2278 #define MPI_RAID_HOT_SPARE_POOL_4 (0x10)
2279 #define MPI_RAID_HOT_SPARE_POOL_5 (0x20)
2280 #define MPI_RAID_HOT_SPARE_POOL_6 (0x40)
2281 #define MPI_RAID_HOT_SPARE_POOL_7 (0x80)
2299 RAID_VOL0_SETTINGS VolumeSettings; /* 0Ch */
2313 #define MPI_RAIDVOLPAGE0_PAGEVERSION (0x07)
2315 /* values for RAID Volume Page 0 InactiveStatus field */
2316 #define MPI_RAIDVOLPAGE0_UNKNOWN_INACTIVE (0x00)
2317 #define MPI_RAIDVOLPAGE0_STALE_METADATA_INACTIVE (0x01)
2318 #define MPI_RAIDVOLPAGE0_FOREIGN_VOLUME_INACTIVE (0x02)
2319 #define MPI_RAIDVOLPAGE0_INSUFFICIENT_RESOURCE_INACTIVE (0x03)
2320 #define MPI_RAIDVOLPAGE0_CLONE_VOLUME_INACTIVE (0x04)
2321 #define MPI_RAIDVOLPAGE0_INSUFFICIENT_METADATA_INACTIVE (0x05)
2322 #define MPI_RAIDVOLPAGE0_PREVIOUSLY_DELETED (0x06)
2339 #define MPI_RAIDVOLPAGE1_PAGEVERSION (0x01)
2354 U8 SmartASC; /* 0Ah */
2355 U8 SmartASCQ; /* 0Bh */
2387 #define MPI_PHYSDISK0_STATUS_FLAG_OUT_OF_SYNC (0x01)
2388 #define MPI_PHYSDISK0_STATUS_FLAG_QUIESCED (0x02)
2389 #define MPI_PHYSDISK0_STATUS_FLAG_INACTIVE_VOLUME (0x04)
2390 #define MPI_PHYSDISK0_STATUS_FLAG_OPTIMAL_PREVIOUS (0x00)
2391 #define MPI_PHYSDISK0_STATUS_FLAG_NOT_OPTIMAL_PREVIOUS (0x08)
2393 #define MPI_PHYSDISK0_STATUS_ONLINE (0x00)
2394 #define MPI_PHYSDISK0_STATUS_MISSING (0x01)
2395 #define MPI_PHYSDISK0_STATUS_NOT_COMPATIBLE (0x02)
2396 #define MPI_PHYSDISK0_STATUS_FAILED (0x03)
2397 #define MPI_PHYSDISK0_STATUS_INITIALIZING (0x04)
2398 #define MPI_PHYSDISK0_STATUS_OFFLINE_REQUESTED (0x05)
2399 #define MPI_PHYSDISK0_STATUS_FAILED_REQUESTED (0x06)
2400 #define MPI_PHYSDISK0_STATUS_OTHER_OFFLINE (0xFF)
2410 U32 Reserved1; /* 0Ch */
2420 #define MPI_RAIDPHYSDISKPAGE0_PAGEVERSION (0x02)
2428 U64 OwnerWWID; /* 0Ch */
2436 #define MPI_RAID_PHYSDISK1_FLAG_BROKEN (0x0002)
2437 #define MPI_RAID_PHYSDISK1_FLAG_INVALID (0x0001)
2454 RAID_PHYS_DISK1_PATH Path[MPI_RAID_PHYS_DISK1_PATH_MAX];/* 0Ch */
2458 #define MPI_RAIDPHYSDISKPAGE1_PAGEVERSION (0x00)
2473 #define MPI_LAN_PAGE0_PAGEVERSION (0x01)
2475 #define MPI_LAN_PAGE0_RETURN_LOOPBACK (0x0000)
2476 #define MPI_LAN_PAGE0_SUPPRESS_LOOPBACK (0x0001)
2477 #define MPI_LAN_PAGE0_LOOPBACK_MASK (0x0001)
2486 U32 MaxPacketSize; /* 0Ch */
2498 #define MPI_LAN_PAGE1_PAGEVERSION (0x03)
2500 #define MPI_LAN_PAGE1_DEV_STATE_RESET (0x00)
2501 #define MPI_LAN_PAGE1_DEV_STATE_OPERATIONAL (0x01)
2512 U16 Reserved1; /* 0Ah */
2516 #define MPI_INBAND_PAGEVERSION (0x00)
2530 U16 ControllerDevHandle; /* 0Ah */
2531 U32 DiscoveryStatus; /* 0Ch */
2547 U16 NvdataVersionPersistent; /* 0Ah */
2548 U8 NumPhys; /* 0Ch */
2549 U8 Reserved2; /* 0Dh */
2550 U16 Reserved3; /* 0Eh */
2555 #define MPI_SASIOUNITPAGE0_PAGEVERSION (0x04)
2557 /* values for SAS IO Unit Page 0 PortFlags */
2558 #define MPI_SAS_IOUNIT0_PORT_FLAGS_DISCOVERY_IN_PROGRESS (0x08)
2559 #define MPI_SAS_IOUNIT0_PORT_FLAGS_0_TARGET_IOC_NUM (0x00)
2560 #define MPI_SAS_IOUNIT0_PORT_FLAGS_1_TARGET_IOC_NUM (0x04)
2561 #define MPI_SAS_IOUNIT0_PORT_FLAGS_AUTO_PORT_CONFIG (0x01)
2563 /* values for SAS IO Unit Page 0 PhyFlags */
2564 #define MPI_SAS_IOUNIT0_PHY_FLAGS_PHY_DISABLED (0x04)
2565 #define MPI_SAS_IOUNIT0_PHY_FLAGS_TX_INVERT (0x02)
2566 #define MPI_SAS_IOUNIT0_PHY_FLAGS_RX_INVERT (0x01)
2568 /* values for SAS IO Unit Page 0 NegotiatedLinkRate */
2569 #define MPI_SAS_IOUNIT0_RATE_UNKNOWN (0x00)
2570 #define MPI_SAS_IOUNIT0_RATE_PHY_DISABLED (0x01)
2571 #define MPI_SAS_IOUNIT0_RATE_FAILED_SPEED_NEGOTIATION (0x02)
2572 #define MPI_SAS_IOUNIT0_RATE_SATA_OOB_COMPLETE (0x03)
2573 #define MPI_SAS_IOUNIT0_RATE_1_5 (0x08)
2574 #define MPI_SAS_IOUNIT0_RATE_3_0 (0x09)
2575 #define MPI_SAS_IOUNIT0_RATE_6_0 (0x0A)
2577 /* see mpi_sas.h for values for SAS IO Unit Page 0 ControllerPhyDeviceInfo values */
2579 /* values for SAS IO Unit Page 0 DiscoveryStatus */
2580 #define MPI_SAS_IOUNIT0_DS_LOOP_DETECTED (0x00000001)
2581 #define MPI_SAS_IOUNIT0_DS_UNADDRESSABLE_DEVICE (0x00000002)
2582 #define MPI_SAS_IOUNIT0_DS_MULTIPLE_PORTS (0x00000004)
2583 #define MPI_SAS_IOUNIT0_DS_EXPANDER_ERR (0x00000008)
2584 #define MPI_SAS_IOUNIT0_DS_SMP_TIMEOUT (0x00000010)
2585 #define MPI_SAS_IOUNIT0_DS_OUT_ROUTE_ENTRIES (0x00000020)
2586 #define MPI_SAS_IOUNIT0_DS_INDEX_NOT_EXIST (0x00000040)
2587 #define MPI_SAS_IOUNIT0_DS_SMP_FUNCTION_FAILED (0x00000080)
2588 #define MPI_SAS_IOUNIT0_DS_SMP_CRC_ERROR (0x00000100)
2589 #define MPI_SAS_IOUNIT0_DS_SUBTRACTIVE_LINK (0x00000200)
2590 #define MPI_SAS_IOUNIT0_DS_TABLE_LINK (0x00000400)
2591 #define MPI_SAS_IOUNIT0_DS_UNSUPPORTED_DEVICE (0x00000800)
2592 #define MPI_SAS_IOUNIT0_DS_MAX_SATA_TARGETS (0x00001000)
2593 #define MPI_SAS_IOUNIT0_DS_MULTI_PORT_DOMAIN (0x00002000)
2603 U16 Reserved1; /* 0Ah */
2619 U16 MaxNumSATATargets; /* 0Ah */
2620 U16 AdditionalControlFlags; /* 0Ch */
2621 U16 Reserved1; /* 0Eh */
2630 #define MPI_SASIOUNITPAGE1_PAGEVERSION (0x07)
2633 #define MPI_SAS_IOUNIT1_CONTROL_DEVICE_SELF_TEST (0x8000)
2634 #define MPI_SAS_IOUNIT1_CONTROL_SATA_3_0_MAX (0x4000)
2635 #define MPI_SAS_IOUNIT1_CONTROL_SATA_1_5_MAX (0x2000)
2636 #define MPI_SAS_IOUNIT1_CONTROL_SATA_SW_PRESERVE (0x1000)
2637 #define MPI_SAS_IOUNIT1_CONTROL_DISABLE_SAS_HASH (0x0800)
2639 #define MPI_SAS_IOUNIT1_CONTROL_MASK_DEV_SUPPORT (0x0600)
2641 #define MPI_SAS_IOUNIT1_CONTROL_DEV_SUPPORT_BOTH (0x00)
2642 #define MPI_SAS_IOUNIT1_CONTROL_DEV_SAS_SUPPORT (0x01)
2643 #define MPI_SAS_IOUNIT1_CONTROL_DEV_SATA_SUPPORT (0x02)
2645 #define MPI_SAS_IOUNIT1_CONTROL_POSTPONE_SATA_INIT (0x0100)
2646 #define MPI_SAS_IOUNIT1_CONTROL_SATA_48BIT_LBA_REQUIRED (0x0080)
2647 #define MPI_SAS_IOUNIT1_CONTROL_SATA_SMART_REQUIRED (0x0040)
2648 #define MPI_SAS_IOUNIT1_CONTROL_SATA_NCQ_REQUIRED (0x0020)
2649 #define MPI_SAS_IOUNIT1_CONTROL_SATA_FUA_REQUIRED (0x0010)
2650 #define MPI_SAS_IOUNIT1_CONTROL_PHY_ENABLE_ORDER_HIGH (0x0008)
2651 #define MPI_SAS_IOUNIT1_CONTROL_SUBTRACTIVE_ILLEGAL (0x0004)
2652 #define MPI_SAS_IOUNIT1_CONTROL_FIRST_LVL_DISC_ONLY (0x0002)
2653 #define MPI_SAS_IOUNIT1_CONTROL_CLEAR_AFFILIATION (0x0001)
2656 #define MPI_SAS_IOUNIT1_ACONTROL_MULTI_PORT_DOMAIN_ILLEGAL (0x0080)
2657 #define MPI_SAS_IOUNIT1_ACONTROL_SATA_ASYNCHROUNOUS_NOTIFICATION (0x0040)
2658 #define MPI_SAS_IOUNIT1_ACONTROL_HIDE_NONZERO_ATTACHED_PHY_IDENT (0x0020)
2659 #define MPI_SAS_IOUNIT1_ACONTROL_PORT_ENABLE_ONLY_SATA_LINK_RESET (0x0010)
2660 #define MPI_SAS_IOUNIT1_ACONTROL_OTHER_AFFILIATION_SATA_LINK_RESET (0x0008)
2661 #define MPI_SAS_IOUNIT1_ACONTROL_SELF_AFFILIATION_SATA_LINK_RESET (0x0004)
2662 #define MPI_SAS_IOUNIT1_ACONTROL_NO_AFFILIATION_SATA_LINK_RESET (0x0002)
2663 #define MPI_SAS_IOUNIT1_ACONTROL_ALLOW_TABLE_TO_TABLE (0x0001)
2666 #define MPI_SAS_IOUNIT1_REPORT_MISSING_TIMEOUT_MASK (0x7F)
2667 #define MPI_SAS_IOUNIT1_REPORT_MISSING_UNIT_16 (0x80)
2670 #define MPI_SAS_IOUNIT1_PORT_FLAGS_0_TARGET_IOC_NUM (0x00)
2671 #define MPI_SAS_IOUNIT1_PORT_FLAGS_1_TARGET_IOC_NUM (0x04)
2672 #define MPI_SAS_IOUNIT1_PORT_FLAGS_AUTO_PORT_CONFIG (0x01)
2674 /* values for SAS IO Unit Page 0 PhyFlags */
2675 #define MPI_SAS_IOUNIT1_PHY_FLAGS_PHY_DISABLE (0x04)
2676 #define MPI_SAS_IOUNIT1_PHY_FLAGS_TX_INVERT (0x02)
2677 #define MPI_SAS_IOUNIT1_PHY_FLAGS_RX_INVERT (0x01)
2679 /* values for SAS IO Unit Page 0 MaxMinLinkRate */
2680 #define MPI_SAS_IOUNIT1_MAX_RATE_MASK (0xF0)
2681 #define MPI_SAS_IOUNIT1_MAX_RATE_1_5 (0x80)
2682 #define MPI_SAS_IOUNIT1_MAX_RATE_3_0 (0x90)
2683 #define MPI_SAS_IOUNIT1_MIN_RATE_MASK (0x0F)
2684 #define MPI_SAS_IOUNIT1_MIN_RATE_1_5 (0x08)
2685 #define MPI_SAS_IOUNIT1_MIN_RATE_3_0 (0x09)
2694 U16 Reserved2; /* 0Ah */
2695 U16 MaxPersistentIDs; /* 0Ch */
2696 U16 NumPersistentIDsUsed; /* 0Eh */
2703 #define MPI_SASIOUNITPAGE2_PAGEVERSION (0x07)
2706 #define MPI_SAS_IOUNIT2_STATUS_DEVICE_LIMIT_EXCEEDED (0x08)
2707 #define MPI_SAS_IOUNIT2_STATUS_ENCLOSURE_DEVICES_UNMAPPED (0x04)
2708 #define MPI_SAS_IOUNIT2_STATUS_DISABLED_PERSISTENT_MAPPINGS (0x02)
2709 #define MPI_SAS_IOUNIT2_STATUS_FULL_PERSISTENT_MAPPINGS (0x01)
2712 #define MPI_SAS_IOUNIT2_FLAGS_DISABLE_PERSISTENT_MAPPINGS (0x01)
2714 #define MPI_SAS_IOUNIT2_FLAGS_MASK_PHYS_MAP_MODE (0x0E)
2716 #define MPI_SAS_IOUNIT2_FLAGS_NO_PHYS_MAP (0x00)
2717 #define MPI_SAS_IOUNIT2_FLAGS_DIRECT_ATTACH_PHYS_MAP (0x01)
2718 #define MPI_SAS_IOUNIT2_FLAGS_ENCLOSURE_SLOT_PHYS_MAP (0x02)
2719 #define MPI_SAS_IOUNIT2_FLAGS_HOST_ASSIGNED_PHYS_MAP (0x07)
2721 #define MPI_SAS_IOUNIT2_FLAGS_RESERVE_ID_0_FOR_BOOT (0x10)
2722 #define MPI_SAS_IOUNIT2_FLAGS_DA_STARTING_SLOT (0x20)
2728 U32 MaxInvalidDwordCount; /* 0Ch */
2739 #define MPI_SASIOUNITPAGE3_PAGEVERSION (0x00)
2750 U16 EnclosureHandle; /* 0Ah */
2751 U64 SASAddress; /* 0Ch */
2764 #define MPI_SASEXPANDER0_PAGEVERSION (0x03)
2766 /* values for SAS Expander Page 0 DiscoveryStatus field */
2767 #define MPI_SAS_EXPANDER0_DS_LOOP_DETECTED (0x00000001)
2768 #define MPI_SAS_EXPANDER0_DS_UNADDRESSABLE_DEVICE (0x00000002)
2769 #define MPI_SAS_EXPANDER0_DS_MULTIPLE_PORTS (0x00000004)
2770 #define MPI_SAS_EXPANDER0_DS_EXPANDER_ERR (0x00000008)
2771 #define MPI_SAS_EXPANDER0_DS_SMP_TIMEOUT (0x00000010)
2772 #define MPI_SAS_EXPANDER0_DS_OUT_ROUTE_ENTRIES (0x00000020)
2773 #define MPI_SAS_EXPANDER0_DS_INDEX_NOT_EXIST (0x00000040)
2774 #define MPI_SAS_EXPANDER0_DS_SMP_FUNCTION_FAILED (0x00000080)
2775 #define MPI_SAS_EXPANDER0_DS_SMP_CRC_ERROR (0x00000100)
2776 #define MPI_SAS_EXPANDER0_DS_SUBTRACTIVE_LINK (0x00000200)
2777 #define MPI_SAS_EXPANDER0_DS_TABLE_LINK (0x00000400)
2778 #define MPI_SAS_EXPANDER0_DS_UNSUPPORTED_DEVICE (0x00000800)
2780 /* values for SAS Expander Page 0 Flags field */
2781 #define MPI_SAS_EXPANDER0_FLAGS_CONNECTOR_END_DEVICE (0x04)
2782 #define MPI_SAS_EXPANDER0_FLAGS_ROUTE_TABLE_CONFIG (0x02)
2783 #define MPI_SAS_EXPANDER0_FLAGS_CONFIG_IN_PROGRESS (0x01)
2790 U16 Reserved2; /* 0Ah */
2791 U8 NumPhys; /* 0Ch */
2792 U8 Phy; /* 0Dh */
2793 U16 NumTableEntriesProgrammed; /* 0Eh */
2810 #define MPI_SASEXPANDER1_PAGEVERSION (0x01)
2821 #define MPI_SAS_EXPANDER1_DISCINFO_BAD_PHY_DISABLED (0x04)
2822 #define MPI_SAS_EXPANDER1_DISCINFO_LINK_STATUS_CHANGE (0x02)
2823 #define MPI_SAS_EXPANDER1_DISCINFO_NO_ROUTING_ENTRIES (0x01)
2826 #define MPI_SAS_EXPANDER1_NEG_RATE_UNKNOWN (0x00)
2827 #define MPI_SAS_EXPANDER1_NEG_RATE_PHY_DISABLED (0x01)
2828 #define MPI_SAS_EXPANDER1_NEG_RATE_FAILED_NEGOTIATION (0x02)
2829 #define MPI_SAS_EXPANDER1_NEG_RATE_SATA_OOB_COMPLETE (0x03)
2830 #define MPI_SAS_EXPANDER1_NEG_RATE_1_5 (0x08)
2831 #define MPI_SAS_EXPANDER1_NEG_RATE_3_0 (0x09)
2841 U16 EnclosureHandle; /* 0Ah */
2842 U64 SASAddress; /* 0Ch */
2856 #define MPI_SASDEVICE0_PAGEVERSION (0x05)
2858 /* values for SAS Device Page 0 AccessStatus field */
2859 #define MPI_SAS_DEVICE0_ASTATUS_NO_ERRORS (0x00)
2860 #define MPI_SAS_DEVICE0_ASTATUS_SATA_INIT_FAILED (0x01)
2861 #define MPI_SAS_DEVICE0_ASTATUS_SATA_CAPABILITY_FAILED (0x02)
2862 #define MPI_SAS_DEVICE0_ASTATUS_SATA_AFFILIATION_CONFLICT (0x03)
2863 #define MPI_SAS_DEVICE0_ASTATUS_SATA_NEEDS_INITIALIZATION (0x04)
2865 #define MPI_SAS_DEVICE0_ASTATUS_SIF_UNKNOWN (0x10)
2866 #define MPI_SAS_DEVICE0_ASTATUS_SIF_AFFILIATION_CONFLICT (0x11)
2867 #define MPI_SAS_DEVICE0_ASTATUS_SIF_DIAG (0x12)
2868 #define MPI_SAS_DEVICE0_ASTATUS_SIF_IDENTIFICATION (0x13)
2869 #define MPI_SAS_DEVICE0_ASTATUS_SIF_CHECK_POWER (0x14)
2870 #define MPI_SAS_DEVICE0_ASTATUS_SIF_PIO_SN (0x15)
2871 #define MPI_SAS_DEVICE0_ASTATUS_SIF_MDMA_SN (0x16)
2872 #define MPI_SAS_DEVICE0_ASTATUS_SIF_UDMA_SN (0x17)
2873 #define MPI_SAS_DEVICE0_ASTATUS_SIF_ZONING_VIOLATION (0x18)
2874 #define MPI_SAS_DEVICE0_ASTATUS_SIF_NOT_ADDRESSABLE (0x19)
2875 #define MPI_SAS_DEVICE0_ASTATUS_SIF_MAX (0x1F)
2877 /* values for SAS Device Page 0 Flags field */
2878 #define MPI_SAS_DEVICE0_FLAGS_SATA_ASYNCHRONOUS_NOTIFY (0x0400)
2879 #define MPI_SAS_DEVICE0_FLAGS_SATA_SW_PRESERVE (0x0200)
2880 #define MPI_SAS_DEVICE0_FLAGS_UNSUPPORTED_DEVICE (0x0100)
2881 #define MPI_SAS_DEVICE0_FLAGS_SATA_48BIT_LBA_SUPPORTED (0x0080)
2882 #define MPI_SAS_DEVICE0_FLAGS_SATA_SMART_SUPPORTED (0x0040)
2883 #define MPI_SAS_DEVICE0_FLAGS_SATA_NCQ_SUPPORTED (0x0020)
2884 #define MPI_SAS_DEVICE0_FLAGS_SATA_FUA_SUPPORTED (0x0010)
2885 #define MPI_SAS_DEVICE0_FLAGS_PORT_SELECTOR_ATTACH (0x0008)
2886 #define MPI_SAS_DEVICE0_FLAGS_MAPPING_PERSISTENT (0x0004)
2887 #define MPI_SAS_DEVICE0_FLAGS_DEVICE_MAPPED (0x0002)
2888 #define MPI_SAS_DEVICE0_FLAGS_DEVICE_PRESENT (0x0001)
2890 /* see mpi_sas.h for values for SAS Device Page 0 DeviceInfo values */
2896 U64 SASAddress; /* 0Ch */
2905 #define MPI_SASDEVICE1_PAGEVERSION (0x00)
2915 #define MPI_SASDEVICE2_PAGEVERSION (0x01)
2918 #define MPI_SASDEVICE2_ENC_MAP_MASK_MISSING_COUNT (0x0000000F)
2919 #define MPI_SASDEVICE2_ENC_MAP_SHIFT_MISSING_COUNT (0)
2920 #define MPI_SASDEVICE2_ENC_MAP_MASK_NUM_SLOTS (0x000007F0)
2922 #define MPI_SASDEVICE2_ENC_MAP_MASK_START_INDEX (0x001FF800)
2933 U16 Reserved1; /* 0Ah */
2934 U64 SASAddress; /* 0Ch */
2947 #define MPI_SASPHY0_PAGEVERSION (0x01)
2949 /* values for SAS PHY Page 0 ProgrammedLinkRate field */
2950 #define MPI_SAS_PHY0_PRATE_MAX_RATE_MASK (0xF0)
2951 #define MPI_SAS_PHY0_PRATE_MAX_RATE_NOT_PROGRAMMABLE (0x00)
2952 #define MPI_SAS_PHY0_PRATE_MAX_RATE_1_5 (0x80)
2953 #define MPI_SAS_PHY0_PRATE_MAX_RATE_3_0 (0x90)
2954 #define MPI_SAS_PHY0_PRATE_MIN_RATE_MASK (0x0F)
2955 #define MPI_SAS_PHY0_PRATE_MIN_RATE_NOT_PROGRAMMABLE (0x00)
2956 #define MPI_SAS_PHY0_PRATE_MIN_RATE_1_5 (0x08)
2957 #define MPI_SAS_PHY0_PRATE_MIN_RATE_3_0 (0x09)
2959 /* values for SAS PHY Page 0 HwLinkRate field */
2960 #define MPI_SAS_PHY0_HWRATE_MAX_RATE_MASK (0xF0)
2961 #define MPI_SAS_PHY0_HWRATE_MAX_RATE_1_5 (0x80)
2962 #define MPI_SAS_PHY0_HWRATE_MAX_RATE_3_0 (0x90)
2963 #define MPI_SAS_PHY0_HWRATE_MIN_RATE_MASK (0x0F)
2964 #define MPI_SAS_PHY0_HWRATE_MIN_RATE_1_5 (0x08)
2965 #define MPI_SAS_PHY0_HWRATE_MIN_RATE_3_0 (0x09)
2967 /* values for SAS PHY Page 0 Flags field */
2968 #define MPI_SAS_PHY0_FLAGS_SGPIO_DIRECT_ATTACH_ENC (0x01)
2970 /* values for SAS PHY Page 0 PhyInfo field */
2971 #define MPI_SAS_PHY0_PHYINFO_PHY_VACANT (0x80000000)
2972 #define MPI_SAS_PHY0_PHYINFO_SATA_PORT_ACTIVE (0x00004000)
2973 #define MPI_SAS_PHY0_PHYINFO_SATA_PORT_SELECTOR (0x00002000)
2974 #define MPI_SAS_PHY0_PHYINFO_VIRTUAL_PHY (0x00001000)
2976 #define MPI_SAS_PHY0_PHYINFO_MASK_PARTIAL_PATHWAY_TIME (0x00000F00)
2979 #define MPI_SAS_PHY0_PHYINFO_MASK_ROUTING_ATTRIBUTE (0x000000F0)
2980 #define MPI_SAS_PHY0_PHYINFO_DIRECT_ROUTING (0x00000000)
2981 #define MPI_SAS_PHY0_PHYINFO_SUBTRACTIVE_ROUTING (0x00000010)
2982 #define MPI_SAS_PHY0_PHYINFO_TABLE_ROUTING (0x00000020)
2984 #define MPI_SAS_PHY0_PHYINFO_MASK_LINK_RATE (0x0000000F)
2985 #define MPI_SAS_PHY0_PHYINFO_UNKNOWN_LINK_RATE (0x00000000)
2986 #define MPI_SAS_PHY0_PHYINFO_PHY_DISABLED (0x00000001)
2987 #define MPI_SAS_PHY0_PHYINFO_NEGOTIATION_FAILED (0x00000002)
2988 #define MPI_SAS_PHY0_PHYINFO_SATA_OOB_COMPLETE (0x00000003)
2989 #define MPI_SAS_PHY0_PHYINFO_RATE_1_5 (0x00000008)
2990 #define MPI_SAS_PHY0_PHYINFO_RATE_3_0 (0x00000009)
2996 U32 InvalidDwordCount; /* 0Ch */
3003 #define MPI_SASPHY1_PAGEVERSION (0x00)
3013 U64 EnclosureLogicalID; /* 0Ch */
3027 #define MPI_SASENCLOSURE0_PAGEVERSION (0x01)
3029 /* values for SAS Enclosure Page 0 Flags field */
3030 #define MPI_SAS_ENCLS0_FLAGS_SEP_BUS_ID_VALID (0x0020)
3031 #define MPI_SAS_ENCLS0_FLAGS_START_BUS_ID_VALID (0x0010)
3033 #define MPI_SAS_ENCLS0_FLAGS_MNG_MASK (0x000F)
3034 #define MPI_SAS_ENCLS0_FLAGS_MNG_UNKNOWN (0x0000)
3035 #define MPI_SAS_ENCLS0_FLAGS_MNG_IOC_SES (0x0001)
3036 #define MPI_SAS_ENCLS0_FLAGS_MNG_IOC_SGPIO (0x0002)
3037 #define MPI_SAS_ENCLS0_FLAGS_MNG_EXP_SGPIO (0x0003)
3038 #define MPI_SAS_ENCLS0_FLAGS_MNG_SES_ENCLOSURE (0x0004)
3039 #define MPI_SAS_ENCLS0_FLAGS_MNG_IOC_GPIO (0x0005)
3052 #define MPI_LOG_0_LOG_DATA_LENGTH (0x1C)
3059 U16 LogEntryQualifier; /* 0Ah */
3060 U8 LogData[MPI_LOG_0_LOG_DATA_LENGTH]; /* 0Ch */
3064 /* values for Log Page 0 LogEntry LogEntryQualifier field */
3065 #define MPI_LOG_0_ENTRY_QUAL_ENTRY_UNUSED (0x0000)
3066 #define MPI_LOG_0_ENTRY_QUAL_POWER_ON_RESET (0x0001)
3072 U32 Reserved2; /* 0Ch */
3079 #define MPI_LOG_0_PAGEVERSION (0x01)