xref: /openbmc/phosphor-power/types.hpp (revision 065942290197b436683bca868bf8da755378111d)
1cfc040c7SLei YU #pragma once
2e83604beSCheng C Yang #include <array>
3cfc040c7SLei YU /* const expressions shared in this repository */
4cfc040c7SLei YU 
5cfc040c7SLei YU constexpr auto ASSOCIATION_IFACE = "xyz.openbmc_project.Association";
6cfc040c7SLei YU constexpr auto LOGGING_IFACE = "xyz.openbmc_project.Logging.Entry";
7cfc040c7SLei YU constexpr auto INVENTORY_IFACE = "xyz.openbmc_project.Inventory.Item";
8cfc040c7SLei YU constexpr auto POWER_IFACE = "org.openbmc.control.Power";
9cfc040c7SLei YU constexpr auto INVENTORY_MGR_IFACE = "xyz.openbmc_project.Inventory.Manager";
10cfc040c7SLei YU constexpr auto ASSET_IFACE = "xyz.openbmc_project.Inventory.Decorator.Asset";
11e8c9cd64SLei YU constexpr auto PSU_INVENTORY_IFACE =
12e8c9cd64SLei YU     "xyz.openbmc_project.Inventory.Item.PowerSupply";
13070c1bc6SGeorge Liu constexpr auto OPERATIONAL_STATE_IFACE =
14070c1bc6SGeorge Liu     "xyz.openbmc_project.State.Decorator.OperationalStatus";
151d7a7df8SBrandon Wyman constexpr auto VERSION_IFACE = "xyz.openbmc_project.Software.Version";
160975eaf4SMatt Spinler constexpr auto AVAILABILITY_IFACE =
170975eaf4SMatt Spinler     "xyz.openbmc_project.State.Decorator.Availability";
18ca1e9ea1SMatt Spinler constexpr auto ASSOC_DEF_IFACE = "xyz.openbmc_project.Association.Definitions";
19*06594229SMatt Spinler constexpr auto CHASSIS_IFACE = "xyz.openbmc_project.Inventory.Item.Chassis";
201d7a7df8SBrandon Wyman #ifdef IBM_VPD
211d7a7df8SBrandon Wyman constexpr auto DINF_IFACE = "com.ibm.ipzvpd.DINF";
221d7a7df8SBrandon Wyman constexpr auto VINI_IFACE = "com.ibm.ipzvpd.VINI";
231d7a7df8SBrandon Wyman #endif
24cfc040c7SLei YU 
25cfc040c7SLei YU constexpr auto ENDPOINTS_PROP = "endpoints";
26cfc040c7SLei YU constexpr auto MESSAGE_PROP = "Message";
27cfc040c7SLei YU constexpr auto RESOLVED_PROP = "Resolved";
28cfc040c7SLei YU constexpr auto PRESENT_PROP = "Present";
29070c1bc6SGeorge Liu constexpr auto FUNCTIONAL_PROP = "Functional";
300975eaf4SMatt Spinler constexpr auto AVAILABLE_PROP = "Available";
31ca1e9ea1SMatt Spinler constexpr auto ASSOC_PROP = "Associations";
32cfc040c7SLei YU 
33cfc040c7SLei YU constexpr auto INVENTORY_OBJ_PATH = "/xyz/openbmc_project/inventory";
34cfc040c7SLei YU constexpr auto POWER_OBJ_PATH = "/org/openbmc/control/power0";
35cfc040c7SLei YU 
36cfc040c7SLei YU constexpr auto INPUT_HISTORY = "input_history";
37e83604beSCheng C Yang 
38e83604beSCheng C Yang constexpr std::array<const char*, 1> psuEventInterface = {
39e83604beSCheng C Yang     "xyz.openbmc_project.State.Decorator.OperationalStatus"};
40