blob: 84666925ab3548025e6faff274cd11344421c305 [file] [log] [blame]
Delphine CC Chiu14ddea52023-06-06 09:43:44 +08001#include <phosphor-logging/lg2.hpp>
2
Patrick Williams2405ae92023-05-10 07:50:09 -05003#include <cstdint>
Kumar Thangavel41ad4ff2020-06-11 10:31:07 +05304
Bonnie Lo25b79bf2022-12-16 15:41:48 +08005enum class fb_bic_cmds : uint8_t
6{
7 CMD_OEM_BIC_INFO = 0x1,
8 CMD_OEM_GET_BIC_GPIO_STATE = 0x3,
9 CMD_OEM_SEND_POST_BUFFER_TO_BMC = 0x8,
Bonnie Lo41027b92022-12-16 16:21:08 +080010 CMD_OEM_SET_HOST_POWER_STATE = 0x0C,
Kumar Thangavel05d0ce92022-11-17 17:53:57 +053011 CMD_OEM_GET_FLASH_SIZE = 0x19,
Jayashree Dhanapal6c931e42022-12-05 13:09:24 +053012 CMD_OEM_CLEAR_CMOS = 0x25,
Delphine CC Chiu14ddea52023-06-06 09:43:44 +080013 CMD_OEM_1S_4BYTE_POST_BUF = 0x33,
Bonnie Lo25b79bf2022-12-16 15:41:48 +080014};
Kumar Thangavelad049242020-08-31 22:27:33 +053015
Kumar Thangavel05d0ce92022-11-17 17:53:57 +053016// Flash size response length
17constexpr uint8_t flashSizeRespLen = 0x7;
18
Kumar Thangavelad049242020-08-31 22:27:33 +053019const char* dbusObj = "/xyz/openbmc_project/state/boot/raw";
20
21const char* dbusService = "xyz.openbmc_project.State.Boot.Raw";
Bonnie Lo41027b92022-12-16 16:21:08 +080022
23constexpr auto systemdService = "org.freedesktop.systemd1";
24constexpr auto systemdObjPath = "/org/freedesktop/systemd1";
25constexpr auto systemdInterface = "org.freedesktop.systemd1.Manager";
26
27enum class HostPowerState : uint8_t
28{
29 HOST_POWER_OFF = 0x0,
30 HOST_POWER_ON = 0x1,
31};