diff options
Diffstat (limited to 'src/include/usr/ipmi/ipmisensor.H')
| -rw-r--r-- | src/include/usr/ipmi/ipmisensor.H | 22 |
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 |

