xref: /openbmc/phosphor-power/types.hpp (revision 06594229)
1 #pragma once
2 #include <array>
3 /* const expressions shared in this repository */
4 
5 constexpr auto ASSOCIATION_IFACE = "xyz.openbmc_project.Association";
6 constexpr auto LOGGING_IFACE = "xyz.openbmc_project.Logging.Entry";
7 constexpr auto INVENTORY_IFACE = "xyz.openbmc_project.Inventory.Item";
8 constexpr auto POWER_IFACE = "org.openbmc.control.Power";
9 constexpr auto INVENTORY_MGR_IFACE = "xyz.openbmc_project.Inventory.Manager";
10 constexpr auto ASSET_IFACE = "xyz.openbmc_project.Inventory.Decorator.Asset";
11 constexpr auto PSU_INVENTORY_IFACE =
12     "xyz.openbmc_project.Inventory.Item.PowerSupply";
13 constexpr auto OPERATIONAL_STATE_IFACE =
14     "xyz.openbmc_project.State.Decorator.OperationalStatus";
15 constexpr auto VERSION_IFACE = "xyz.openbmc_project.Software.Version";
16 constexpr auto AVAILABILITY_IFACE =
17     "xyz.openbmc_project.State.Decorator.Availability";
18 constexpr auto ASSOC_DEF_IFACE = "xyz.openbmc_project.Association.Definitions";
19 constexpr auto CHASSIS_IFACE = "xyz.openbmc_project.Inventory.Item.Chassis";
20 #ifdef IBM_VPD
21 constexpr auto DINF_IFACE = "com.ibm.ipzvpd.DINF";
22 constexpr auto VINI_IFACE = "com.ibm.ipzvpd.VINI";
23 #endif
24 
25 constexpr auto ENDPOINTS_PROP = "endpoints";
26 constexpr auto MESSAGE_PROP = "Message";
27 constexpr auto RESOLVED_PROP = "Resolved";
28 constexpr auto PRESENT_PROP = "Present";
29 constexpr auto FUNCTIONAL_PROP = "Functional";
30 constexpr auto AVAILABLE_PROP = "Available";
31 constexpr auto ASSOC_PROP = "Associations";
32 
33 constexpr auto INVENTORY_OBJ_PATH = "/xyz/openbmc_project/inventory";
34 constexpr auto POWER_OBJ_PATH = "/org/openbmc/control/power0";
35 
36 constexpr auto INPUT_HISTORY = "input_history";
37 
38 constexpr std::array<const char*, 1> psuEventInterface = {
39     "xyz.openbmc_project.State.Decorator.OperationalStatus"};
40