blob: dbc4eb274771bb404d1cb95c04f48e9278cdd943 [file] [log] [blame]
Sunny Srivastavafa5e4d32023-03-12 11:59:49 -05001#pragma once
2
3#include <cstdint>
4
5namespace vpd
6{
7namespace constants
8{
9static constexpr auto KEYWORD_SIZE = 2;
10static constexpr auto RECORD_SIZE = 4;
11static constexpr auto INDENTATION = 4;
12static constexpr auto SUCCESS = 0;
13static constexpr auto FAILURE = -1;
14
15// To be explicitly used for string comparison.
16static constexpr auto STR_CMP_SUCCESS = 0;
17
18constexpr auto inventoryManagerService =
19 "xyz.openbmc_project.Inventory.Manager";
20constexpr auto baseInventoryPath = "/xyz/openbmc_project/inventory";
Anupama B R844f88f2025-01-26 02:47:06 -060021constexpr auto pimPersistPath = "/var/lib/phosphor-inventory-manager";
Sunny Srivastavafa5e4d32023-03-12 11:59:49 -050022constexpr auto ipzVpdInfPrefix = "com.ibm.ipzvpd.";
23
24constexpr auto vpdManagerService = "com.ibm.VPD.Manager";
25constexpr auto vpdManagerObjectPath = "/com/ibm/VPD/Manager";
26constexpr auto vpdManagerInfName = "com.ibm.VPD.Manager";
27constexpr auto inventoryItemInf = "xyz.openbmc_project.Inventory.Item";
Sunny Srivastavadf9e5542025-02-12 12:33:07 -060028constexpr auto viniInf = "com.ibm.ipzvpd.VINI";
Sunny Srivastavafa5e4d32023-03-12 11:59:49 -050029constexpr auto locationCodeInf = "com.ibm.ipzvpd.Location";
30constexpr auto assetInf = "xyz.openbmc_project.Inventory.Decorator.Asset";
31constexpr auto objectMapperService = "xyz.openbmc_project.ObjectMapper";
32constexpr auto objectMapperObjectPath = "/xyz/openbmc_project/object_mapper";
33constexpr auto objectMapperInfName = "xyz.openbmc_project.ObjectMapper";
Anupama B R6be2c012025-01-23 02:59:27 -060034constexpr auto chassisStateManagerService = "xyz.openbmc_project.State.Chassis";
35constexpr auto chassisStateManagerObjectPath =
36 "/xyz/openbmc_project/state/chassis0";
37constexpr auto chassisStateManagerInfName = "xyz.openbmc_project.State.Chassis";
Souvik Roy7f749a62025-02-10 22:23:41 -060038constexpr auto dbusService = "org.freedesktop.DBus";
39constexpr auto dbusObjectPath = "/org/freedesktop/DBus";
40constexpr auto dbusInterface = "org.freedesktop.DBus";
41constexpr auto biosConfigMgrService = "xyz.openbmc_project.BIOSConfigManager";
Sunny Srivastavadf9e5542025-02-12 12:33:07 -060042constexpr auto networkInf =
43 "xyz.openbmc_project.Inventory.Item.NetworkInterface";
44constexpr auto pcieSlotInf = "xyz.openbmc_project.Inventory.Item.PCIeSlot";
45constexpr auto slotNumInf = "xyz.openbmc_project.Inventory.Decorator.Slot";
46constexpr auto i2cDeviceInf =
47 "xyz.openbmc_project.Inventory.Decorator.I2CDevice";
Anupama B R844f88f2025-01-26 02:47:06 -060048constexpr auto vpdManagerProcessName = "vpd-manager";
Souvik Roy36dba302025-01-23 03:38:04 -060049constexpr auto biosConfigMgrObjPath =
50 "/xyz/openbmc_project/bios_config/manager";
51constexpr auto biosConfigMgrInterface =
52 "xyz.openbmc_project.BIOSConfig.Manager";
53
54static constexpr auto VALUE_0 = 0;
55static constexpr auto VALUE_1 = 1;
56static constexpr auto VALUE_2 = 2;
57static constexpr auto VALUE_3 = 3;
58static constexpr auto VALUE_4 = 4;
59static constexpr auto VALUE_5 = 5;
60static constexpr auto VALUE_6 = 6;
61static constexpr auto VALUE_7 = 7;
62static constexpr auto VALUE_8 = 8;
63static constexpr auto VALUE_32 = 32;
Sunny Srivastavafa5e4d32023-03-12 11:59:49 -050064} // namespace constants
65} // namespace vpd