summaryrefslogtreecommitdiffstats
path: root/sensorhandler.h
diff options
context:
space:
mode:
authorEmily Shaffer <emilyshaffer@google.com>2017-04-05 08:53:21 -0700
committerEmily Shaffer <emilyshaffer@google.com>2017-06-06 10:55:40 -0700
commit1fabf229f4cc5ae3121d7fdd738f683ff5401e95 (patch)
treed2be10d9780b14cd86b8d34a23ed4b8943e5b236 /sensorhandler.h
parent7117441c5fbd7a8a0adbff7a363feedb8511c4d8 (diff)
downloadphosphor-host-ipmid-1fabf229f4cc5ae3121d7fdd738f683ff5401e95.tar.gz
phosphor-host-ipmid-1fabf229f4cc5ae3121d7fdd738f683ff5401e95.zip
sensorhandler: modify Get Sensor Reading to use dbus interface
Change-Id: Ice16bda6c151b0865f3fa6e8234b8e2456d5b887 Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
Diffstat (limited to 'sensorhandler.h')
-rw-r--r--sensorhandler.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sensorhandler.h b/sensorhandler.h
index d58f640..cedb2e4 100644
--- a/sensorhandler.h
+++ b/sensorhandler.h
@@ -11,6 +11,15 @@ enum ipmi_netfn_sen_cmds
IPMI_CMD_SET_SENSOR = 0x30,
};
+// Discrete sensor types.
+enum ipmi_sensor_types
+{
+ IPMI_SENSOR_TEMP = 0x01,
+ IPMI_SENSOR_VOLTAGE = 0x02,
+ IPMI_SENSOR_CURRENT = 0x03,
+ IPMI_SENSOR_FAN = 0x04,
+};
+
#define MAX_DBUS_PATH 128
struct dbus_interface_t {
uint8_t sensornumber;
OpenPOWER on IntegriCloud