summaryrefslogtreecommitdiffstats
path: root/sensorhandler.h
diff options
context:
space:
mode:
authorChris Austen <austenc@us.ibm.com>2015-10-22 01:37:46 -0500
committerChris Austen <austenc@us.ibm.com>2015-10-22 01:37:46 -0500
commit0012e9b47ba718bf031138c3676de207ffde0cb7 (patch)
tree843e5f7fae4ed09296907f64b3c4bf3ec03e9dd3 /sensorhandler.h
parenta80cc628162403f4c12070ccf930fb54b1a194a9 (diff)
downloadphosphor-host-ipmid-0012e9b47ba718bf031138c3676de207ffde0cb7.tar.gz
phosphor-host-ipmid-0012e9b47ba718bf031138c3676de207ffde0cb7.zip
Added Dynamic lookup for sensor types
Fixed bug where ipmi sensor readings > offset 7 where not asserted Added testcases for code Kept sensors 35,37-3A hardcoded until dbus side decides if they want to represent them.
Diffstat (limited to 'sensorhandler.h')
-rw-r--r--sensorhandler.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/sensorhandler.h b/sensorhandler.h
index da63bcb..7b89a18 100644
--- a/sensorhandler.h
+++ b/sensorhandler.h
@@ -1,13 +1,22 @@
#ifndef __HOST_IPMI_SEN_HANDLER_H__
#define __HOST_IPMI_SEN_HANDLER_H__
+#include <stdint.h>
+
// IPMI commands for net functions.
enum ipmi_netfn_sen_cmds
{
- // Get capability bits
IPMI_CMD_GET_SENSOR_TYPE = 0x2F,
IPMI_CMD_SET_SENSOR = 0x30,
-
};
+#define MAX_DBUS_PATH 128
+struct dbus_interface_t {
+ uint8_t sensornumber;
+ uint8_t sensortype;
+
+ char bus[MAX_DBUS_PATH];
+ char path[MAX_DBUS_PATH];
+ char interface[MAX_DBUS_PATH];
+};
#endif
OpenPOWER on IntegriCloud