Delphine CC Chiu | 3e30b7a | 2024-04-12 13:11:42 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Patrick Williams | 971312a | 2024-04-12 13:45:50 -0500 | [diff] [blame] | 3 | #include <chrono> |
| 4 | |
Delphine CC Chiu | 3e30b7a | 2024-04-12 13:11:42 -0500 | [diff] [blame] | 5 | constexpr inline auto POWER_DBUS_OBJECT_NAME = |
| 6 | "/xyz/openbmc_project/Chassis/Buttons/Power0"; |
| 7 | constexpr inline auto RESET_DBUS_OBJECT_NAME = |
| 8 | "/xyz/openbmc_project/Chassis/Buttons/Reset0"; |
| 9 | constexpr inline auto ID_DBUS_OBJECT_NAME = |
| 10 | "/xyz/openbmc_project/Chassis/Buttons/ID0"; |
| 11 | constexpr inline auto HS_DBUS_OBJECT_NAME = |
| 12 | "/xyz/openbmc_project/Chassis/Buttons/HostSelector"; |
| 13 | constexpr inline auto DBG_HS_DBUS_OBJECT_NAME = |
| 14 | "/xyz/openbmc_project/Chassis/Buttons/DebugHostSelector"; |
| 15 | constexpr inline auto SERIAL_CONSOLE_MUX_DBUS_OBJECT_NAME = |
| 16 | "/xyz/openbmc_project/Chassis/Buttons/SerialUartMux"; |
| 17 | |
| 18 | constexpr inline auto CHASSIS_STATE_OBJECT_NAME = |
| 19 | "/xyz/openbmc_project/state/chassis"; |
| 20 | constexpr inline auto CHASSISSYSTEM_STATE_OBJECT_NAME = |
| 21 | "/xyz/openbmc_project/state/chassis_system"; |
| 22 | constexpr inline auto HOST_STATE_OBJECT_NAME = |
| 23 | "/xyz/openbmc_project/state/host"; |
| 24 | |
| 25 | constexpr inline auto GPIO_BASE_LABEL_NAME = "1e780000.gpio"; |
| 26 | #define LOOKUP_GPIO_BASE @LOOKUP_GPIO_BASE@ |
| 27 | |
| 28 | constexpr inline auto POWER_BUTTON_PROFILE = @POWER_BUTTON_PROFILE@; |
| 29 | constexpr inline auto ID_LED_GROUP = @ID_LED_GROUP@; |
Patrick Williams | 971312a | 2024-04-12 13:45:50 -0500 | [diff] [blame] | 30 | constexpr inline const auto LONG_PRESS_TIME_MS = |
| 31 | std::chrono::milliseconds(@LONG_PRESS_TIME_MS@); |