1*14ddea58SDelphine CC Chiu #include <phosphor-logging/lg2.hpp> 2*14ddea58SDelphine CC Chiu 32405ae98SPatrick Williams #include <cstdint> 441ad4ff1SKumar Thangavel 525b79bf4SBonnie Lo enum class fb_bic_cmds : uint8_t 625b79bf4SBonnie Lo { 725b79bf4SBonnie Lo CMD_OEM_BIC_INFO = 0x1, 825b79bf4SBonnie Lo CMD_OEM_GET_BIC_GPIO_STATE = 0x3, 925b79bf4SBonnie Lo CMD_OEM_SEND_POST_BUFFER_TO_BMC = 0x8, 1041027b96SBonnie Lo CMD_OEM_SET_HOST_POWER_STATE = 0x0C, 1105d0ce93SKumar Thangavel CMD_OEM_GET_FLASH_SIZE = 0x19, 126c931e43SJayashree Dhanapal CMD_OEM_CLEAR_CMOS = 0x25, 13*14ddea58SDelphine CC Chiu CMD_OEM_1S_4BYTE_POST_BUF = 0x33, 1425b79bf4SBonnie Lo }; 15ad04924dSKumar Thangavel 1605d0ce93SKumar Thangavel // Flash size response length 1705d0ce93SKumar Thangavel constexpr uint8_t flashSizeRespLen = 0x7; 1805d0ce93SKumar Thangavel 19ad04924dSKumar Thangavel const char* dbusObj = "/xyz/openbmc_project/state/boot/raw"; 20ad04924dSKumar Thangavel 21ad04924dSKumar Thangavel const char* dbusService = "xyz.openbmc_project.State.Boot.Raw"; 2241027b96SBonnie Lo 2341027b96SBonnie Lo constexpr auto systemdService = "org.freedesktop.systemd1"; 2441027b96SBonnie Lo constexpr auto systemdObjPath = "/org/freedesktop/systemd1"; 2541027b96SBonnie Lo constexpr auto systemdInterface = "org.freedesktop.systemd1.Manager"; 2641027b96SBonnie Lo 2741027b96SBonnie Lo enum class HostPowerState : uint8_t 2841027b96SBonnie Lo { 2941027b96SBonnie Lo HOST_POWER_OFF = 0x0, 3041027b96SBonnie Lo HOST_POWER_ON = 0x1, 3141027b96SBonnie Lo }; 32