summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMatt Derksen <mderkse1@us.ibm.com>2018-01-11 09:28:55 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-01-16 11:34:14 -0500
commit722bf1861db9ae16c61291f2fb47deb7ddfe74aa (patch)
tree2fc03bb099bcf619bc8cd9b405a6e6ee1a75a846 /src/include
parentdfb142acec4374e23a3de5fd45b232b8acd6403b (diff)
downloadtalos-hostboot-722bf1861db9ae16c61291f2fb47deb7ddfe74aa.tar.gz
talos-hostboot-722bf1861db9ae16c61291f2fb47deb7ddfe74aa.zip
Fix setting hbVolatile and RebootControl sensors
Setting sensor to 2 equates to BMC setting of 1, Setting sensor to 1 equates to BMC setting of 0. Change-Id: Ib3c4b4a144a8fad5bd4f93be88bbe0ff7476ab64 RTC: 180772 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/51787 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Adriana Kobylak <anoo@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/usr/ipmi/ipmisensor.H18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/include/usr/ipmi/ipmisensor.H b/src/include/usr/ipmi/ipmisensor.H
index 676833309..4da69dc0c 100644
--- a/src/include/usr/ipmi/ipmisensor.H
+++ b/src/include/usr/ipmi/ipmisensor.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2014,2017 */
+/* Contributors Listed Below - COPYRIGHT 2014,2018 */
/* [+] Google Inc. */
/* [+] International Business Machines Corp. */
/* */
@@ -655,12 +655,14 @@ namespace SENSOR
public:
/**
* @enum autoRebootSetting
- * enum to define the contr
+ * enum to define the control sensor state
+ * Note: bit based setting: 0 -> 0x01
+ * 1 -> 0x02
*/
enum autoRebootSetting
{
- DISABLE_REBOOTS = 0x00, // keep current state
- ENABLE_REBOOTS = 0x01, // allow reboot for FIRDATA analysis
+ DISABLE_REBOOTS = 0x01, // keep current state
+ ENABLE_REBOOTS = 0x02, // allow reboot for FIRDATA analysis
};
/**
@@ -931,12 +933,14 @@ namespace SENSOR
/**
* @enum hbVolatileSetting
- * enum to define the contr
+ * enum to define the HB volatile sensor setting
+ * Note: bit based setting: BMC 0 -> 0x01 (off)
+ * BMC 1 -> 0x02 (on)
*/
enum hbVolatileSetting
{
- DISABLE_VOLATILE = 0x00, // (default)
- ENABLE_VOLATILE = 0x01, // allow volatile memory to be cleared
+ DISABLE_VOLATILE = 0x01, // (default)
+ ENABLE_VOLATILE = 0x02, // allow volatile memory to be cleared
};
/**
OpenPOWER on IntegriCloud