blob: 15207029f161279170b83809c0d0b737c04df1bb [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,
Bonnie Lo25b79bf2022-12-16 15:41:48 +08009};
Kumar Thangavelad049242020-08-31 22:27:33 +053010
Kumar Thangavel05d0ce92022-11-17 17:53:57 +053011// Flash size response length
12constexpr uint8_t flashSizeRespLen = 0x7;
13
Kumar Thangavelad049242020-08-31 22:27:33 +053014const char* dbusObj = "/xyz/openbmc_project/state/boot/raw";
15
16const char* dbusService = "xyz.openbmc_project.State.Boot.Raw";
Bonnie Lo41027b92022-12-16 16:21:08 +080017
18constexpr auto systemdService = "org.freedesktop.systemd1";
19constexpr auto systemdObjPath = "/org/freedesktop/systemd1";
20constexpr auto systemdInterface = "org.freedesktop.systemd1.Manager";
21
22enum class HostPowerState : uint8_t
23{
24 HOST_POWER_OFF = 0x0,
25 HOST_POWER_ON = 0x1,
26};