xref: /openbmc/openpower-vpd-parser/vpd-tool/include/tool_constants.hpp (revision 844f88f984ded76c3b68fab7356a48accb88fec3)
1fa5e4d32SSunny Srivastava #pragma once
2fa5e4d32SSunny Srivastava 
3fa5e4d32SSunny Srivastava #include <cstdint>
4fa5e4d32SSunny Srivastava 
5fa5e4d32SSunny Srivastava namespace vpd
6fa5e4d32SSunny Srivastava {
7fa5e4d32SSunny Srivastava namespace constants
8fa5e4d32SSunny Srivastava {
9fa5e4d32SSunny Srivastava static constexpr auto KEYWORD_SIZE = 2;
10fa5e4d32SSunny Srivastava static constexpr auto RECORD_SIZE = 4;
11fa5e4d32SSunny Srivastava static constexpr auto INDENTATION = 4;
12fa5e4d32SSunny Srivastava static constexpr auto SUCCESS = 0;
13fa5e4d32SSunny Srivastava static constexpr auto FAILURE = -1;
14fa5e4d32SSunny Srivastava 
15fa5e4d32SSunny Srivastava // To be explicitly used for string comparison.
16fa5e4d32SSunny Srivastava static constexpr auto STR_CMP_SUCCESS = 0;
17fa5e4d32SSunny Srivastava 
18fa5e4d32SSunny Srivastava constexpr auto inventoryManagerService =
19fa5e4d32SSunny Srivastava     "xyz.openbmc_project.Inventory.Manager";
20fa5e4d32SSunny Srivastava constexpr auto baseInventoryPath = "/xyz/openbmc_project/inventory";
21*844f88f9SAnupama B R constexpr auto pimPersistPath = "/var/lib/phosphor-inventory-manager";
22fa5e4d32SSunny Srivastava constexpr auto ipzVpdInfPrefix = "com.ibm.ipzvpd.";
23fa5e4d32SSunny Srivastava 
24fa5e4d32SSunny Srivastava constexpr auto vpdManagerService = "com.ibm.VPD.Manager";
25fa5e4d32SSunny Srivastava constexpr auto vpdManagerObjectPath = "/com/ibm/VPD/Manager";
26fa5e4d32SSunny Srivastava constexpr auto vpdManagerInfName = "com.ibm.VPD.Manager";
27fa5e4d32SSunny Srivastava constexpr auto inventoryItemInf = "xyz.openbmc_project.Inventory.Item";
28df9e554fSSunny Srivastava constexpr auto viniInf = "com.ibm.ipzvpd.VINI";
29fa5e4d32SSunny Srivastava constexpr auto locationCodeInf = "com.ibm.ipzvpd.Location";
30fa5e4d32SSunny Srivastava constexpr auto assetInf = "xyz.openbmc_project.Inventory.Decorator.Asset";
31fa5e4d32SSunny Srivastava constexpr auto objectMapperService = "xyz.openbmc_project.ObjectMapper";
32fa5e4d32SSunny Srivastava constexpr auto objectMapperObjectPath = "/xyz/openbmc_project/object_mapper";
33fa5e4d32SSunny Srivastava constexpr auto objectMapperInfName = "xyz.openbmc_project.ObjectMapper";
346be2c015SAnupama B R constexpr auto chassisStateManagerService = "xyz.openbmc_project.State.Chassis";
356be2c015SAnupama B R constexpr auto chassisStateManagerObjectPath =
366be2c015SAnupama B R     "/xyz/openbmc_project/state/chassis0";
376be2c015SAnupama B R constexpr auto chassisStateManagerInfName = "xyz.openbmc_project.State.Chassis";
387f749a6fSSouvik Roy constexpr auto dbusService = "org.freedesktop.DBus";
397f749a6fSSouvik Roy constexpr auto dbusObjectPath = "/org/freedesktop/DBus";
407f749a6fSSouvik Roy constexpr auto dbusInterface = "org.freedesktop.DBus";
417f749a6fSSouvik Roy constexpr auto biosConfigMgrService = "xyz.openbmc_project.BIOSConfigManager";
42df9e554fSSunny Srivastava constexpr auto networkInf =
43df9e554fSSunny Srivastava     "xyz.openbmc_project.Inventory.Item.NetworkInterface";
44df9e554fSSunny Srivastava constexpr auto pcieSlotInf = "xyz.openbmc_project.Inventory.Item.PCIeSlot";
45df9e554fSSunny Srivastava constexpr auto slotNumInf = "xyz.openbmc_project.Inventory.Decorator.Slot";
46df9e554fSSunny Srivastava constexpr auto i2cDeviceInf =
47df9e554fSSunny Srivastava     "xyz.openbmc_project.Inventory.Decorator.I2CDevice";
48*844f88f9SAnupama B R constexpr auto vpdManagerProcessName = "vpd-manager";
49fa5e4d32SSunny Srivastava } // namespace constants
50fa5e4d32SSunny Srivastava } // namespace vpd
51