summaryrefslogtreecommitdiffstats
path: root/src/include/usr
diff options
context:
space:
mode:
authorRichard J. Knight <rjknight@us.ibm.com>2015-02-19 23:47:03 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-02-28 05:42:42 -0600
commitab2957e461780b42fb378abcf954baa735dc948b (patch)
treea5f04a02ee3e2198536441dc3ae227e4537c5256 /src/include/usr
parent21268010ec5ff32040321ab75267af43cec2dd89 (diff)
downloadblackbird-hostboot-ab2957e461780b42fb378abcf954baa735dc948b.tar.gz
blackbird-hostboot-ab2957e461780b42fb378abcf954baa735dc948b.zip
Update dev tree with additional sensor information
-Add sensor type, reading type and specific offsets. -Add IPMI entity ID and instance information for sensors -Include IPMI Enity instance in targets which have ipmi sensors attribute Change-Id: I02b0a5046c67e2e00af30a0c78cbcc182ae4c0cd RTC:123186 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15881 Tested-by: Jenkins Server Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr')
-rw-r--r--src/include/usr/ipmi/ipmisensor.H96
1 files changed, 96 insertions, 0 deletions
diff --git a/src/include/usr/ipmi/ipmisensor.H b/src/include/usr/ipmi/ipmisensor.H
index 7b4e3fab2..ef00bfa9e 100644
--- a/src/include/usr/ipmi/ipmisensor.H
+++ b/src/include/usr/ipmi/ipmisensor.H
@@ -48,6 +48,20 @@ namespace SENSOR
const uint8_t INVALID_TYPE = 0xFF;
/**
+ * @enum sensorReadingTypes
+ * Sensor specific completion codes, defined in IPMI Spec.
+ *
+ */
+ enum sensorReadingType
+ {
+ THRESHOLD = 0x01,
+ DIGITAL_ASSERT_DEASSERT = 0x03,
+ DIGITAL_ENABLE_DISABLE = 0x09,
+ SENSOR_SPECIFIC = 0x6f,
+ };
+
+
+ /**
* @enum procStatusSensorOffsets
* Sensor specific completion codes, defined in IPMI Spec.
*
@@ -90,6 +104,74 @@ namespace SENSOR
CRITICAL_OVER_TEMP = 0x0A,
};
+ /**
+ * @enum firmwareBootProgressSensorOffsets
+ * Boot progress specific offsets defined in IPMI Spec.
+ *
+ */
+ enum firmwareProgressSensorOffsets
+ {
+ // offset 02h
+ SYSTEM_FIRMWARE_PROGRESS = 0x02,
+ };
+
+ /**
+ * @enum discrete09_Offsets
+ *
+ * Offsets specific to IPMI sensor reading type 09
+ * digital discrete senosrs. These offsets result in
+ * Device Enabled or Device Disabled events in the
+ * BMC event log.
+ *
+ */
+ enum discrete09_Offsets
+ {
+ // offset 00h
+ DEVICE_DISABLED = 0x0,
+
+ //offset 01h
+ DEVICE_ENABLED = 0x1,
+ };
+
+ /**
+ * @enum discrete03_Offsets
+ *
+ * Offsets specific to IPMI sensor reading type 03
+ * digital discrete senosrs. These offsets result in generic
+ * State Asserted or State Deasserted events in the
+ * BMC event log.
+ *
+ */
+ enum discrete03_Offsets
+ {
+ // offset 00h
+ DEASSERTED = 0x00,
+
+ //offset 01h
+ ASSERTED = 0x01,
+ };
+
+ /**
+ * @enum acpiPowerState_Offsets
+ *
+ * Offsets specific to IPMI ACPI Power state
+ * senosrs. These offsets result in power
+ * state messages in the BMC event log.
+ *
+ */
+ enum acpiPowerState_Offsets
+ {
+ // offset 0h
+ S0_G0_WORKING = 0x00,
+
+ // offset 05h
+ G5_SOFT_OFF = 0x05,
+
+ //offset 0Bh
+ LEGACY_ON = 0x0B,
+
+ };
+
//** Bit definition for set sensor reading cmd operation field
// [7:6] 10b - write given values to event data bytes let BMC handle
// offset in event data 1 when an external event is
@@ -827,6 +909,20 @@ namespace SENSOR
errlHndl_t getAPSSChannelSensorNumbers(
const uint16_t (* &o_sensor_numbers)[16]);
+ /**
+ * Helper function to return a mask of the supported masks for the
+ * sensor passed in.
+ *
+ * @param[i] - sensor name to determine the offset for.
+ * @param[o] - sensor reading type, defined in IPMI spec for the
+ * passed in sensor number.
+ *
+ *
+ * @return sensor offsets
+ */
+ uint16_t getSensorOffsets(TARGETING::SENSOR_NAME i_name,
+ sensorReadingType &o_readType );
+
}; // end namespace
OpenPOWER on IntegriCloud