Delphine CC Chiu | 14ddea5 | 2023-06-06 09:43:44 +0800 | [diff] [blame] | 1 | #include <phosphor-logging/lg2.hpp> |
| 2 | |
Patrick Williams | 2405ae9 | 2023-05-10 07:50:09 -0500 | [diff] [blame] | 3 | #include <cstdint> |
Kumar Thangavel | 41ad4ff | 2020-06-11 10:31:07 +0530 | [diff] [blame] | 4 | |
Bonnie Lo | 25b79bf | 2022-12-16 15:41:48 +0800 | [diff] [blame] | 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, |
Bonnie Lo | 41027b9 | 2022-12-16 16:21:08 +0800 | [diff] [blame] | 10 | CMD_OEM_SET_HOST_POWER_STATE = 0x0C, |
Kumar Thangavel | 05d0ce9 | 2022-11-17 17:53:57 +0530 | [diff] [blame] | 11 | CMD_OEM_GET_FLASH_SIZE = 0x19, |
Jayashree Dhanapal | 6c931e4 | 2022-12-05 13:09:24 +0530 | [diff] [blame] | 12 | CMD_OEM_CLEAR_CMOS = 0x25, |
Delphine CC Chiu | 14ddea5 | 2023-06-06 09:43:44 +0800 | [diff] [blame] | 13 | CMD_OEM_1S_4BYTE_POST_BUF = 0x33, |
Bonnie Lo | 25b79bf | 2022-12-16 15:41:48 +0800 | [diff] [blame] | 14 | }; |
Kumar Thangavel | ad04924 | 2020-08-31 22:27:33 +0530 | [diff] [blame] | 15 | |
Kumar Thangavel | 05d0ce9 | 2022-11-17 17:53:57 +0530 | [diff] [blame] | 16 | // Flash size response length |
| 17 | constexpr uint8_t flashSizeRespLen = 0x7; |
| 18 | |
Kumar Thangavel | ad04924 | 2020-08-31 22:27:33 +0530 | [diff] [blame] | 19 | const char* dbusObj = "/xyz/openbmc_project/state/boot/raw"; |
| 20 | |
| 21 | const char* dbusService = "xyz.openbmc_project.State.Boot.Raw"; |
Bonnie Lo | 41027b9 | 2022-12-16 16:21:08 +0800 | [diff] [blame] | 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 | }; |