summaryrefslogtreecommitdiffstats
path: root/src/include/usr
diff options
context:
space:
mode:
authorRichard J. Knight <rjknight@us.ibm.com>2014-12-10 06:34:26 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-01-16 14:01:04 -0600
commit5236a087c01445bf80b7883e7cb9bd50540ce138 (patch)
treec0c865b63e8084905964a1ea181474f5543be4fb /src/include/usr
parent502ab08f36997744743ef03dea7dc4bc882d9af1 (diff)
downloadtalos-hostboot-5236a087c01445bf80b7883e7cb9bd50540ce138.tar.gz
talos-hostboot-5236a087c01445bf80b7883e7cb9bd50540ce138.zip
Add target to sensor number interface.
Added routine to return the fault sensor number from a target Change-Id: I4f3b48b145af243e920b0d0414ebfeb677080d49 RTC:1196220 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14833 Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr')
-rw-r--r--src/include/usr/ipmi/ipmisensor.H22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/include/usr/ipmi/ipmisensor.H b/src/include/usr/ipmi/ipmisensor.H
index e27ce84b6..4b266e1b5 100644
--- a/src/include/usr/ipmi/ipmisensor.H
+++ b/src/include/usr/ipmi/ipmisensor.H
@@ -249,6 +249,14 @@ namespace SENSOR
setSensorReadingRequest *& io_data,
IPMI::completion_code& o_completion_code );
+ /**
+ * @brief return the sensor number
+ *
+ * @return sensor_number - sensor number for this sensor
+ *
+ */
+ uint8_t getSensorNumber();
+
protected:
/**
@@ -298,10 +306,6 @@ namespace SENSOR
SensorBase(const SensorBase& thing );
- // helper function to get sensor number attribute
- // of passed in target
- uint16_t getSensorNumber();
-
};
/**
@@ -715,6 +719,16 @@ namespace SENSOR
};
+ /*
+ * @brief Return the fault sensor number for a target
+ * Will return either the status sensor or Fault sensor number for a
+ * given target. If the target passed in does not have either of those
+ * sensor types, the "System Error" sensor number will be returned.
+ *
+ */
+ uint8_t getFaultSensorNumber(TARGETING::Target * i_pTarget );
+
+
/**
* @brief Update DIMM/CORE/Processor status sensors on the BMC.
* Update the present/functional status on the BMC for status sensors
OpenPOWER on IntegriCloud