#ifndef STATE_SET_H | |
#define STATE_SET_H | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
/** @brief PLDM State Set IDs in DSP0249_1.1.0 specification | |
*/ | |
enum pldm_state_set_ids { | |
/* Table 1 - General State Sets */ | |
PLDM_STATE_SET_HEALTH_STATE = 1, | |
PLDM_STATE_SET_AVAILABILITY = 2, | |
PLDM_STATE_SET_PREDICTIVE_CONDITION = 3, | |
PLDM_STATE_SET_REDUNDANCY_STATUS = 4, | |
PLDM_STATE_SET_HEALTH_REDUNDANCY_TREND = 5, | |
PLDM_STATE_SET_GROUP_RESOURCE_LEVEL = 6, | |
PLDM_STATE_SET_REDUNDANCY_ENTITY_ROLE = 7, | |
PLDM_STATE_SET_OPERATIONAL_STATUS = 8, | |
PLDM_STATE_SET_OPERATIONAL_STRESS_STATUS = 9, | |
PLDM_STATE_SET_OPERATIONAL_FAULT_STATUS = 10, | |
PLDM_STATE_SET_OPERATIONAL_RUNNING_STATUS = 11, | |
PLDM_STATE_SET_OPERATIONAL_CONNECTION_STATUS = 12, | |
PLDM_STATE_SET_PRESENCE = 13, | |
PLDM_STATE_SET_PERFORMANCE = 14, | |
PLDM_STATE_SET_CONFIGURATION_STATE = 15, | |
PLDM_STATE_SET_CHANGED_CONFIGURATION = 16, | |
PLDM_STATE_SET_IDENTIFY_STATE = 17, | |
PLDM_STATE_SET_VERSION = 18, | |
PLDM_STATE_SET_ALARM_STATE = 19, | |
PLDM_STATE_SET_DEVICE_INITIALIZATION = 20, | |
PLDM_STATE_SET_THERMAL_TRIP = 21, | |
/* Table 2 - Communication State Sets */ | |
PLDM_STATE_SET_HEARTBEAT = 32, | |
PLDM_STATE_SET_LINK_STATE = 33, | |
/* Table 3 - General Sensor State Sets */ | |
PLDM_STATE_SET_SMOKE_STATE = 64, | |
PLDM_STATE_SET_HUMIDITY_STATE = 65, | |
PLDM_STATE_SET_DOOR_STATE = 66, | |
PLDM_STATE_SET_SWITCH_STATE = 67, | |
/* Table 4 - Security-Related State Sets */ | |
PLDM_STATE_SET_LOCK_STATE = 96, | |
PLDM_STATE_SET_PHYSICAL_SECURITY = 97, | |
PLDM_STATE_SET_DOCK_AUTHORIZATION = 98, | |
PLDM_STATE_SET_HW_SECURITY = 99, | |
PLDM_STATE_SET_PHYSICAL_COMM_CONNECTION = 100, | |
PLDM_STATE_SET_COMM_LEASH_STATUS = 101, | |
PLDM_STATE_SET_FOREIGN_NW_DETECTION_STATUS = 102, | |
PLDM_STATE_SET_PASSWORD_PROTECTED_ACCESS_SECURITY = 103, | |
PLDM_STATE_SET_SECURITY_ACCESS_PRIVILEGE_LEVEL = 104, | |
PLDM_STATE_SET_SESSION_AUDIT = 105, | |
/* Table 5 - Software-Related State Sets */ | |
PLDM_STATE_SET_SW_TERMINATION_STATUS = 129, | |
/* Table 6 - Redundant Storage Media (RAID) State Sets */ | |
PLDM_STATE_SET_STORAGE_MEDIA_ACTIVITY = 160, | |
/* Table 7 - Boot-Related State Sets */ | |
PLDM_STATE_SET_BOOT_RESTART_CAUSE = 192, | |
PLDM_STATE_SET_BOOT_RESTART_REQUEST = 193, | |
PLDM_STATE_SET_ENTITY_BOOT_STATUS = 194, | |
PLDM_STATE_SET_BOOT_ERROR_STATUS = 195, | |
PLDM_STATE_SET_BOOT_PROGRESS = 196, | |
PLDM_STATE_SET_SYS_FIRMWARE_HANG = 197, | |
PLDM_STATE_SET_POST_ERRORS = 198, | |
/* Table 8 - Monitored System-Related State Sets */ | |
PLDM_STATE_SET_LOG_FILL_STATUS = 225, | |
PLDM_STATE_SET_LOG_FILTER_STATUS = 226, | |
PLDM_STATE_SET_LOG_TIMESTAMP_CHANGE = 227, | |
PLDM_STATE_SET_INTERRUPT_REQUESTED = 228, | |
PLDM_STATE_SET_INTERRUPT_RECEIVED = 229, | |
PLDM_STATE_SET_DIAGNOSTIC_INTERRUPT_REQUESTED = 230, | |
PLDM_STATE_SET_DIAGNOSTIC_INTERRUPT_RECEIVED = 231, | |
PLDM_STATE_SET_IO_CHANNEL_CHECK_NMI_REQUESTED = 232, | |
PLDM_STATE_SET_IO_CHANNEL_CHECK_NMI_RECEIVED = 233, | |
PLDM_STATE_SET_FATAL_NMI_REQUESTED = 234, | |
PLDM_STATE_SET_FATAL_NMI_RECEIVED = 235, | |
PLDM_STATE_SET_SOFTWARE_NMI_REQUESTED = 236, | |
PLDM_STATE_SET_SOFTWARE_NMI_RECEIVED = 237, | |
PLDM_STATE_SET_SMI_REQUESTED = 238, | |
PLDM_STATE_SET_SMI_RECEIVED = 238, | |
PLDM_STATE_SET_PCI_PERR_REQUESTED = 239, | |
PLDM_STATE_SET_PCI_PERR_RECEIVED = 240, | |
PLDM_STATE_SET_PCI_SERR_REQUESTED = 241, | |
PLDM_STATE_SET_PCI_SERR_RECEIVED = 242, | |
PLDM_STATE_SET_BUS_ERROR_STATUS = 243, | |
PLDM_STATE_SET_WATCHDOG_STATUS = 244, | |
/* Table 9 - Power-Related State Sets */ | |
PLDM_STATE_SET_POWER_SUPPLY_STATE = 256, | |
PLDM_STATE_SET_DEVICE_POWER_STATE = 257, | |
PLDM_STATE_SET_ACPI_POWER_STATE = 258, | |
PLDM_STATE_SET_BACKUP_POWER_SOURCE = 259, | |
PLDM_STATE_SET_SYSTEM_POWER_STATE = 260, | |
PLDM_STATE_SET_BATTERY_ACTIVITY = 261, | |
PLDM_STATE_SET_BATTERY_STATE = 262, | |
/* Table 10 - Processor-Related State Sets */ | |
PLDM_STATE_SET_PROC_POWER_STATE = 288, | |
PLDM_STATE_SET_POWER_PERFORMANCE_STATE = 289, | |
PLDM_STATE_SET_PROC_ERROR_STATUS = 290, | |
PLDM_STATE_SET_BIST_FAILURE_STATUS = 291, | |
PLDM_STATE_SET_IBIST_FAILURE_STATUS = 292, | |
PLDM_STATE_SET_PROC_HANG_IN_POST = 293, | |
PLDM_STATE_SET_PROC_STARTUP_FAILURE = 294, | |
PLDM_STATE_SET_UNCORRECTABLE_CPU_ERROR = 295, | |
PLDM_STATE_SET_MACHINE_CHECK_ERROR = 296, | |
PLDM_STATE_SET_CORRECTED_MACHINE_CHECK = 297, | |
/* Table 11 - Memory-Related State Sets */ | |
PLDM_STATE_SET_CACHE_STATUS = 320, | |
PLDM_STATE_SET_MEMORY_ERROR_STATUS = 321, | |
PLDM_STATE_SET_REDUNDANT_MEMORY_ACTIVITY_STATUS = 322, | |
/* Table 12 - Storage Device State Sets */ | |
PLDM_STATE_SET_ERROR_DETECTION_STATUS = 330, | |
PLDM_STATE_SET_STUCK_BIT_STATUS = 331, | |
PLDM_STATE_SET_SCRUB_STATUS = 332, | |
/* Table 13 - Slot/Module State Sets */ | |
PLDM_STATE_SET_SLOT_OCCUPANCY = 352, | |
PLDM_STATE_SET_SLOT_STATE = 353, | |
}; | |
/* @brief List of states for the Boot Restart Cause state set (ID 192). | |
*/ | |
enum pldm_state_set_boot_restart_cause_values { | |
PLDM_STATE_SET_BOOT_RESTART_CAUSE_POWERED_UP = 1, | |
PLDM_STATE_SET_BOOT_RESTART_CAUSE_HARD_RESET = 2, | |
PLDM_STATE_SET_BOOT_RESTART_CAUSE_WARM_RESET = 3, | |
PLDM_STATE_SET_BOOT_RESTART_CAUSE_MANUAL_HARD_RESET = 4, | |
PLDM_STATE_SET_BOOT_RESTART_CAUSE_MANUAL_WARM_RESET = 5, | |
PLDM_STATE_SET_BOOT_RESTART_CAUSE_SYSTEM_RESTART = 6, | |
PLDM_STATE_SET_BOOT_RESTART_CAUSE_WATCHDOG_TIMEOUT = 7 | |
}; | |
/* @brief List of states for the Operational Running Status state set (ID 11). | |
*/ | |
enum pldm_state_set_operational_running_status_values { | |
PLDM_STATE_SET_OPERATIONAL_RUNNING_STATUS_STARTING = 1, | |
PLDM_STATE_SET_OPERATIONAL_RUNNING_STATUS_STOPPING = 2, | |
PLDM_STATE_SET_OPERATIONAL_RUNNING_STATUS_STOPPED = 3, | |
PLDM_STATE_SET_OPERATIONAL_RUNNING_STATUS_IN_SERVICE = 4, | |
PLDM_STATE_SET_OPERATIONAL_RUNNING_STATUS_ABORTED = 5, | |
PLDM_STATE_SET_OPERATIONAL_RUNNING_STATUS_DORMANT = 6 | |
}; | |
#ifdef __cplusplus | |
} | |
#endif | |
#endif /* STATE_SET_H */ |