Handle OCC poll changes for per chip power data
Handle OCC poll change for per chip memory and processor data.
and Provide the data to Redfish
Change-Id: I88725599ec70d61fb43c1699520ea17ccac91243
Signed-off-by: Sheldon Bailey <baileysh@us.ibm.com>
diff --git a/occ_manager.hpp b/occ_manager.hpp
index fa44ed0..fa34bf4 100644
--- a/occ_manager.hpp
+++ b/occ_manager.hpp
@@ -58,6 +58,9 @@
constexpr auto ALTITUDE_INTERFACE = "xyz.openbmc_project.Sensor.Value";
constexpr auto ALTITUDE_PROP = "Value";
+constexpr auto EXTN_LABEL_PWRM_MEMORY_POWER = "5057524d";
+constexpr auto EXTN_LABEL_PWRP_PROCESSOR_POWER = "50575250";
+
/** @class Manager
* @brief Builds and manages OCC objects
*/
@@ -421,6 +424,13 @@
void readTempSensors(const fs::path& path, uint32_t id);
/**
+ * @brief Trigger OCC driver to read the extended sensors.
+ * @param[in] path - path of the OCC sensors.
+ * @param[in] id - Id of the OCC.
+ * */
+ void readExtnSensors(const fs::path& path, uint32_t id);
+
+ /**
* @brief Trigger OCC driver to read the power sensors.
* @param[in] path - path of the OCC sensors.
* @param[in] id - Id of the OCC.