1 /* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */ 2 #ifndef STATE_SET_OEM_IBM_H 3 #define STATE_SET_OEM_IBM_H 4 5 #ifdef __cplusplus 6 extern "C" { 7 #endif 8 9 /** @brief IBM OEM State Set IDs */ 10 enum ibm_oem_pldm_state_set_ids { 11 PLDM_OEM_IBM_FIRMWARE_UPDATE_STATE = 32768, 12 PLDM_OEM_IBM_BOOT_STATE = 32769, 13 PLDM_OEM_IBM_VERIFICATION_STATE = 32770, 14 PLDM_OEM_IBM_SYSTEM_POWER_STATE = 32771, 15 PLDM_OEM_IBM_SBE_MAINTENANCE_STATE = 32772, 16 PLDM_OEM_IBM_PCIE_SLOT_EFFECTER_STATE = 32773, 17 PLDM_OEM_IBM_PCIE_SLOT_SENSOR_STATE = 32774, 18 PLDM_OEM_IBM_SBE_HRESET_STATE = 32776, 19 PLDM_OEM_IBM_PCIE_TOPOLOGY_ACTIONS = 32781, 20 }; 21 22 enum pldm_oem_ibm_pcie_slot_effecter_state { 23 PLDM_OEM_IBM_PCIE_SLOT_EFFECTER_ADD = 0x1, 24 PLDM_OEM_IBM_PCIE_SLOT_EFFECTER_REMOVE = 0x2, 25 PLDM_OEM_IBM_PCIE_SLOT_EFFECTER_REPLACE = 0x3, 26 }; 27 28 enum pldm_oem_ibm_pcie_slot_sensor_state { 29 PLDM_OEM_IBM_PCIE_SLOT_SENSOR_STATE_UNKOWN = 0x0, 30 PLDM_OEM_IBM_PCIE_SLOT_SENSOR_STATE_ENABLED = 0x1, 31 PLDM_OEM_IBM_PCIE_SLOT_SENSOR_STATE_DISABLED = 0x2, 32 PLDM_OEM_IBM_PCIE_SLOT_SENSOR_STATE_ERROR = 0x3, 33 }; 34 35 enum ibm_oem_pldm_state_set_firmware_update_state_values { 36 START = 0x1, 37 END = 0x2, 38 FAIL = 0x3, 39 ABORT = 0x4, 40 ACCEPT = 0x5, 41 REJECT = 0x6, 42 }; 43 44 enum ibm_oem_pldm_state_set_boot_state_values { 45 P = 0x1, 46 T = 0x2, 47 }; 48 49 enum ibm_oem_pldm_state_set_verification_state_values { 50 VALID = 0x0, 51 ENTITLEMENT_FAIL = 0x1, 52 BANNED_PLATFORM_FAIL = 0x2, 53 MIN_MIF_FAIL = 0x4, 54 }; 55 56 enum ibm_oem_pldm_state_set_system_power_state_values { 57 POWER_CYCLE_HARD = 0x1 58 }; 59 60 enum ibm_oem_pldm_state_set_sbe_dump_state_values { 61 SBE_DUMP_COMPLETED = 0x1, 62 SBE_RETRY_REQUIRED = 0x2, 63 }; 64 65 enum ibm_oem_pldm_state_set_sbe_hreset_state_values { 66 SBE_HRESET_NOT_READY = 0x1, 67 SBE_HRESET_READY = 0x2, 68 SBE_HRESET_FAILED = 0x3, 69 }; 70 71 enum pldm_oem_ibm_pcie_topology_actions { 72 PLDM_OEM_IBM_PCIE_TOPOLOGY_GET_PCIE_TOPOLOGY = 0x1, 73 PLDM_OEM_IBM_PCIE_TOPOLOGY_GET_CABLE_INFO = 0x2, 74 PLDM_OEM_IBM_PCIE_TOPOLOGY_SAVE_PCIE_TOPLOGY = 0x3, 75 }; 76 77 #ifdef __cplusplus 78 } 79 #endif 80 81 #endif /* STATE_SET_OEM_IBM_H */ 82