blob: 44d0e76eebc933ba1fc758481e932f2dd4c452d1 [file] [log] [blame]
Kumar Thangavel41ad4ff2020-06-11 10:31:07 +05301
Bonnie Lo25b79bf2022-12-16 15:41:48 +08002enum class fb_bic_cmds : uint8_t
3{
4 CMD_OEM_BIC_INFO = 0x1,
5 CMD_OEM_GET_BIC_GPIO_STATE = 0x3,
6 CMD_OEM_SEND_POST_BUFFER_TO_BMC = 0x8,
Bonnie Lo41027b92022-12-16 16:21:08 +08007 CMD_OEM_SET_HOST_POWER_STATE = 0x0C,
Kumar Thangavel05d0ce92022-11-17 17:53:57 +05308 CMD_OEM_GET_FLASH_SIZE = 0x19,
Jayashree Dhanapal6c931e42022-12-05 13:09:24 +05309 CMD_OEM_CLEAR_CMOS = 0x25,
Bonnie Lo25b79bf2022-12-16 15:41:48 +080010};
Kumar Thangavelad049242020-08-31 22:27:33 +053011
Kumar Thangavel05d0ce92022-11-17 17:53:57 +053012// Flash size response length
13constexpr uint8_t flashSizeRespLen = 0x7;
14
Kumar Thangavelad049242020-08-31 22:27:33 +053015const char* dbusObj = "/xyz/openbmc_project/state/boot/raw";
16
17const char* dbusService = "xyz.openbmc_project.State.Boot.Raw";
Bonnie Lo41027b92022-12-16 16:21:08 +080018
19constexpr auto systemdService = "org.freedesktop.systemd1";
20constexpr auto systemdObjPath = "/org/freedesktop/systemd1";
21constexpr auto systemdInterface = "org.freedesktop.systemd1.Manager";
22
23enum class HostPowerState : uint8_t
24{
25 HOST_POWER_OFF = 0x0,
26 HOST_POWER_ON = 0x1,
27};