Go to the documentation of this file.
207 #define MPI2_CONFIG_PAGEATTR_READ_ONLY (0x00)
208 #define MPI2_CONFIG_PAGEATTR_CHANGEABLE (0x10)
209 #define MPI2_CONFIG_PAGEATTR_PERSISTENT (0x20)
210 #define MPI2_CONFIG_PAGEATTR_MASK (0xF0)
212 #define MPI2_CONFIG_PAGETYPE_IO_UNIT (0x00)
213 #define MPI2_CONFIG_PAGETYPE_IOC (0x01)
214 #define MPI2_CONFIG_PAGETYPE_BIOS (0x02)
215 #define MPI2_CONFIG_PAGETYPE_RAID_VOLUME (0x08)
216 #define MPI2_CONFIG_PAGETYPE_MANUFACTURING (0x09)
217 #define MPI2_CONFIG_PAGETYPE_RAID_PHYSDISK (0x0A)
218 #define MPI2_CONFIG_PAGETYPE_EXTENDED (0x0F)
219 #define MPI2_CONFIG_PAGETYPE_MASK (0x0F)
221 #define MPI2_CONFIG_TYPENUM_MASK (0x0FFF)
225 #define MPI2_CONFIG_EXTPAGETYPE_SAS_IO_UNIT (0x10)
226 #define MPI2_CONFIG_EXTPAGETYPE_SAS_EXPANDER (0x11)
227 #define MPI2_CONFIG_EXTPAGETYPE_SAS_DEVICE (0x12)
228 #define MPI2_CONFIG_EXTPAGETYPE_SAS_PHY (0x13)
229 #define MPI2_CONFIG_EXTPAGETYPE_LOG (0x14)
230 #define MPI2_CONFIG_EXTPAGETYPE_ENCLOSURE (0x15)
231 #define MPI2_CONFIG_EXTPAGETYPE_RAID_CONFIG (0x16)
232 #define MPI2_CONFIG_EXTPAGETYPE_DRIVER_MAPPING (0x17)
233 #define MPI2_CONFIG_EXTPAGETYPE_SAS_PORT (0x18)
234 #define MPI2_CONFIG_EXTPAGETYPE_ETHERNET (0x19)
235 #define MPI2_CONFIG_EXTPAGETYPE_EXT_MANUFACTURING (0x1A)
243 #define MPI2_RAID_VOLUME_PGAD_FORM_MASK (0xF0000000)
244 #define MPI2_RAID_VOLUME_PGAD_FORM_GET_NEXT_HANDLE (0x00000000)
245 #define MPI2_RAID_VOLUME_PGAD_FORM_HANDLE (0x10000000)
247 #define MPI2_RAID_VOLUME_PGAD_HANDLE_MASK (0x0000FFFF)
251 #define MPI2_PHYSDISK_PGAD_FORM_MASK (0xF0000000)
252 #define MPI2_PHYSDISK_PGAD_FORM_GET_NEXT_PHYSDISKNUM (0x00000000)
253 #define MPI2_PHYSDISK_PGAD_FORM_PHYSDISKNUM (0x10000000)
254 #define MPI2_PHYSDISK_PGAD_FORM_DEVHANDLE (0x20000000)
256 #define MPI2_PHYSDISK_PGAD_PHYSDISKNUM_MASK (0x000000FF)
257 #define MPI2_PHYSDISK_PGAD_DEVHANDLE_MASK (0x0000FFFF)
261 #define MPI2_SAS_EXPAND_PGAD_FORM_MASK (0xF0000000)
262 #define MPI2_SAS_EXPAND_PGAD_FORM_GET_NEXT_HNDL (0x00000000)
263 #define MPI2_SAS_EXPAND_PGAD_FORM_HNDL_PHY_NUM (0x10000000)
264 #define MPI2_SAS_EXPAND_PGAD_FORM_HNDL (0x20000000)
266 #define MPI2_SAS_EXPAND_PGAD_HANDLE_MASK (0x0000FFFF)
267 #define MPI2_SAS_EXPAND_PGAD_PHYNUM_MASK (0x00FF0000)
268 #define MPI2_SAS_EXPAND_PGAD_PHYNUM_SHIFT (16)
272 #define MPI2_SAS_DEVICE_PGAD_FORM_MASK (0xF0000000)
273 #define MPI2_SAS_DEVICE_PGAD_FORM_GET_NEXT_HANDLE (0x00000000)
274 #define MPI2_SAS_DEVICE_PGAD_FORM_HANDLE (0x20000000)
276 #define MPI2_SAS_DEVICE_PGAD_HANDLE_MASK (0x0000FFFF)
280 #define MPI2_SAS_PHY_PGAD_FORM_MASK (0xF0000000)
281 #define MPI2_SAS_PHY_PGAD_FORM_PHY_NUMBER (0x00000000)
282 #define MPI2_SAS_PHY_PGAD_FORM_PHY_TBL_INDEX (0x10000000)
284 #define MPI2_SAS_PHY_PGAD_PHY_NUMBER_MASK (0x000000FF)
285 #define MPI2_SAS_PHY_PGAD_PHY_TBL_INDEX_MASK (0x0000FFFF)
289 #define MPI2_SASPORT_PGAD_FORM_MASK (0xF0000000)
290 #define MPI2_SASPORT_PGAD_FORM_GET_NEXT_PORT (0x00000000)
291 #define MPI2_SASPORT_PGAD_FORM_PORT_NUM (0x10000000)
293 #define MPI2_SASPORT_PGAD_PORTNUMBER_MASK (0x00000FFF)
297 #define MPI2_SAS_ENCLOS_PGAD_FORM_MASK (0xF0000000)
298 #define MPI2_SAS_ENCLOS_PGAD_FORM_GET_NEXT_HANDLE (0x00000000)
299 #define MPI2_SAS_ENCLOS_PGAD_FORM_HANDLE (0x10000000)
301 #define MPI2_SAS_ENCLOS_PGAD_HANDLE_MASK (0x0000FFFF)
305 #define MPI2_RAID_PGAD_FORM_MASK (0xF0000000)
306 #define MPI2_RAID_PGAD_FORM_GET_NEXT_CONFIGNUM (0x00000000)
307 #define MPI2_RAID_PGAD_FORM_CONFIGNUM (0x10000000)
308 #define MPI2_RAID_PGAD_FORM_ACTIVE_CONFIG (0x20000000)
310 #define MPI2_RAID_PGAD_CONFIGNUM_MASK (0x000000FF)
314 #define MPI2_DPM_PGAD_FORM_MASK (0xF0000000)
315 #define MPI2_DPM_PGAD_FORM_ENTRY_RANGE (0x00000000)
317 #define MPI2_DPM_PGAD_ENTRY_COUNT_MASK (0x0FFF0000)
318 #define MPI2_DPM_PGAD_ENTRY_COUNT_SHIFT (16)
319 #define MPI2_DPM_PGAD_START_ENTRY_MASK (0x0000FFFF)
323 #define MPI2_ETHERNET_PGAD_FORM_MASK (0xF0000000)
324 #define MPI2_ETHERNET_PGAD_FORM_IF_NUM (0x00000000)
326 #define MPI2_ETHERNET_PGAD_IF_NUMBER_MASK (0x000000FF)
358 #define MPI2_CONFIG_ACTION_PAGE_HEADER (0x00)
359 #define MPI2_CONFIG_ACTION_PAGE_READ_CURRENT (0x01)
360 #define MPI2_CONFIG_ACTION_PAGE_WRITE_CURRENT (0x02)
361 #define MPI2_CONFIG_ACTION_PAGE_DEFAULT (0x03)
362 #define MPI2_CONFIG_ACTION_PAGE_WRITE_NVRAM (0x04)
363 #define MPI2_CONFIG_ACTION_PAGE_READ_DEFAULT (0x05)
364 #define MPI2_CONFIG_ACTION_PAGE_READ_NVRAM (0x06)
365 #define MPI2_CONFIG_ACTION_PAGE_GET_CHANGEABLE (0x07)
402 #define MPI2_MFGPAGE_VENDORID_LSI (0x1000)
405 #define MPI2_MFGPAGE_DEVID_SAS2004 (0x0070)
406 #define MPI2_MFGPAGE_DEVID_SAS2008 (0x0072)
407 #define MPI2_MFGPAGE_DEVID_SAS2108_1 (0x0074)
408 #define MPI2_MFGPAGE_DEVID_SAS2108_2 (0x0076)
409 #define MPI2_MFGPAGE_DEVID_SAS2108_3 (0x0077)
410 #define MPI2_MFGPAGE_DEVID_SAS2116_1 (0x0064)
411 #define MPI2_MFGPAGE_DEVID_SAS2116_2 (0x0065)
413 #define MPI2_MFGPAGE_DEVID_SSS6200 (0x007E)
415 #define MPI2_MFGPAGE_DEVID_SAS2208_1 (0x0080)
416 #define MPI2_MFGPAGE_DEVID_SAS2208_2 (0x0081)
417 #define MPI2_MFGPAGE_DEVID_SAS2208_3 (0x0082)
418 #define MPI2_MFGPAGE_DEVID_SAS2208_4 (0x0083)
419 #define MPI2_MFGPAGE_DEVID_SAS2208_5 (0x0084)
420 #define MPI2_MFGPAGE_DEVID_SAS2208_6 (0x0085)
421 #define MPI2_MFGPAGE_DEVID_SAS2308_1 (0x0086)
422 #define MPI2_MFGPAGE_DEVID_SAS2308_2 (0x0087)
423 #define MPI2_MFGPAGE_DEVID_SAS2308_3 (0x006E)
442 #define MPI2_MANUFACTURING0_PAGEVERSION (0x00)
455 #define MPI2_MANUFACTURING1_PAGEVERSION (0x00)
473 #ifndef MPI2_MAN_PAGE_2_HW_SETTINGS_WORDS
474 #define MPI2_MAN_PAGE_2_HW_SETTINGS_WORDS (1)
486 #define MPI2_MANUFACTURING2_PAGEVERSION (0x00)
495 #ifndef MPI2_MAN_PAGE_3_INFO_WORDS
496 #define MPI2_MAN_PAGE_3_INFO_WORDS (1)
508 #define MPI2_MANUFACTURING3_PAGEVERSION (0x00)
524 #define MPI2_MANPAGE4_MASK_POWERSAVE_MODE (0x03)
525 #define MPI2_MANPAGE4_POWERSAVE_MODE_DISABLED (0x00)
526 #define MPI2_MANPAGE4_CUSTOM_POWERSAVE_MODE (0x01)
527 #define MPI2_MANPAGE4_FULL_POWERSAVE_MODE (0x02)
556 #define MPI2_MANUFACTURING4_PAGEVERSION (0x0A)
559 #define MPI2_MANPAGE4_METADATA_SIZE_MASK (0x00030000)
560 #define MPI2_MANPAGE4_METADATA_512MB (0x00000000)
562 #define MPI2_MANPAGE4_MIX_SSD_SAS_SATA (0x00008000)
563 #define MPI2_MANPAGE4_MIX_SSD_AND_NON_SSD (0x00004000)
564 #define MPI2_MANPAGE4_HIDE_PHYSDISK_NON_IR (0x00002000)
566 #define MPI2_MANPAGE4_MASK_PHYSDISK_COERCION (0x00001C00)
567 #define MPI2_MANPAGE4_PHYSDISK_COERCION_1GB (0x00000000)
568 #define MPI2_MANPAGE4_PHYSDISK_128MB_COERCION (0x00000400)
569 #define MPI2_MANPAGE4_PHYSDISK_ADAPTIVE_COERCION (0x00000800)
570 #define MPI2_MANPAGE4_PHYSDISK_ZERO_COERCION (0x00000C00)
572 #define MPI2_MANPAGE4_MASK_BAD_BLOCK_MARKING (0x00000300)
573 #define MPI2_MANPAGE4_DEFAULT_BAD_BLOCK_MARKING (0x00000000)
574 #define MPI2_MANPAGE4_TABLE_BAD_BLOCK_MARKING (0x00000100)
575 #define MPI2_MANPAGE4_WRITE_LONG_BAD_BLOCK_MARKING (0x00000200)
577 #define MPI2_MANPAGE4_FORCE_OFFLINE_FAILOVER (0x00000080)
578 #define MPI2_MANPAGE4_RAID10_DISABLE (0x00000040)
579 #define MPI2_MANPAGE4_RAID1E_DISABLE (0x00000020)
580 #define MPI2_MANPAGE4_RAID1_DISABLE (0x00000010)
581 #define MPI2_MANPAGE4_RAID0_DISABLE (0x00000008)
582 #define MPI2_MANPAGE4_IR_MODEPAGE8_DISABLE (0x00000004)
583 #define MPI2_MANPAGE4_IM_RESYNC_CACHE_ENABLE (0x00000002)
584 #define MPI2_MANPAGE4_IR_NO_MIX_SAS_SATA (0x00000001)
593 #ifndef MPI2_MAN_PAGE_5_PHY_ENTRIES
594 #define MPI2_MAN_PAGE_5_PHY_ENTRIES (1)
617 #define MPI2_MANUFACTURING5_PAGEVERSION (0x03)
630 #define MPI2_MANUFACTURING6_PAGEVERSION (0x00)
647 #define MPI2_MANPAGE7_PINOUT_LANE_MASK (0x0000FF00)
648 #define MPI2_MANPAGE7_PINOUT_LANE_SHIFT (8)
650 #define MPI2_MANPAGE7_PINOUT_TYPE_MASK (0x000000FF)
651 #define MPI2_MANPAGE7_PINOUT_TYPE_UNKNOWN (0x00)
652 #define MPI2_MANPAGE7_PINOUT_SATA_SINGLE (0x01)
653 #define MPI2_MANPAGE7_PINOUT_SFF_8482 (0x02)
654 #define MPI2_MANPAGE7_PINOUT_SFF_8486 (0x03)
655 #define MPI2_MANPAGE7_PINOUT_SFF_8484 (0x04)
656 #define MPI2_MANPAGE7_PINOUT_SFF_8087 (0x05)
657 #define MPI2_MANPAGE7_PINOUT_SFF_8643_4I (0x06)
658 #define MPI2_MANPAGE7_PINOUT_SFF_8643_8I (0x07)
659 #define MPI2_MANPAGE7_PINOUT_SFF_8470 (0x08)
660 #define MPI2_MANPAGE7_PINOUT_SFF_8088 (0x09)
661 #define MPI2_MANPAGE7_PINOUT_SFF_8644_4X (0x0A)
662 #define MPI2_MANPAGE7_PINOUT_SFF_8644_8X (0x0B)
663 #define MPI2_MANPAGE7_PINOUT_SFF_8644_16X (0x0C)
664 #define MPI2_MANPAGE7_PINOUT_SFF_8436 (0x0D)
667 #define MPI2_MANPAGE7_LOCATION_UNKNOWN (0x01)
668 #define MPI2_MANPAGE7_LOCATION_INTERNAL (0x02)
669 #define MPI2_MANPAGE7_LOCATION_EXTERNAL (0x04)
670 #define MPI2_MANPAGE7_LOCATION_SWITCHABLE (0x08)
671 #define MPI2_MANPAGE7_LOCATION_AUTO (0x10)
672 #define MPI2_MANPAGE7_LOCATION_NOT_PRESENT (0x20)
673 #define MPI2_MANPAGE7_LOCATION_NOT_CONNECTED (0x80)
679 #ifndef MPI2_MANPAGE7_CONNECTOR_INFO_MAX
680 #define MPI2_MANPAGE7_CONNECTOR_INFO_MAX (1)
698 #define MPI2_MANUFACTURING7_PAGEVERSION (0x01)
701 #define MPI2_MANPAGE7_FLAG_USE_SLOT_INFO (0x00000001)
717 #define MPI2_MANUFACTURING8_PAGEVERSION (0x00)
718 #define MPI2_MANUFACTURING9_PAGEVERSION (0x00)
719 #define MPI2_MANUFACTURING10_PAGEVERSION (0x00)
720 #define MPI2_MANUFACTURING11_PAGEVERSION (0x00)
721 #define MPI2_MANUFACTURING12_PAGEVERSION (0x00)
722 #define MPI2_MANUFACTURING13_PAGEVERSION (0x00)
723 #define MPI2_MANUFACTURING14_PAGEVERSION (0x00)
724 #define MPI2_MANUFACTURING15_PAGEVERSION (0x00)
725 #define MPI2_MANUFACTURING16_PAGEVERSION (0x00)
726 #define MPI2_MANUFACTURING17_PAGEVERSION (0x00)
727 #define MPI2_MANUFACTURING18_PAGEVERSION (0x00)
728 #define MPI2_MANUFACTURING19_PAGEVERSION (0x00)
729 #define MPI2_MANUFACTURING20_PAGEVERSION (0x00)
730 #define MPI2_MANUFACTURING21_PAGEVERSION (0x00)
731 #define MPI2_MANUFACTURING22_PAGEVERSION (0x00)
732 #define MPI2_MANUFACTURING23_PAGEVERSION (0x00)
733 #define MPI2_MANUFACTURING24_PAGEVERSION (0x00)
734 #define MPI2_MANUFACTURING25_PAGEVERSION (0x00)
735 #define MPI2_MANUFACTURING26_PAGEVERSION (0x00)
736 #define MPI2_MANUFACTURING27_PAGEVERSION (0x00)
737 #define MPI2_MANUFACTURING28_PAGEVERSION (0x00)
738 #define MPI2_MANUFACTURING29_PAGEVERSION (0x00)
739 #define MPI2_MANUFACTURING30_PAGEVERSION (0x00)
740 #define MPI2_MANUFACTURING31_PAGEVERSION (0x00)
758 #define MPI2_IOUNITPAGE0_PAGEVERSION (0x02)
770 #define MPI2_IOUNITPAGE1_PAGEVERSION (0x04)
773 #define MPI2_IOUNITPAGE1_ENABLE_HOST_BASED_DISCOVERY (0x00000800)
774 #define MPI2_IOUNITPAGE1_MASK_SATA_WRITE_CACHE (0x00000600)
775 #define MPI2_IOUNITPAGE1_SATA_WRITE_CACHE_SHIFT (9)
776 #define MPI2_IOUNITPAGE1_ENABLE_SATA_WRITE_CACHE (0x00000000)
777 #define MPI2_IOUNITPAGE1_DISABLE_SATA_WRITE_CACHE (0x00000200)
778 #define MPI2_IOUNITPAGE1_UNCHANGED_SATA_WRITE_CACHE (0x00000400)
779 #define MPI2_IOUNITPAGE1_NATIVE_COMMAND_Q_DISABLE (0x00000100)
780 #define MPI2_IOUNITPAGE1_DISABLE_IR (0x00000040)
781 #define MPI2_IOUNITPAGE1_DISABLE_TASK_SET_FULL_HANDLING (0x00000020)
782 #define MPI2_IOUNITPAGE1_IR_USE_STATIC_VOLUME_ID (0x00000004)
791 #ifndef MPI2_IO_UNIT_PAGE_3_GPIO_VAL_MAX
792 #define MPI2_IO_UNIT_PAGE_3_GPIO_VAL_MAX (1)
805 #define MPI2_IOUNITPAGE3_PAGEVERSION (0x01)
808 #define MPI2_IOUNITPAGE3_GPIO_FUNCTION_MASK (0xFFFC)
809 #define MPI2_IOUNITPAGE3_GPIO_FUNCTION_SHIFT (2)
810 #define MPI2_IOUNITPAGE3_GPIO_SETTING_OFF (0x0000)
811 #define MPI2_IOUNITPAGE3_GPIO_SETTING_ON (0x0001)
820 #ifndef MPI2_IOUNITPAGE5_DMAENGINE_ENTRIES
821 #define MPI2_IOUNITPAGE5_DMAENGINE_ENTRIES (1)
841 #define MPI2_IOUNITPAGE5_PAGEVERSION (0x00)
844 #define MPI2_IOUNITPAGE5_DMA_CAP_MASK_MAX_REQUESTS (0xFF00)
845 #define MPI2_IOUNITPAGE5_DMA_CAP_SHIFT_MAX_REQUESTS (16)
847 #define MPI2_IOUNITPAGE5_DMA_CAP_EEDP (0x0008)
848 #define MPI2_IOUNITPAGE5_DMA_CAP_PARITY_GENERATION (0x0004)
849 #define MPI2_IOUNITPAGE5_DMA_CAP_HASHING (0x0002)
850 #define MPI2_IOUNITPAGE5_DMA_CAP_ENCRYPTION (0x0001)
867 #define MPI2_IOUNITPAGE6_PAGEVERSION (0x00)
870 #define MPI2_IOUNITPAGE6_FLAGS_ENABLE_RAID_ACCELERATOR (0x0001)
891 #define MPI2_IOUNITPAGE7_PAGEVERSION (0x02)
894 #define MPI2_IOUNITPAGE7_PCIE_WIDTH_X1 (0x01)
895 #define MPI2_IOUNITPAGE7_PCIE_WIDTH_X2 (0x02)
896 #define MPI2_IOUNITPAGE7_PCIE_WIDTH_X4 (0x04)
897 #define MPI2_IOUNITPAGE7_PCIE_WIDTH_X8 (0x08)
900 #define MPI2_IOUNITPAGE7_PCIE_SPEED_2_5_GBPS (0x00)
901 #define MPI2_IOUNITPAGE7_PCIE_SPEED_5_0_GBPS (0x01)
902 #define MPI2_IOUNITPAGE7_PCIE_SPEED_8_0_GBPS (0x02)
905 #define MPI2_IOUNITPAGE7_PSTATE_MASK_SECOND (0x0000000F)
906 #define MPI2_IOUNITPAGE7_PSTATE_SHIFT_SECOND (0)
908 #define MPI2_IOUNITPAGE7_PSTATE_NOT_PRESENT (0x00)
909 #define MPI2_IOUNITPAGE7_PSTATE_DISABLED (0x01)
910 #define MPI2_IOUNITPAGE7_PSTATE_ENABLED (0x02)
913 #define MPI2_IOUNITPAGE7_PMCAP_12_5_PCT_IOCSPEED (0x00000400)
914 #define MPI2_IOUNITPAGE7_PMCAP_25_0_PCT_IOCSPEED (0x00000200)
915 #define MPI2_IOUNITPAGE7_PMCAP_50_0_PCT_IOCSPEED (0x00000100)
916 #define MPI2_IOUNITPAGE7_PMCAP_PCIE_WIDTH_CHANGE (0x00000008)
917 #define MPI2_IOUNITPAGE7_PMCAP_PCIE_SPEED_CHANGE (0x00000004)
920 #define MPI2_IOUNITPAGE7_IOC_TEMP_NOT_PRESENT (0x00)
921 #define MPI2_IOUNITPAGE7_IOC_TEMP_FAHRENHEIT (0x01)
922 #define MPI2_IOUNITPAGE7_IOC_TEMP_CELSIUS (0x02)
925 #define MPI2_IOUNITPAGE7_IOC_SPEED_FULL (0x01)
926 #define MPI2_IOUNITPAGE7_IOC_SPEED_HALF (0x02)
927 #define MPI2_IOUNITPAGE7_IOC_SPEED_QUARTER (0x04)
928 #define MPI2_IOUNITPAGE7_IOC_SPEED_EIGHTH (0x08)
931 #define MPI2_IOUNITPAGE7_BOARD_TEMP_NOT_PRESENT (0x00)
932 #define MPI2_IOUNITPAGE7_BOARD_TEMP_FAHRENHEIT (0x01)
933 #define MPI2_IOUNITPAGE7_BOARD_TEMP_CELSIUS (0x02)
937 #define MPI2_IOUNIT8_NUM_THRESHOLDS (4)
951 #define MPI2_IOUNIT8_SENSOR_FLAGS_T3_ENABLE (0x0008)
952 #define MPI2_IOUNIT8_SENSOR_FLAGS_T2_ENABLE (0x0004)
953 #define MPI2_IOUNIT8_SENSOR_FLAGS_T1_ENABLE (0x0002)
954 #define MPI2_IOUNIT8_SENSOR_FLAGS_T0_ENABLE (0x0001)
960 #ifndef MPI2_IOUNITPAGE8_SENSOR_ENTRIES
961 #define MPI2_IOUNITPAGE8_SENSOR_ENTRIES (1)
976 #define MPI2_IOUNITPAGE8_PAGEVERSION (0x00)
993 #define MPI2_IOUNIT9_SENSOR_FLAGS_TEMP_VALID (0x01)
999 #ifndef MPI2_IOUNITPAGE9_SENSOR_ENTRIES
1000 #define MPI2_IOUNITPAGE9_SENSOR_ENTRIES (1)
1015 #define MPI2_IOUNITPAGE9_PAGEVERSION (0x00)
1031 #ifndef MPI2_IOUNITPAGE10_FUNCTION_ENTRIES
1032 #define MPI2_IOUNITPAGE10_FUNCTION_ENTRIES (1)
1047 #define MPI2_IOUNITPAGE10_PAGEVERSION (0x01)
1073 #define MPI2_IOCPAGE0_PAGEVERSION (0x02)
1092 #define MPI2_IOCPAGE1_PAGEVERSION (0x05)
1095 #define MPI2_IOCPAGE1_REPLY_COALESCING (0x00000001)
1097 #define MPI2_IOCPAGE1_PCISLOTNUM_UNKNOWN (0xFF)
1098 #define MPI2_IOCPAGE1_PCIBUSNUM_UNKNOWN (0xFF)
1099 #define MPI2_IOCPAGE1_PCIDOMAIN_UNKNOWN (0xFF)
1136 #define MPI2_IOCPAGE6_PAGEVERSION (0x05)
1139 #define MPI2_IOCPAGE6_CAP_FLAGS_4K_SECTORS_SUPPORT (0x00000020)
1140 #define MPI2_IOCPAGE6_CAP_FLAGS_RAID10_SUPPORT (0x00000010)
1141 #define MPI2_IOCPAGE6_CAP_FLAGS_RAID1_SUPPORT (0x00000008)
1142 #define MPI2_IOCPAGE6_CAP_FLAGS_RAID1E_SUPPORT (0x00000004)
1143 #define MPI2_IOCPAGE6_CAP_FLAGS_RAID0_SUPPORT (0x00000002)
1144 #define MPI2_IOCPAGE6_CAP_FLAGS_GLOBAL_HOT_SPARE (0x00000001)
1149 #define MPI2_IOCPAGE7_EVENTMASK_WORDS (4)
1162 #define MPI2_IOCPAGE7_PAGEVERSION (0x02)
1183 #define MPI2_IOCPAGE8_PAGEVERSION (0x00)
1186 #define MPI2_IOCPAGE8_FLAGS_DA_START_SLOT_1 (0x00000020)
1187 #define MPI2_IOCPAGE8_FLAGS_RESERVED_TARGETID_0 (0x00000010)
1189 #define MPI2_IOCPAGE8_FLAGS_MASK_MAPPING_MODE (0x0000000E)
1190 #define MPI2_IOCPAGE8_FLAGS_DEVICE_PERSISTENCE_MAPPING (0x00000000)
1191 #define MPI2_IOCPAGE8_FLAGS_ENCLOSURE_SLOT_MAPPING (0x00000002)
1193 #define MPI2_IOCPAGE8_FLAGS_DISABLE_PERSISTENT_MAPPING (0x00000001)
1194 #define MPI2_IOCPAGE8_FLAGS_ENABLE_PERSISTENT_MAPPING (0x00000000)
1197 #define MPI2_IOCPAGE8_IRFLAGS_MASK_VOLUME_MAPPING_MODE (0x00000003)
1198 #define MPI2_IOCPAGE8_IRFLAGS_LOW_VOLUME_MAPPING (0x00000000)
1199 #define MPI2_IOCPAGE8_IRFLAGS_HIGH_VOLUME_MAPPING (0x00000001)
1224 #define MPI2_BIOSPAGE1_PAGEVERSION (0x05)
1227 #define MPI2_BIOSPAGE1_OPTIONS_MASK_UEFI_HII_REGISTRATION (0x00000006)
1228 #define MPI2_BIOSPAGE1_OPTIONS_ENABLE_UEFI_HII (0x00000000)
1229 #define MPI2_BIOSPAGE1_OPTIONS_DISABLE_UEFI_HII (0x00000002)
1230 #define MPI2_BIOSPAGE1_OPTIONS_VERSION_CHECK_UEFI_HII (0x00000004)
1232 #define MPI2_BIOSPAGE1_OPTIONS_DISABLE_BIOS (0x00000001)
1235 #define MPI2_BIOSPAGE1_IOCSET_MASK_BOOT_PREFERENCE (0x00030000)
1236 #define MPI2_BIOSPAGE1_IOCSET_ENCLOSURE_SLOT_BOOT (0x00000000)
1237 #define MPI2_BIOSPAGE1_IOCSET_SAS_ADDRESS_BOOT (0x00010000)
1239 #define MPI2_BIOSPAGE1_IOCSET_MASK_RM_SETTING (0x000000C0)
1240 #define MPI2_BIOSPAGE1_IOCSET_NONE_RM_SETTING (0x00000000)
1241 #define MPI2_BIOSPAGE1_IOCSET_BOOT_RM_SETTING (0x00000040)
1242 #define MPI2_BIOSPAGE1_IOCSET_MEDIA_RM_SETTING (0x00000080)
1244 #define MPI2_BIOSPAGE1_IOCSET_MASK_ADAPTER_SUPPORT (0x00000030)
1245 #define MPI2_BIOSPAGE1_IOCSET_NO_SUPPORT (0x00000000)
1246 #define MPI2_BIOSPAGE1_IOCSET_BIOS_SUPPORT (0x00000010)
1247 #define MPI2_BIOSPAGE1_IOCSET_OS_SUPPORT (0x00000020)
1248 #define MPI2_BIOSPAGE1_IOCSET_ALL_SUPPORT (0x00000030)
1250 #define MPI2_BIOSPAGE1_IOCSET_ALTERNATE_CHS (0x00000008)
1253 #define MPI2_BIOSPAGE1_DEVSET_DISABLE_SMART_POLLING (0x00000010)
1254 #define MPI2_BIOSPAGE1_DEVSET_DISABLE_SEQ_LUN (0x00000008)
1255 #define MPI2_BIOSPAGE1_DEVSET_DISABLE_RM_LUN (0x00000004)
1256 #define MPI2_BIOSPAGE1_DEVSET_DISABLE_NON_RM_LUN (0x00000002)
1257 #define MPI2_BIOSPAGE1_DEVSET_DISABLE_OTHER_LUN (0x00000001)
1260 #define MPI2_BIOSPAGE1_UEFI_VER_MAJOR_MASK (0xFF00)
1261 #define MPI2_BIOSPAGE1_UEFI_VER_MAJOR_SHIFT (8)
1262 #define MPI2_BIOSPAGE1_UEFI_VER_MINOR_MASK (0x00FF)
1263 #define MPI2_BIOSPAGE1_UEFI_VER_MINOR_SHIFT (0)
1344 #define MPI2_BIOSPAGE2_PAGEVERSION (0x04)
1347 #define MPI2_BIOSPAGE2_FORM_MASK (0x0F)
1348 #define MPI2_BIOSPAGE2_FORM_NO_DEVICE_SPECIFIED (0x00)
1349 #define MPI2_BIOSPAGE2_FORM_SAS_WWID (0x05)
1350 #define MPI2_BIOSPAGE2_FORM_ENCLOSURE_SLOT (0x06)
1351 #define MPI2_BIOSPAGE2_FORM_DEVICE_NAME (0x07)
1364 #define MPI2_ADAPTER_INFO_FLAGS_EMBEDDED (0x0001)
1365 #define MPI2_ADAPTER_INFO_FLAGS_INIT_STATUS (0x0002)
1377 #define MPI2_BIOSPAGE3_PAGEVERSION (0x00)
1380 #define MPI2_BIOSPAGE3_FLAGS_PAUSE_ON_ERROR (0x00000002)
1381 #define MPI2_BIOSPAGE3_FLAGS_VERBOSE_ENABLE (0x00000004)
1382 #define MPI2_BIOSPAGE3_FLAGS_HOOK_INT_40_DISABLE (0x00000010)
1384 #define MPI2_BIOSPAGE3_FLAGS_DEV_LIST_DISPLAY_MASK (0x000000E0)
1385 #define MPI2_BIOSPAGE3_FLAGS_INSTALLED_DEV_DISPLAY (0x00000000)
1386 #define MPI2_BIOSPAGE3_FLAGS_ADAPTER_DISPLAY (0x00000020)
1387 #define MPI2_BIOSPAGE3_FLAGS_ADAPTER_DEV_DISPLAY (0x00000040)
1396 #ifndef MPI2_BIOS_PAGE_4_PHY_ENTRIES
1397 #define MPI2_BIOS_PAGE_4_PHY_ENTRIES (1)
1417 #define MPI2_BIOSPAGE4_PAGEVERSION (0x01)
1436 #define MPI2_RAIDVOL0_PHYSDISK_PRIMARY (0x01)
1437 #define MPI2_RAIDVOL0_PHYSDISK_SECONDARY (0x02)
1448 #define MPI2_RAID_HOT_SPARE_POOL_0 (0x01)
1449 #define MPI2_RAID_HOT_SPARE_POOL_1 (0x02)
1450 #define MPI2_RAID_HOT_SPARE_POOL_2 (0x04)
1451 #define MPI2_RAID_HOT_SPARE_POOL_3 (0x08)
1452 #define MPI2_RAID_HOT_SPARE_POOL_4 (0x10)
1453 #define MPI2_RAID_HOT_SPARE_POOL_5 (0x20)
1454 #define MPI2_RAID_HOT_SPARE_POOL_6 (0x40)
1455 #define MPI2_RAID_HOT_SPARE_POOL_7 (0x80)
1458 #define MPI2_RAIDVOL0_SETTING_USE_PRODUCT_ID_SUFFIX (0x0008)
1459 #define MPI2_RAIDVOL0_SETTING_AUTO_CONFIG_HSWAP_DISABLE (0x0004)
1461 #define MPI2_RAIDVOL0_SETTING_MASK_WRITE_CACHING (0x0003)
1462 #define MPI2_RAIDVOL0_SETTING_UNCHANGED (0x0000)
1463 #define MPI2_RAIDVOL0_SETTING_DISABLE_WRITE_CACHING (0x0001)
1464 #define MPI2_RAIDVOL0_SETTING_ENABLE_WRITE_CACHING (0x0002)
1470 #ifndef MPI2_RAID_VOL_PAGE_0_PHYSDISK_MAX
1471 #define MPI2_RAID_VOL_PAGE_0_PHYSDISK_MAX (1)
1497 #define MPI2_RAIDVOLPAGE0_PAGEVERSION (0x0A)
1500 #define MPI2_RAID_VOL_STATE_MISSING (0x00)
1501 #define MPI2_RAID_VOL_STATE_FAILED (0x01)
1502 #define MPI2_RAID_VOL_STATE_INITIALIZING (0x02)
1503 #define MPI2_RAID_VOL_STATE_ONLINE (0x03)
1504 #define MPI2_RAID_VOL_STATE_DEGRADED (0x04)
1505 #define MPI2_RAID_VOL_STATE_OPTIMAL (0x05)
1508 #define MPI2_RAID_VOL_TYPE_RAID0 (0x00)
1509 #define MPI2_RAID_VOL_TYPE_RAID1E (0x01)
1510 #define MPI2_RAID_VOL_TYPE_RAID1 (0x02)
1511 #define MPI2_RAID_VOL_TYPE_RAID10 (0x05)
1512 #define MPI2_RAID_VOL_TYPE_UNKNOWN (0xFF)
1515 #define MPI2_RAIDVOL0_STATUS_FLAG_PENDING_RESYNC (0x02000000)
1516 #define MPI2_RAIDVOL0_STATUS_FLAG_BACKG_INIT_PENDING (0x01000000)
1517 #define MPI2_RAIDVOL0_STATUS_FLAG_MDC_PENDING (0x00800000)
1518 #define MPI2_RAIDVOL0_STATUS_FLAG_USER_CONSIST_PENDING (0x00400000)
1519 #define MPI2_RAIDVOL0_STATUS_FLAG_MAKE_DATA_CONSISTENT (0x00200000)
1520 #define MPI2_RAIDVOL0_STATUS_FLAG_DATA_SCRUB (0x00100000)
1521 #define MPI2_RAIDVOL0_STATUS_FLAG_CONSISTENCY_CHECK (0x00080000)
1522 #define MPI2_RAIDVOL0_STATUS_FLAG_CAPACITY_EXPANSION (0x00040000)
1523 #define MPI2_RAIDVOL0_STATUS_FLAG_BACKGROUND_INIT (0x00020000)
1524 #define MPI2_RAIDVOL0_STATUS_FLAG_RESYNC_IN_PROGRESS (0x00010000)
1525 #define MPI2_RAIDVOL0_STATUS_FLAG_VOL_NOT_CONSISTENT (0x00000080)
1526 #define MPI2_RAIDVOL0_STATUS_FLAG_OCE_ALLOWED (0x00000040)
1527 #define MPI2_RAIDVOL0_STATUS_FLAG_BGI_COMPLETE (0x00000020)
1528 #define MPI2_RAIDVOL0_STATUS_FLAG_1E_OFFSET_MIRROR (0x00000000)
1529 #define MPI2_RAIDVOL0_STATUS_FLAG_1E_ADJACENT_MIRROR (0x00000010)
1530 #define MPI2_RAIDVOL0_STATUS_FLAG_BAD_BLOCK_TABLE_FULL (0x00000008)
1531 #define MPI2_RAIDVOL0_STATUS_FLAG_VOLUME_INACTIVE (0x00000004)
1532 #define MPI2_RAIDVOL0_STATUS_FLAG_QUIESCED (0x00000002)
1533 #define MPI2_RAIDVOL0_STATUS_FLAG_ENABLED (0x00000001)
1536 #define MPI2_RAIDVOL0_SUPPORT_SOLID_STATE_DISKS (0x08)
1537 #define MPI2_RAIDVOL0_SUPPORT_HARD_DISKS (0x04)
1538 #define MPI2_RAIDVOL0_SUPPORT_SAS_PROTOCOL (0x02)
1539 #define MPI2_RAIDVOL0_SUPPORT_SATA_PROTOCOL (0x01)
1542 #define MPI2_RAIDVOLPAGE0_UNKNOWN_INACTIVE (0x00)
1543 #define MPI2_RAIDVOLPAGE0_STALE_METADATA_INACTIVE (0x01)
1544 #define MPI2_RAIDVOLPAGE0_FOREIGN_VOLUME_INACTIVE (0x02)
1545 #define MPI2_RAIDVOLPAGE0_INSUFFICIENT_RESOURCE_INACTIVE (0x03)
1546 #define MPI2_RAIDVOLPAGE0_CLONE_VOLUME_INACTIVE (0x04)
1547 #define MPI2_RAIDVOLPAGE0_INSUFFICIENT_METADATA_INACTIVE (0x05)
1548 #define MPI2_RAIDVOLPAGE0_PREVIOUSLY_DELETED (0x06)
1566 #define MPI2_RAIDVOLPAGE1_PAGEVERSION (0x03)
1620 #define MPI2_RAIDPHYSDISKPAGE0_PAGEVERSION (0x05)
1623 #define MPI2_RAID_PD_STATE_NOT_CONFIGURED (0x00)
1624 #define MPI2_RAID_PD_STATE_NOT_COMPATIBLE (0x01)
1625 #define MPI2_RAID_PD_STATE_OFFLINE (0x02)
1626 #define MPI2_RAID_PD_STATE_ONLINE (0x03)
1627 #define MPI2_RAID_PD_STATE_HOT_SPARE (0x04)
1628 #define MPI2_RAID_PD_STATE_DEGRADED (0x05)
1629 #define MPI2_RAID_PD_STATE_REBUILDING (0x06)
1630 #define MPI2_RAID_PD_STATE_OPTIMAL (0x07)
1633 #define MPI2_PHYSDISK0_ONLINE (0x00)
1634 #define MPI2_PHYSDISK0_OFFLINE_MISSING (0x01)
1635 #define MPI2_PHYSDISK0_OFFLINE_FAILED (0x03)
1636 #define MPI2_PHYSDISK0_OFFLINE_INITIALIZING (0x04)
1637 #define MPI2_PHYSDISK0_OFFLINE_REQUESTED (0x05)
1638 #define MPI2_PHYSDISK0_OFFLINE_FAILED_REQUESTED (0x06)
1639 #define MPI2_PHYSDISK0_OFFLINE_OTHER (0xFF)
1642 #define MPI2_PHYSDISK0_COMPATIBLE (0x00)
1643 #define MPI2_PHYSDISK0_INCOMPATIBLE_PROTOCOL (0x01)
1644 #define MPI2_PHYSDISK0_INCOMPATIBLE_BLOCKSIZE (0x02)
1645 #define MPI2_PHYSDISK0_INCOMPATIBLE_MAX_LBA (0x03)
1646 #define MPI2_PHYSDISK0_INCOMPATIBLE_SATA_EXTENDED_CMD (0x04)
1647 #define MPI2_PHYSDISK0_INCOMPATIBLE_REMOVEABLE_MEDIA (0x05)
1648 #define MPI2_PHYSDISK0_INCOMPATIBLE_MEDIA_TYPE (0x06)
1649 #define MPI2_PHYSDISK0_INCOMPATIBLE_UNKNOWN (0xFF)
1652 #define MPI2_PHYSDISK0_ATTRIB_MEDIA_MASK (0x0C)
1653 #define MPI2_PHYSDISK0_ATTRIB_SOLID_STATE_DRIVE (0x08)
1654 #define MPI2_PHYSDISK0_ATTRIB_HARD_DISK_DRIVE (0x04)
1656 #define MPI2_PHYSDISK0_ATTRIB_PROTOCOL_MASK (0x03)
1657 #define MPI2_PHYSDISK0_ATTRIB_SAS_PROTOCOL (0x02)
1658 #define MPI2_PHYSDISK0_ATTRIB_SATA_PROTOCOL (0x01)
1661 #define MPI2_PHYSDISK0_STATUS_FLAG_NOT_CERTIFIED (0x00000040)
1662 #define MPI2_PHYSDISK0_STATUS_FLAG_OCE_TARGET (0x00000020)
1663 #define MPI2_PHYSDISK0_STATUS_FLAG_WRITE_CACHE_ENABLED (0x00000010)
1664 #define MPI2_PHYSDISK0_STATUS_FLAG_OPTIMAL_PREVIOUS (0x00000000)
1665 #define MPI2_PHYSDISK0_STATUS_FLAG_NOT_OPTIMAL_PREVIOUS (0x00000008)
1666 #define MPI2_PHYSDISK0_STATUS_FLAG_INACTIVE_VOLUME (0x00000004)
1667 #define MPI2_PHYSDISK0_STATUS_FLAG_QUIESCED (0x00000002)
1668 #define MPI2_PHYSDISK0_STATUS_FLAG_OUT_OF_SYNC (0x00000001)
1677 #ifndef MPI2_RAID_PHYS_DISK1_PATH_MAX
1678 #define MPI2_RAID_PHYS_DISK1_PATH_MAX (1)
1694 #define MPI2_RAID_PHYSDISK1_FLAG_PRIMARY (0x0004)
1695 #define MPI2_RAID_PHYSDISK1_FLAG_BROKEN (0x0002)
1696 #define MPI2_RAID_PHYSDISK1_FLAG_INVALID (0x0001)
1710 #define MPI2_RAIDPHYSDISKPAGE1_PAGEVERSION (0x02)
1718 #define MPI2_SAS_NEG_LINK_RATE_MASK_LOGICAL (0xF0)
1719 #define MPI2_SAS_NEG_LINK_RATE_SHIFT_LOGICAL (4)
1720 #define MPI2_SAS_NEG_LINK_RATE_MASK_PHYSICAL (0x0F)
1722 #define MPI2_SAS_NEG_LINK_RATE_UNKNOWN_LINK_RATE (0x00)
1723 #define MPI2_SAS_NEG_LINK_RATE_PHY_DISABLED (0x01)
1724 #define MPI2_SAS_NEG_LINK_RATE_NEGOTIATION_FAILED (0x02)
1725 #define MPI2_SAS_NEG_LINK_RATE_SATA_OOB_COMPLETE (0x03)
1726 #define MPI2_SAS_NEG_LINK_RATE_PORT_SELECTOR (0x04)
1727 #define MPI2_SAS_NEG_LINK_RATE_SMP_RESET_IN_PROGRESS (0x05)
1728 #define MPI2_SAS_NEG_LINK_RATE_UNSUPPORTED_PHY (0x06)
1729 #define MPI2_SAS_NEG_LINK_RATE_1_5 (0x08)
1730 #define MPI2_SAS_NEG_LINK_RATE_3_0 (0x09)
1731 #define MPI2_SAS_NEG_LINK_RATE_6_0 (0x0A)
1735 #define MPI2_SAS_APHYINFO_INSIDE_ZPSDS_PERSISTENT (0x00000040)
1736 #define MPI2_SAS_APHYINFO_REQUESTED_INSIDE_ZPSDS (0x00000020)
1737 #define MPI2_SAS_APHYINFO_BREAK_REPLY_CAPABLE (0x00000010)
1739 #define MPI2_SAS_APHYINFO_REASON_MASK (0x0000000F)
1740 #define MPI2_SAS_APHYINFO_REASON_UNKNOWN (0x00000000)
1741 #define MPI2_SAS_APHYINFO_REASON_POWER_ON (0x00000001)
1742 #define MPI2_SAS_APHYINFO_REASON_HARD_RESET (0x00000002)
1743 #define MPI2_SAS_APHYINFO_REASON_SMP_PHY_CONTROL (0x00000003)
1744 #define MPI2_SAS_APHYINFO_REASON_LOSS_OF_SYNC (0x00000004)
1745 #define MPI2_SAS_APHYINFO_REASON_MULTIPLEXING_SEQ (0x00000005)
1746 #define MPI2_SAS_APHYINFO_REASON_IT_NEXUS_LOSS_TIMER (0x00000006)
1747 #define MPI2_SAS_APHYINFO_REASON_BREAK_TIMEOUT (0x00000007)
1748 #define MPI2_SAS_APHYINFO_REASON_PHY_TEST_STOPPED (0x00000008)
1752 #define MPI2_SAS_PHYINFO_PHY_VACANT (0x80000000)
1754 #define MPI2_SAS_PHYINFO_PHY_POWER_CONDITION_MASK (0x18000000)
1755 #define MPI2_SAS_PHYINFO_SHIFT_PHY_POWER_CONDITION (27)
1756 #define MPI2_SAS_PHYINFO_PHY_POWER_ACTIVE (0x00000000)
1757 #define MPI2_SAS_PHYINFO_PHY_POWER_PARTIAL (0x08000000)
1758 #define MPI2_SAS_PHYINFO_PHY_POWER_SLUMBER (0x10000000)
1760 #define MPI2_SAS_PHYINFO_CHANGED_REQ_INSIDE_ZPSDS (0x04000000)
1761 #define MPI2_SAS_PHYINFO_INSIDE_ZPSDS_PERSISTENT (0x02000000)
1762 #define MPI2_SAS_PHYINFO_REQ_INSIDE_ZPSDS (0x01000000)
1763 #define MPI2_SAS_PHYINFO_ZONE_GROUP_PERSISTENT (0x00400000)
1764 #define MPI2_SAS_PHYINFO_INSIDE_ZPSDS (0x00200000)
1765 #define MPI2_SAS_PHYINFO_ZONING_ENABLED (0x00100000)
1767 #define MPI2_SAS_PHYINFO_REASON_MASK (0x000F0000)
1768 #define MPI2_SAS_PHYINFO_REASON_UNKNOWN (0x00000000)
1769 #define MPI2_SAS_PHYINFO_REASON_POWER_ON (0x00010000)
1770 #define MPI2_SAS_PHYINFO_REASON_HARD_RESET (0x00020000)
1771 #define MPI2_SAS_PHYINFO_REASON_SMP_PHY_CONTROL (0x00030000)
1772 #define MPI2_SAS_PHYINFO_REASON_LOSS_OF_SYNC (0x00040000)
1773 #define MPI2_SAS_PHYINFO_REASON_MULTIPLEXING_SEQ (0x00050000)
1774 #define MPI2_SAS_PHYINFO_REASON_IT_NEXUS_LOSS_TIMER (0x00060000)
1775 #define MPI2_SAS_PHYINFO_REASON_BREAK_TIMEOUT (0x00070000)
1776 #define MPI2_SAS_PHYINFO_REASON_PHY_TEST_STOPPED (0x00080000)
1778 #define MPI2_SAS_PHYINFO_MULTIPLEXING_SUPPORTED (0x00008000)
1779 #define MPI2_SAS_PHYINFO_SATA_PORT_ACTIVE (0x00004000)
1780 #define MPI2_SAS_PHYINFO_SATA_PORT_SELECTOR_PRESENT (0x00002000)
1781 #define MPI2_SAS_PHYINFO_VIRTUAL_PHY (0x00001000)
1783 #define MPI2_SAS_PHYINFO_MASK_PARTIAL_PATHWAY_TIME (0x00000F00)
1784 #define MPI2_SAS_PHYINFO_SHIFT_PARTIAL_PATHWAY_TIME (8)
1786 #define MPI2_SAS_PHYINFO_MASK_ROUTING_ATTRIBUTE (0x000000F0)
1787 #define MPI2_SAS_PHYINFO_DIRECT_ROUTING (0x00000000)
1788 #define MPI2_SAS_PHYINFO_SUBTRACTIVE_ROUTING (0x00000010)
1789 #define MPI2_SAS_PHYINFO_TABLE_ROUTING (0x00000020)
1793 #define MPI2_SAS_PRATE_MAX_RATE_MASK (0xF0)
1794 #define MPI2_SAS_PRATE_MAX_RATE_NOT_PROGRAMMABLE (0x00)
1795 #define MPI2_SAS_PRATE_MAX_RATE_1_5 (0x80)
1796 #define MPI2_SAS_PRATE_MAX_RATE_3_0 (0x90)
1797 #define MPI2_SAS_PRATE_MAX_RATE_6_0 (0xA0)
1798 #define MPI2_SAS_PRATE_MIN_RATE_MASK (0x0F)
1799 #define MPI2_SAS_PRATE_MIN_RATE_NOT_PROGRAMMABLE (0x00)
1800 #define MPI2_SAS_PRATE_MIN_RATE_1_5 (0x08)
1801 #define MPI2_SAS_PRATE_MIN_RATE_3_0 (0x09)
1802 #define MPI2_SAS_PRATE_MIN_RATE_6_0 (0x0A)
1806 #define MPI2_SAS_HWRATE_MAX_RATE_MASK (0xF0)
1807 #define MPI2_SAS_HWRATE_MAX_RATE_1_5 (0x80)
1808 #define MPI2_SAS_HWRATE_MAX_RATE_3_0 (0x90)
1809 #define MPI2_SAS_HWRATE_MAX_RATE_6_0 (0xA0)
1810 #define MPI2_SAS_HWRATE_MIN_RATE_MASK (0x0F)
1811 #define MPI2_SAS_HWRATE_MIN_RATE_1_5 (0x08)
1812 #define MPI2_SAS_HWRATE_MIN_RATE_3_0 (0x09)
1813 #define MPI2_SAS_HWRATE_MIN_RATE_6_0 (0x0A)
1841 #ifndef MPI2_SAS_IOUNIT0_PHY_MAX
1842 #define MPI2_SAS_IOUNIT0_PHY_MAX (1)
1857 #define MPI2_SASIOUNITPAGE0_PAGEVERSION (0x05)
1860 #define MPI2_SASIOUNIT0_PORTFLAGS_DISCOVERY_IN_PROGRESS (0x08)
1861 #define MPI2_SASIOUNIT0_PORTFLAGS_AUTO_PORT_CONFIG (0x01)
1864 #define MPI2_SASIOUNIT0_PHYFLAGS_ZONING_ENABLED (0x10)
1865 #define MPI2_SASIOUNIT0_PHYFLAGS_PHY_DISABLED (0x08)
1872 #define MPI2_SASIOUNIT0_DS_MAX_ENCLOSURES_EXCEED (0x80000000)
1873 #define MPI2_SASIOUNIT0_DS_MAX_EXPANDERS_EXCEED (0x40000000)
1874 #define MPI2_SASIOUNIT0_DS_MAX_DEVICES_EXCEED (0x20000000)
1875 #define MPI2_SASIOUNIT0_DS_MAX_TOPO_PHYS_EXCEED (0x10000000)
1876 #define MPI2_SASIOUNIT0_DS_DOWNSTREAM_INITIATOR (0x08000000)
1877 #define MPI2_SASIOUNIT0_DS_MULTI_SUBTRACTIVE_SUBTRACTIVE (0x00008000)
1878 #define MPI2_SASIOUNIT0_DS_EXP_MULTI_SUBTRACTIVE (0x00004000)
1879 #define MPI2_SASIOUNIT0_DS_MULTI_PORT_DOMAIN (0x00002000)
1880 #define MPI2_SASIOUNIT0_DS_TABLE_TO_SUBTRACTIVE_LINK (0x00001000)
1881 #define MPI2_SASIOUNIT0_DS_UNSUPPORTED_DEVICE (0x00000800)
1882 #define MPI2_SASIOUNIT0_DS_TABLE_LINK (0x00000400)
1883 #define MPI2_SASIOUNIT0_DS_SUBTRACTIVE_LINK (0x00000200)
1884 #define MPI2_SASIOUNIT0_DS_SMP_CRC_ERROR (0x00000100)
1885 #define MPI2_SASIOUNIT0_DS_SMP_FUNCTION_FAILED (0x00000080)
1886 #define MPI2_SASIOUNIT0_DS_INDEX_NOT_EXIST (0x00000040)
1887 #define MPI2_SASIOUNIT0_DS_OUT_ROUTE_ENTRIES (0x00000020)
1888 #define MPI2_SASIOUNIT0_DS_SMP_TIMEOUT (0x00000010)
1889 #define MPI2_SASIOUNIT0_DS_MULTIPLE_PORTS (0x00000004)
1890 #define MPI2_SASIOUNIT0_DS_UNADDRESSABLE_DEVICE (0x00000002)
1891 #define MPI2_SASIOUNIT0_DS_LOOP_DETECTED (0x00000001)
1912 #ifndef MPI2_SAS_IOUNIT1_PHY_MAX
1913 #define MPI2_SAS_IOUNIT1_PHY_MAX (1)
1932 #define MPI2_SASIOUNITPAGE1_PAGEVERSION (0x09)
1935 #define MPI2_SASIOUNIT1_CONTROL_DEVICE_SELF_TEST (0x8000)
1936 #define MPI2_SASIOUNIT1_CONTROL_SATA_3_0_MAX (0x4000)
1937 #define MPI2_SASIOUNIT1_CONTROL_SATA_1_5_MAX (0x2000)
1938 #define MPI2_SASIOUNIT1_CONTROL_SATA_SW_PRESERVE (0x1000)
1940 #define MPI2_SASIOUNIT1_CONTROL_MASK_DEV_SUPPORT (0x0600)
1941 #define MPI2_SASIOUNIT1_CONTROL_SHIFT_DEV_SUPPORT (9)
1942 #define MPI2_SASIOUNIT1_CONTROL_DEV_SUPPORT_BOTH (0x0)
1943 #define MPI2_SASIOUNIT1_CONTROL_DEV_SAS_SUPPORT (0x1)
1944 #define MPI2_SASIOUNIT1_CONTROL_DEV_SATA_SUPPORT (0x2)
1946 #define MPI2_SASIOUNIT1_CONTROL_SATA_48BIT_LBA_REQUIRED (0x0080)
1947 #define MPI2_SASIOUNIT1_CONTROL_SATA_SMART_REQUIRED (0x0040)
1948 #define MPI2_SASIOUNIT1_CONTROL_SATA_NCQ_REQUIRED (0x0020)
1949 #define MPI2_SASIOUNIT1_CONTROL_SATA_FUA_REQUIRED (0x0010)
1950 #define MPI2_SASIOUNIT1_CONTROL_TABLE_SUBTRACTIVE_ILLEGAL (0x0008)
1951 #define MPI2_SASIOUNIT1_CONTROL_SUBTRACTIVE_ILLEGAL (0x0004)
1952 #define MPI2_SASIOUNIT1_CONTROL_FIRST_LVL_DISC_ONLY (0x0002)
1953 #define MPI2_SASIOUNIT1_CONTROL_CLEAR_AFFILIATION (0x0001)
1956 #define MPI2_SASIOUNIT1_ACONTROL_MULTI_PORT_DOMAIN_ILLEGAL (0x0080)
1957 #define MPI2_SASIOUNIT1_ACONTROL_SATA_ASYNCHROUNOUS_NOTIFICATION (0x0040)
1958 #define MPI2_SASIOUNIT1_ACONTROL_INVALID_TOPOLOGY_CORRECTION (0x0020)
1959 #define MPI2_SASIOUNIT1_ACONTROL_PORT_ENABLE_ONLY_SATA_LINK_RESET (0x0010)
1960 #define MPI2_SASIOUNIT1_ACONTROL_OTHER_AFFILIATION_SATA_LINK_RESET (0x0008)
1961 #define MPI2_SASIOUNIT1_ACONTROL_SELF_AFFILIATION_SATA_LINK_RESET (0x0004)
1962 #define MPI2_SASIOUNIT1_ACONTROL_NO_AFFILIATION_SATA_LINK_RESET (0x0002)
1963 #define MPI2_SASIOUNIT1_ACONTROL_ALLOW_TABLE_TO_TABLE (0x0001)
1966 #define MPI2_SASIOUNIT1_REPORT_MISSING_TIMEOUT_MASK (0x7F)
1967 #define MPI2_SASIOUNIT1_REPORT_MISSING_UNIT_16 (0x80)
1970 #define MPI2_SASIOUNIT1_PORT_FLAGS_AUTO_PORT_CONFIG (0x01)
1973 #define MPI2_SASIOUNIT1_PHYFLAGS_ZONING_ENABLE (0x10)
1974 #define MPI2_SASIOUNIT1_PHYFLAGS_PHY_DISABLE (0x08)
1977 #define MPI2_SASIOUNIT1_MAX_RATE_MASK (0xF0)
1978 #define MPI2_SASIOUNIT1_MAX_RATE_1_5 (0x80)
1979 #define MPI2_SASIOUNIT1_MAX_RATE_3_0 (0x90)
1980 #define MPI2_SASIOUNIT1_MAX_RATE_6_0 (0xA0)
1981 #define MPI2_SASIOUNIT1_MIN_RATE_MASK (0x0F)
1982 #define MPI2_SASIOUNIT1_MIN_RATE_1_5 (0x08)
1983 #define MPI2_SASIOUNIT1_MIN_RATE_3_0 (0x09)
1984 #define MPI2_SASIOUNIT1_MIN_RATE_6_0 (0x0A)
2001 #define MPI2_SASIOUNIT4_SPINUP_DISABLE_FLAG (0x01)
2007 #ifndef MPI2_SAS_IOUNIT4_PHY_MAX
2008 #define MPI2_SAS_IOUNIT4_PHY_MAX (4)
2030 #define MPI2_SASIOUNITPAGE4_PAGEVERSION (0x02)
2033 #define MPI2_SASIOUNIT4_FLAGS_AUTO_PORTENABLE (0x01)
2036 #define MPI2_SASIOUNIT4_PHY_SPINUP_GROUP_MASK (0x03)
2058 #define MPI2_SASIOUNIT5_CONTROL_SAS_SLUMBER_ENABLE (0x08)
2059 #define MPI2_SASIOUNIT5_CONTROL_SAS_PARTIAL_ENABLE (0x04)
2060 #define MPI2_SASIOUNIT5_CONTROL_SATA_SLUMBER_ENABLE (0x02)
2061 #define MPI2_SASIOUNIT5_CONTROL_SATA_PARTIAL_ENABLE (0x01)
2064 #define MPI2_SASIOUNIT5_PWMG_DISABLE (0xFF)
2067 #define MPI2_SASIOUNIT5_ITE_MASK_SAS_SLUMBER (0x7000)
2068 #define MPI2_SASIOUNIT5_ITE_SHIFT_SAS_SLUMBER (12)
2069 #define MPI2_SASIOUNIT5_ITE_MASK_SAS_PARTIAL (0x0700)
2070 #define MPI2_SASIOUNIT5_ITE_SHIFT_SAS_PARTIAL (8)
2071 #define MPI2_SASIOUNIT5_ITE_MASK_SATA_SLUMBER (0x0070)
2072 #define MPI2_SASIOUNIT5_ITE_SHIFT_SATA_SLUMBER (4)
2073 #define MPI2_SASIOUNIT5_ITE_MASK_SATA_PARTIAL (0x0007)
2074 #define MPI2_SASIOUNIT5_ITE_SHIFT_SATA_PARTIAL (0)
2076 #define MPI2_SASIOUNIT5_ITE_TEN_SECONDS (7)
2077 #define MPI2_SASIOUNIT5_ITE_ONE_SECOND (6)
2078 #define MPI2_SASIOUNIT5_ITE_HUNDRED_MILLISECONDS (5)
2079 #define MPI2_SASIOUNIT5_ITE_TEN_MILLISECONDS (4)
2080 #define MPI2_SASIOUNIT5_ITE_ONE_MILLISECOND (3)
2081 #define MPI2_SASIOUNIT5_ITE_HUNDRED_MICROSECONDS (2)
2082 #define MPI2_SASIOUNIT5_ITE_TEN_MICROSECONDS (1)
2083 #define MPI2_SASIOUNIT5_ITE_ONE_MICROSECOND (0)
2089 #ifndef MPI2_SAS_IOUNIT5_PHY_MAX
2090 #define MPI2_SAS_IOUNIT5_PHY_MAX (1)
2105 #define MPI2_SASIOUNITPAGE5_PAGEVERSION (0x01)
2122 #define MPI2_SASIOUNIT6_STATUS_UNAVAILABLE (0x00)
2123 #define MPI2_SASIOUNIT6_STATUS_UNCONFIGURED (0x01)
2124 #define MPI2_SASIOUNIT6_STATUS_INVALID_CONFIG (0x02)
2125 #define MPI2_SASIOUNIT6_STATUS_LINK_DOWN (0x03)
2126 #define MPI2_SASIOUNIT6_STATUS_OBSERVATION_ONLY (0x04)
2127 #define MPI2_SASIOUNIT6_STATUS_INACTIVE (0x05)
2128 #define MPI2_SASIOUNIT6_STATUS_ACTIVE_IOUNIT (0x06)
2129 #define MPI2_SASIOUNIT6_STATUS_ACTIVE_HOST (0x07)
2132 #define MPI2_SASIOUNIT6_MODULATION_25_PERCENT (0x00)
2133 #define MPI2_SASIOUNIT6_MODULATION_50_PERCENT (0x01)
2134 #define MPI2_SASIOUNIT6_MODULATION_75_PERCENT (0x02)
2135 #define MPI2_SASIOUNIT6_MODULATION_100_PERCENT (0x03)
2141 #ifndef MPI2_SAS_IOUNIT6_GROUP_MAX
2142 #define MPI2_SAS_IOUNIT6_GROUP_MAX (1)
2158 #define MPI2_SASIOUNITPAGE6_PAGEVERSION (0x00)
2177 #define MPI2_SASIOUNIT7_FLAGS_ENABLE_PORT_WIDTH_MODULATION (0x01)
2184 #ifndef MPI2_SAS_IOUNIT7_GROUP_MAX
2185 #define MPI2_SAS_IOUNIT7_GROUP_MAX (1)
2204 #define MPI2_SASIOUNITPAGE7_PAGEVERSION (0x00)
2218 #define MPI2_SASIOUNITPAGE8_PAGEVERSION (0x00)
2221 #define MPI2_SASIOUNIT8_PM_HOST_PORT_WIDTH_MOD (0x00001000)
2222 #define MPI2_SASIOUNIT8_PM_HOST_SAS_SLUMBER_MODE (0x00000800)
2223 #define MPI2_SASIOUNIT8_PM_HOST_SAS_PARTIAL_MODE (0x00000400)
2224 #define MPI2_SASIOUNIT8_PM_HOST_SATA_SLUMBER_MODE (0x00000200)
2225 #define MPI2_SASIOUNIT8_PM_HOST_SATA_PARTIAL_MODE (0x00000100)
2226 #define MPI2_SASIOUNIT8_PM_IOUNIT_PORT_WIDTH_MOD (0x00000010)
2227 #define MPI2_SASIOUNIT8_PM_IOUNIT_SAS_SLUMBER_MODE (0x00000008)
2228 #define MPI2_SASIOUNIT8_PM_IOUNIT_SAS_PARTIAL_MODE (0x00000004)
2229 #define MPI2_SASIOUNIT8_PM_IOUNIT_SATA_SLUMBER_MODE (0x00000002)
2230 #define MPI2_SASIOUNIT8_PM_IOUNIT_SATA_PARTIAL_MODE (0x00000001)
2253 #define MPI2_SASIOUNITPAGE16_PAGEVERSION (0x00)
2291 #define MPI2_SASEXPANDER0_PAGEVERSION (0x06)
2294 #define MPI2_SAS_EXPANDER0_DS_MAX_ENCLOSURES_EXCEED (0x80000000)
2295 #define MPI2_SAS_EXPANDER0_DS_MAX_EXPANDERS_EXCEED (0x40000000)
2296 #define MPI2_SAS_EXPANDER0_DS_MAX_DEVICES_EXCEED (0x20000000)
2297 #define MPI2_SAS_EXPANDER0_DS_MAX_TOPO_PHYS_EXCEED (0x10000000)
2298 #define MPI2_SAS_EXPANDER0_DS_DOWNSTREAM_INITIATOR (0x08000000)
2299 #define MPI2_SAS_EXPANDER0_DS_MULTI_SUBTRACTIVE_SUBTRACTIVE (0x00008000)
2300 #define MPI2_SAS_EXPANDER0_DS_EXP_MULTI_SUBTRACTIVE (0x00004000)
2301 #define MPI2_SAS_EXPANDER0_DS_MULTI_PORT_DOMAIN (0x00002000)
2302 #define MPI2_SAS_EXPANDER0_DS_TABLE_TO_SUBTRACTIVE_LINK (0x00001000)
2303 #define MPI2_SAS_EXPANDER0_DS_UNSUPPORTED_DEVICE (0x00000800)
2304 #define MPI2_SAS_EXPANDER0_DS_TABLE_LINK (0x00000400)
2305 #define MPI2_SAS_EXPANDER0_DS_SUBTRACTIVE_LINK (0x00000200)
2306 #define MPI2_SAS_EXPANDER0_DS_SMP_CRC_ERROR (0x00000100)
2307 #define MPI2_SAS_EXPANDER0_DS_SMP_FUNCTION_FAILED (0x00000080)
2308 #define MPI2_SAS_EXPANDER0_DS_INDEX_NOT_EXIST (0x00000040)
2309 #define MPI2_SAS_EXPANDER0_DS_OUT_ROUTE_ENTRIES (0x00000020)
2310 #define MPI2_SAS_EXPANDER0_DS_SMP_TIMEOUT (0x00000010)
2311 #define MPI2_SAS_EXPANDER0_DS_MULTIPLE_PORTS (0x00000004)
2312 #define MPI2_SAS_EXPANDER0_DS_UNADDRESSABLE_DEVICE (0x00000002)
2313 #define MPI2_SAS_EXPANDER0_DS_LOOP_DETECTED (0x00000001)
2316 #define MPI2_SAS_EXPANDER0_FLAGS_REDUCED_FUNCTIONALITY (0x2000)
2317 #define MPI2_SAS_EXPANDER0_FLAGS_ZONE_LOCKED (0x1000)
2318 #define MPI2_SAS_EXPANDER0_FLAGS_SUPPORTED_PHYSICAL_PRES (0x0800)
2319 #define MPI2_SAS_EXPANDER0_FLAGS_ASSERTED_PHYSICAL_PRES (0x0400)
2320 #define MPI2_SAS_EXPANDER0_FLAGS_ZONING_SUPPORT (0x0200)
2321 #define MPI2_SAS_EXPANDER0_FLAGS_ENABLED_ZONING (0x0100)
2322 #define MPI2_SAS_EXPANDER0_FLAGS_TABLE_TO_TABLE_SUPPORT (0x0080)
2323 #define MPI2_SAS_EXPANDER0_FLAGS_CONNECTOR_END_DEVICE (0x0010)
2324 #define MPI2_SAS_EXPANDER0_FLAGS_OTHERS_CONFIG (0x0004)
2325 #define MPI2_SAS_EXPANDER0_FLAGS_CONFIG_IN_PROGRESS (0x0002)
2326 #define MPI2_SAS_EXPANDER0_FLAGS_ROUTE_TABLE_CONFIG (0x0001)
2359 #define MPI2_SASEXPANDER1_PAGEVERSION (0x02)
2372 #define MPI2_SAS_EXPANDER1_DISCINFO_BAD_PHY_DISABLED (0x04)
2373 #define MPI2_SAS_EXPANDER1_DISCINFO_LINK_STATUS_CHANGE (0x02)
2374 #define MPI2_SAS_EXPANDER1_DISCINFO_NO_ROUTING_ENTRIES (0x01)
2410 #define MPI2_SASDEVICE0_PAGEVERSION (0x08)
2413 #define MPI2_SAS_DEVICE0_ASTATUS_NO_ERRORS (0x00)
2414 #define MPI2_SAS_DEVICE0_ASTATUS_SATA_INIT_FAILED (0x01)
2415 #define MPI2_SAS_DEVICE0_ASTATUS_SATA_CAPABILITY_FAILED (0x02)
2416 #define MPI2_SAS_DEVICE0_ASTATUS_SATA_AFFILIATION_CONFLICT (0x03)
2417 #define MPI2_SAS_DEVICE0_ASTATUS_SATA_NEEDS_INITIALIZATION (0x04)
2418 #define MPI2_SAS_DEVICE0_ASTATUS_ROUTE_NOT_ADDRESSABLE (0x05)
2419 #define MPI2_SAS_DEVICE0_ASTATUS_SMP_ERROR_NOT_ADDRESSABLE (0x06)
2420 #define MPI2_SAS_DEVICE0_ASTATUS_DEVICE_BLOCKED (0x07)
2422 #define MPI2_SAS_DEVICE0_ASTATUS_SIF_UNKNOWN (0x10)
2423 #define MPI2_SAS_DEVICE0_ASTATUS_SIF_AFFILIATION_CONFLICT (0x11)
2424 #define MPI2_SAS_DEVICE0_ASTATUS_SIF_DIAG (0x12)
2425 #define MPI2_SAS_DEVICE0_ASTATUS_SIF_IDENTIFICATION (0x13)
2426 #define MPI2_SAS_DEVICE0_ASTATUS_SIF_CHECK_POWER (0x14)
2427 #define MPI2_SAS_DEVICE0_ASTATUS_SIF_PIO_SN (0x15)
2428 #define MPI2_SAS_DEVICE0_ASTATUS_SIF_MDMA_SN (0x16)
2429 #define MPI2_SAS_DEVICE0_ASTATUS_SIF_UDMA_SN (0x17)
2430 #define MPI2_SAS_DEVICE0_ASTATUS_SIF_ZONING_VIOLATION (0x18)
2431 #define MPI2_SAS_DEVICE0_ASTATUS_SIF_NOT_ADDRESSABLE (0x19)
2432 #define MPI2_SAS_DEVICE0_ASTATUS_SIF_MAX (0x1F)
2437 #define MPI2_SAS_DEVICE0_FLAGS_UNAUTHORIZED_DEVICE (0x8000)
2438 #define MPI2_SAS_DEVICE0_FLAGS_SLUMBER_PM_CAPABLE (0x1000)
2439 #define MPI2_SAS_DEVICE0_FLAGS_PARTIAL_PM_CAPABLE (0x0800)
2440 #define MPI2_SAS_DEVICE0_FLAGS_SATA_ASYNCHRONOUS_NOTIFY (0x0400)
2441 #define MPI2_SAS_DEVICE0_FLAGS_SATA_SW_PRESERVE (0x0200)
2442 #define MPI2_SAS_DEVICE0_FLAGS_UNSUPPORTED_DEVICE (0x0100)
2443 #define MPI2_SAS_DEVICE0_FLAGS_SATA_48BIT_LBA_SUPPORTED (0x0080)
2444 #define MPI2_SAS_DEVICE0_FLAGS_SATA_SMART_SUPPORTED (0x0040)
2445 #define MPI2_SAS_DEVICE0_FLAGS_SATA_NCQ_SUPPORTED (0x0020)
2446 #define MPI2_SAS_DEVICE0_FLAGS_SATA_FUA_SUPPORTED (0x0010)
2447 #define MPI2_SAS_DEVICE0_FLAGS_PORT_SELECTOR_ATTACH (0x0008)
2448 #define MPI2_SAS_DEVICE0_FLAGS_DEVICE_PRESENT (0x0001)
2465 #define MPI2_SASDEVICE1_PAGEVERSION (0x01)
2494 #define MPI2_SASPHY0_PAGEVERSION (0x03)
2503 #define MPI2_SAS_PHY0_FLAGS_SGPIO_DIRECT_ATTACH_ENC (0x01)
2523 #define MPI2_SASPHY1_PAGEVERSION (0x01)
2543 #ifndef MPI2_SASPHY2_PHY_EVENT_MAX
2544 #define MPI2_SASPHY2_PHY_EVENT_MAX (1)
2558 #define MPI2_SASPHY2_PAGEVERSION (0x00)
2578 #define MPI2_SASPHY3_EVENT_CODE_NO_EVENT (0x00)
2579 #define MPI2_SASPHY3_EVENT_CODE_INVALID_DWORD (0x01)
2580 #define MPI2_SASPHY3_EVENT_CODE_RUNNING_DISPARITY_ERROR (0x02)
2581 #define MPI2_SASPHY3_EVENT_CODE_LOSS_DWORD_SYNC (0x03)
2582 #define MPI2_SASPHY3_EVENT_CODE_PHY_RESET_PROBLEM (0x04)
2583 #define MPI2_SASPHY3_EVENT_CODE_ELASTICITY_BUF_OVERFLOW (0x05)
2584 #define MPI2_SASPHY3_EVENT_CODE_RX_ERROR (0x06)
2585 #define MPI2_SASPHY3_EVENT_CODE_RX_ADDR_FRAME_ERROR (0x20)
2586 #define MPI2_SASPHY3_EVENT_CODE_TX_AC_OPEN_REJECT (0x21)
2587 #define MPI2_SASPHY3_EVENT_CODE_RX_AC_OPEN_REJECT (0x22)
2588 #define MPI2_SASPHY3_EVENT_CODE_TX_RC_OPEN_REJECT (0x23)
2589 #define MPI2_SASPHY3_EVENT_CODE_RX_RC_OPEN_REJECT (0x24)
2590 #define MPI2_SASPHY3_EVENT_CODE_RX_AIP_PARTIAL_WAITING_ON (0x25)
2591 #define MPI2_SASPHY3_EVENT_CODE_RX_AIP_CONNECT_WAITING_ON (0x26)
2592 #define MPI2_SASPHY3_EVENT_CODE_TX_BREAK (0x27)
2593 #define MPI2_SASPHY3_EVENT_CODE_RX_BREAK (0x28)
2594 #define MPI2_SASPHY3_EVENT_CODE_BREAK_TIMEOUT (0x29)
2595 #define MPI2_SASPHY3_EVENT_CODE_CONNECTION (0x2A)
2596 #define MPI2_SASPHY3_EVENT_CODE_PEAKTX_PATHWAY_BLOCKED (0x2B)
2597 #define MPI2_SASPHY3_EVENT_CODE_PEAKTX_ARB_WAIT_TIME (0x2C)
2598 #define MPI2_SASPHY3_EVENT_CODE_PEAK_ARB_WAIT_TIME (0x2D)
2599 #define MPI2_SASPHY3_EVENT_CODE_PEAK_CONNECT_TIME (0x2E)
2600 #define MPI2_SASPHY3_EVENT_CODE_TX_SSP_FRAMES (0x40)
2601 #define MPI2_SASPHY3_EVENT_CODE_RX_SSP_FRAMES (0x41)
2602 #define MPI2_SASPHY3_EVENT_CODE_TX_SSP_ERROR_FRAMES (0x42)
2603 #define MPI2_SASPHY3_EVENT_CODE_RX_SSP_ERROR_FRAMES (0x43)
2604 #define MPI2_SASPHY3_EVENT_CODE_TX_CREDIT_BLOCKED (0x44)
2605 #define MPI2_SASPHY3_EVENT_CODE_RX_CREDIT_BLOCKED (0x45)
2606 #define MPI2_SASPHY3_EVENT_CODE_TX_SATA_FRAMES (0x50)
2607 #define MPI2_SASPHY3_EVENT_CODE_RX_SATA_FRAMES (0x51)
2608 #define MPI2_SASPHY3_EVENT_CODE_SATA_OVERFLOW (0x52)
2609 #define MPI2_SASPHY3_EVENT_CODE_TX_SMP_FRAMES (0x60)
2610 #define MPI2_SASPHY3_EVENT_CODE_RX_SMP_FRAMES (0x61)
2611 #define MPI2_SASPHY3_EVENT_CODE_RX_SMP_ERROR_FRAMES (0x63)
2612 #define MPI2_SASPHY3_EVENT_CODE_HOTPLUG_TIMEOUT (0xD0)
2613 #define MPI2_SASPHY3_EVENT_CODE_MISALIGNED_MUX_PRIMITIVE (0xD1)
2614 #define MPI2_SASPHY3_EVENT_CODE_RX_AIP (0xD2)
2617 #define MPI2_SASPHY3_COUNTER_TYPE_WRAPPING (0x00)
2618 #define MPI2_SASPHY3_COUNTER_TYPE_SATURATING (0x01)
2619 #define MPI2_SASPHY3_COUNTER_TYPE_PEAK_VALUE (0x02)
2622 #define MPI2_SASPHY3_TIME_UNITS_10_MICROSECONDS (0x00)
2623 #define MPI2_SASPHY3_TIME_UNITS_100_MICROSECONDS (0x01)
2624 #define MPI2_SASPHY3_TIME_UNITS_1_MILLISECOND (0x02)
2625 #define MPI2_SASPHY3_TIME_UNITS_10_MILLISECONDS (0x03)
2628 #define MPI2_SASPHY3_TFLAGS_PHY_RESET (0x0002)
2629 #define MPI2_SASPHY3_TFLAGS_EVENT_NOTIFY (0x0001)
2635 #ifndef MPI2_SASPHY3_PHY_EVENT_MAX
2636 #define MPI2_SASPHY3_PHY_EVENT_MAX (1)
2650 #define MPI2_SASPHY3_PAGEVERSION (0x00)
2664 #define MPI2_SASPHY4_PAGEVERSION (0x00)
2667 #define MPI2_SASPHY4_FLAGS_FRAME_VALID (0x02)
2668 #define MPI2_SASPHY4_FLAGS_SATA_FRAME (0x01)
2696 #define MPI2_SASPORT0_PAGEVERSION (0x00)
2724 #define MPI2_SASENCLOSURE0_PAGEVERSION (0x03)
2727 #define MPI2_SAS_ENCLS0_FLAGS_MNG_MASK (0x000F)
2728 #define MPI2_SAS_ENCLS0_FLAGS_MNG_UNKNOWN (0x0000)
2729 #define MPI2_SAS_ENCLS0_FLAGS_MNG_IOC_SES (0x0001)
2730 #define MPI2_SAS_ENCLS0_FLAGS_MNG_IOC_SGPIO (0x0002)
2731 #define MPI2_SAS_ENCLS0_FLAGS_MNG_EXP_SGPIO (0x0003)
2732 #define MPI2_SAS_ENCLS0_FLAGS_MNG_SES_ENCLOSURE (0x0004)
2733 #define MPI2_SAS_ENCLS0_FLAGS_MNG_IOC_GPIO (0x0005)
2746 #ifndef MPI2_LOG_0_NUM_LOG_ENTRIES
2747 #define MPI2_LOG_0_NUM_LOG_ENTRIES (1)
2750 #define MPI2_LOG_0_LOG_DATA_LENGTH (0x1C)
2766 #define MPI2_LOG_0_ENTRY_QUAL_ENTRY_UNUSED (0x0000)
2767 #define MPI2_LOG_0_ENTRY_QUAL_POWER_ON_RESET (0x0001)
2768 #define MPI2_LOG_0_ENTRY_QUAL_TIMESTAMP_UPDATE (0x0002)
2769 #define MPI2_LOG_0_ENTRY_QUAL_MIN_IMPLEMENT_SPEC (0x8000)
2770 #define MPI2_LOG_0_ENTRY_QUAL_MAX_IMPLEMENT_SPEC (0xFFFF)
2783 #define MPI2_LOG_0_PAGEVERSION (0x02)
2796 #ifndef MPI2_RAIDCONFIG0_MAX_ELEMENTS
2797 #define MPI2_RAIDCONFIG0_MAX_ELEMENTS (1)
2812 #define MPI2_RAIDCONFIG0_EFLAGS_MASK_ELEMENT_TYPE (0x000F)
2813 #define MPI2_RAIDCONFIG0_EFLAGS_VOLUME_ELEMENT (0x0000)
2814 #define MPI2_RAIDCONFIG0_EFLAGS_VOL_PHYS_DISK_ELEMENT (0x0001)
2815 #define MPI2_RAIDCONFIG0_EFLAGS_HOT_SPARE_ELEMENT (0x0002)
2816 #define MPI2_RAIDCONFIG0_EFLAGS_OCE_ELEMENT (0x0003)
2837 #define MPI2_RAIDCONFIG0_PAGEVERSION (0x00)
2840 #define MPI2_RAIDCONFIG0_FLAG_FOREIGN_CONFIG (0x00000001)
2868 #define MPI2_DRIVERMAPPING0_PAGEVERSION (0x00)
2871 #define MPI2_DRVMAP0_MAPINFO_SLOT_MASK (0x07F0)
2872 #define MPI2_DRVMAP0_MAPINFO_SLOT_SHIFT (4)
2873 #define MPI2_DRVMAP0_MAPINFO_MISSING_MASK (0x000F)
2889 #define MPI2_ETHERNET_HOST_NAME_LENGTH (32)
2914 #define MPI2_ETHERNETPAGE0_PAGEVERSION (0x00)
2917 #define MPI2_ETHPG0_STATUS_IPV6_CAPABLE (0x80000000)
2918 #define MPI2_ETHPG0_STATUS_IPV4_CAPABLE (0x40000000)
2919 #define MPI2_ETHPG0_STATUS_CONSOLE_CONNECTED (0x20000000)
2920 #define MPI2_ETHPG0_STATUS_DEFAULT_IF (0x00000100)
2921 #define MPI2_ETHPG0_STATUS_FW_DWNLD_ENABLED (0x00000080)
2922 #define MPI2_ETHPG0_STATUS_TELNET_ENABLED (0x00000040)
2923 #define MPI2_ETHPG0_STATUS_SSH2_ENABLED (0x00000020)
2924 #define MPI2_ETHPG0_STATUS_DHCP_CLIENT_ENABLED (0x00000010)
2925 #define MPI2_ETHPG0_STATUS_IPV6_ENABLED (0x00000008)
2926 #define MPI2_ETHPG0_STATUS_IPV4_ENABLED (0x00000004)
2927 #define MPI2_ETHPG0_STATUS_IPV6_ADDRESSES (0x00000002)
2928 #define MPI2_ETHPG0_STATUS_ETH_IF_ENABLED (0x00000001)
2931 #define MPI2_ETHPG0_MS_DUPLEX_MASK (0x80)
2932 #define MPI2_ETHPG0_MS_HALF_DUPLEX (0x00)
2933 #define MPI2_ETHPG0_MS_FULL_DUPLEX (0x80)
2935 #define MPI2_ETHPG0_MS_CONNECT_SPEED_MASK (0x07)
2936 #define MPI2_ETHPG0_MS_NOT_CONNECTED (0x00)
2937 #define MPI2_ETHPG0_MS_10MBIT (0x01)
2938 #define MPI2_ETHPG0_MS_100MBIT (0x02)
2939 #define MPI2_ETHPG0_MS_1GBIT (0x03)
2968 #define MPI2_ETHERNETPAGE1_PAGEVERSION (0x00)
2971 #define MPI2_ETHPG1_FLAG_SET_DEFAULT_IF (0x00000100)
2972 #define MPI2_ETHPG1_FLAG_ENABLE_FW_DOWNLOAD (0x00000080)
2973 #define MPI2_ETHPG1_FLAG_ENABLE_TELNET (0x00000040)
2974 #define MPI2_ETHPG1_FLAG_ENABLE_SSH2 (0x00000020)
2975 #define MPI2_ETHPG1_FLAG_ENABLE_DHCP_CLIENT (0x00000010)
2976 #define MPI2_ETHPG1_FLAG_ENABLE_IPV6 (0x00000008)
2977 #define MPI2_ETHPG1_FLAG_ENABLE_IPV4 (0x00000004)
2978 #define MPI2_ETHPG1_FLAG_USE_IPV6_ADDRESSES (0x00000002)
2979 #define MPI2_ETHPG1_FLAG_ENABLE_ETH_IF (0x00000001)
2982 #define MPI2_ETHPG1_MS_DUPLEX_MASK (0x80)
2983 #define MPI2_ETHPG1_MS_HALF_DUPLEX (0x00)
2984 #define MPI2_ETHPG1_MS_FULL_DUPLEX (0x80)
2986 #define MPI2_ETHPG1_MS_DATA_RATE_MASK (0x07)
2987 #define MPI2_ETHPG1_MS_DATA_RATE_AUTO (0x00)
2988 #define MPI2_ETHPG1_MS_DATA_RATE_10MBIT (0x01)
2989 #define MPI2_ETHPG1_MS_DATA_RATE_100MBIT (0x02)
2990 #define MPI2_ETHPG1_MS_DATA_RATE_1GBIT (0x03)