Shutdown system on GPU over-temps
Resolves openbmc/openbmc#1726
Change-Id: If3263678bc03df7714f31aa097f38ee6c09389f4
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/power-sequencer/ucd90160.hpp b/power-sequencer/ucd90160.hpp
index b82711d..f14a99e 100644
--- a/power-sequencer/ucd90160.hpp
+++ b/power-sequencer/ucd90160.hpp
@@ -3,6 +3,7 @@
#include <algorithm>
#include <experimental/filesystem>
#include <map>
+#include <sdbusplus/bus.hpp>
#include <vector>
#include "device.hpp"
#include "gpio.hpp"
@@ -40,8 +41,9 @@
* Constructor
*
* @param[in] instance - the device instance number
+ * @param[in] bus - D-Bus bus object
*/
- UCD90160(size_t instance);
+ UCD90160(size_t instance, sdbusplus::bus::bus& bus);
/**
* Analyzes the device for errors when the device is
@@ -295,6 +297,11 @@
std::experimental::filesystem::path gpioDevice;
/**
+ * The D-Bus bus object
+ */
+ sdbusplus::bus::bus& bus;
+
+ /**
* Map of device instance to the instance specific data
*/
static const ucd90160::DeviceMap deviceMap;