summaryrefslogtreecommitdiffstats
path: root/occ_device.cpp
diff options
context:
space:
mode:
authorVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>2017-06-28 19:17:28 +0530
committerVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>2017-07-06 14:56:34 +0000
commit32e84e98efd51509aa18ab2f3538bcbc6689bb0d (patch)
treed19c0e92e84fc4bdda35fcf4811341706e3136ff /occ_device.cpp
parent307d80b3d78efc669f38a63938371adcc6934391 (diff)
downloadopenpower-occ-control-32e84e98efd51509aa18ab2f3538bcbc6689bb0d.tar.gz
openpower-occ-control-32e84e98efd51509aa18ab2f3538bcbc6689bb0d.zip
Add Support to do device bind and unbind based on OCC status
Fixes openbmc/openbmc#1698 Change-Id: Iaa33c3065b0358b62e3ec7e39d4b57c6b9d181e1 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Diffstat (limited to 'occ_device.cpp')
-rw-r--r--occ_device.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/occ_device.cpp b/occ_device.cpp
new file mode 100644
index 0000000..865aef2
--- /dev/null
+++ b/occ_device.cpp
@@ -0,0 +1,12 @@
+#include "occ_device.hpp"
+
+namespace open_power
+{
+namespace occ
+{
+
+fs::path Device::bindPath = fs::path(OCC_HWMON_PATH) / "bind";
+fs::path Device::unBindPath = fs::path(OCC_HWMON_PATH) / "unbind";
+
+} // namespace occ
+} // namespace open_power
OpenPOWER on IntegriCloud