pseq: Retrieve compatible systems from EM
Retrieve compatible systems value from entity manager using appropriate
D-Bus methods. Will be used to load correct configuration file
containing system rail and pin information.
Signed-off-by: Jim Wright <jlwright@us.ibm.com>
Change-Id: I040b4fcb182f752e5ac1a3c930b53464eebef2da
diff --git a/phosphor-power-sequencer/src/ucd90320_monitor.hpp b/phosphor-power-sequencer/src/ucd90320_monitor.hpp
index 9512190..ce6af97 100644
--- a/phosphor-power-sequencer/src/ucd90320_monitor.hpp
+++ b/phosphor-power-sequencer/src/ucd90320_monitor.hpp
@@ -4,6 +4,7 @@
#include "power_sequencer_monitor.hpp"
#include <sdbusplus/bus.hpp>
+#include <sdbusplus/bus/match.hpp>
namespace phosphor::power::sequencer
{
@@ -32,6 +33,12 @@
UCD90320Monitor(sdbusplus::bus::bus& bus, std::uint8_t i2cBus,
const std::uint16_t i2cAddress);
+ /**
+ * Callback function to handle interfacesAdded D-Bus signals
+ * @param msg Expanded sdbusplus message data
+ */
+ void interfacesAddedHandler(sdbusplus::message::message& msg);
+
private:
/**
* The D-Bus bus object
@@ -39,9 +46,21 @@
sdbusplus::bus::bus& bus;
/**
+ * The match to Entity Manager interfaces added.
+ */
+ sdbusplus::bus::match_t match;
+
+ /**
* The read/write interface to this hardware
*/
- pmbus::PMBus interface;
+ pmbus::PMBus pmbusInterface;
+
+ /**
+ * Finds the list of compatible system types using D-Bus methods.
+ * This list is used to find the correct JSON configuration file for the
+ * current system.
+ */
+ void findCompatibleSystemTypes();
};
} // namespace phosphor::power::sequencer