summaryrefslogtreecommitdiffstats
path: root/sensorhandler.h
diff options
context:
space:
mode:
authorDhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>2018-01-23 04:47:06 -0600
committerTom Joseph <tomjoseph@in.ibm.com>2018-02-06 05:17:46 +0000
commit5c0beec1c30e2702e18359989ed16052ae222767 (patch)
tree8302db55f3c85bf3d8214c14f9bc49f09efc56c7 /sensorhandler.h
parentb1e8fba50af2310136c6f92ab8765bf27aa5cec2 (diff)
downloadphosphor-host-ipmid-5c0beec1c30e2702e18359989ed16052ae222767.tar.gz
phosphor-host-ipmid-5c0beec1c30e2702e18359989ed16052ae222767.zip
Support Get Sensor Thresholds Command
Adding support for sensor thresholds command Resolves openbmc/openbmc#2624 Change-Id: I904c1b18c8709bceb7ecb7eec6e8e42e1f51525a Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
Diffstat (limited to 'sensorhandler.h')
-rw-r--r--sensorhandler.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sensorhandler.h b/sensorhandler.h
index 8995447..1cf43ca 100644
--- a/sensorhandler.h
+++ b/sensorhandler.h
@@ -13,6 +13,7 @@ enum ipmi_netfn_sen_cmds
IPMI_CMD_GET_SENSOR_READING = 0x2D,
IPMI_CMD_GET_SENSOR_TYPE = 0x2F,
IPMI_CMD_SET_SENSOR = 0x30,
+ IPMI_CMD_GET_SENSOR_THRESHOLDS = 0x27,
};
// Discrete sensor types.
@@ -206,6 +207,16 @@ inline void set_owner_lun_channel(uint8_t channel, SensorDataRecordKey* key)
} // namespace key
+/** @struct GetSensorThresholdsResponse
+ *
+ * Response structure for Get Sensor Thresholds command
+ */
+struct GetSensorThresholdsResponse
+{
+ uint8_t validMask; //Indicates which values are valid
+ uint8_t data[6]; //Container for threshold values
+} __attribute__((packed));
+
// Body - full record
#define FULL_RECORD_ID_STR_MAX_LENGTH 16
struct SensorDataFullRecordBody
OpenPOWER on IntegriCloud