xref: /openbmc/fb-ipmi-oem/include/biccommands.hpp (revision 14ddea58be2119d6ae5e4f68838e2e68fe9bdf04)
1  #include <phosphor-logging/lg2.hpp>
2  
3  #include <cstdint>
4  
5  enum 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,
10      CMD_OEM_SET_HOST_POWER_STATE = 0x0C,
11      CMD_OEM_GET_FLASH_SIZE = 0x19,
12      CMD_OEM_CLEAR_CMOS = 0x25,
13      CMD_OEM_1S_4BYTE_POST_BUF = 0x33,
14  };
15  
16  // Flash size response length
17  constexpr uint8_t flashSizeRespLen = 0x7;
18  
19  const char* dbusObj = "/xyz/openbmc_project/state/boot/raw";
20  
21  const char* dbusService = "xyz.openbmc_project.State.Boot.Raw";
22  
23  constexpr auto systemdService = "org.freedesktop.systemd1";
24  constexpr auto systemdObjPath = "/org/freedesktop/systemd1";
25  constexpr auto systemdInterface = "org.freedesktop.systemd1.Manager";
26  
27  enum class HostPowerState : uint8_t
28  {
29      HOST_POWER_OFF = 0x0,
30      HOST_POWER_ON = 0x1,
31  };
32