summaryrefslogtreecommitdiffstats
path: root/sensorhandler.h
diff options
context:
space:
mode:
authorTom Joseph <tomjoseph@in.ibm.com>2017-03-09 12:34:35 +0530
committerTom Joseph <tomjoseph@in.ibm.com>2017-03-15 16:14:58 +0530
commitbe703f71a3048c72ed567c397cd7caaf5f3d1bcf (patch)
tree407801458f8f36a03353564934ece9da909caa42 /sensorhandler.h
parent28c2e7350a7d22a8314598101085b04f2b1ba274 (diff)
downloadphosphor-host-ipmid-be703f71a3048c72ed567c397cd7caaf5f3d1bcf.tar.gz
phosphor-host-ipmid-be703f71a3048c72ed567c397cd7caaf5f3d1bcf.zip
Modify set sensor reading command
The Set Sensor handling code is modified to use generated code for CPU, Core & DIMM sensors with Presence & Functional offset. Change-Id: I3b7fa4da870b745873da4732d457d793f5549ada Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Diffstat (limited to 'sensorhandler.h')
-rw-r--r--sensorhandler.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/sensorhandler.h b/sensorhandler.h
index ca27b39..e908973 100644
--- a/sensorhandler.h
+++ b/sensorhandler.h
@@ -25,4 +25,23 @@ int set_sensor_dbus_state_s(uint8_t , const char *, const char *);
int set_sensor_dbus_state_y(uint8_t , const char *, const uint8_t);
int find_openbmc_path(const char *, const uint8_t , dbus_interface_t *);
+/**
+ * @struct SetSensorReadingReq
+ *
+ * IPMI Request data for Set Sensor Reading and Event Status Command
+ */
+struct SetSensorReadingReq
+{
+ uint8_t number;
+ uint8_t operation;
+ uint8_t reading;
+ uint8_t assertOffset0_7;
+ uint8_t assertOffset8_14;
+ uint8_t deassertOffset0_7;
+ uint8_t deassertOffset8_14;
+ uint8_t eventData1;
+ uint8_t eventData2;
+ uint8_t eventData3;
+} __attribute__((packed));
+
#endif
OpenPOWER on IntegriCloud