diff options
author | Sangeetha T S <sangeet2@in.ibm.com> | 2015-11-25 00:16:10 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-09-25 18:13:22 -0400 |
commit | 6f090d79f7ec21179a984fb59a01b32fc772814c (patch) | |
tree | 05f58056de6f2812868ee7583505dcd7c6749375 /src/import/chips/p9/procedures/hwp/pm/p9_pm.H | |
parent | d6de3a38537e649d1662d3d13d8d0c1bdac57e1e (diff) | |
download | talos-hostboot-6f090d79f7ec21179a984fb59a01b32fc772814c.tar.gz talos-hostboot-6f090d79f7ec21179a984fb59a01b32fc772814c.zip |
Level 2 - p9_pm_pss_init : FAPI 1.0 to FAPI 2.0 transliteration
Change-Id: I1742f794f5191163147dd89986fbb423ca9beb5c
RTC: 140964
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/10800
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-by: Brian T. Vanderpool <vanderp@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: Matt K. Light <mklight@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29491
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/pm/p9_pm.H')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/pm/p9_pm.H | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_pm.H b/src/import/chips/p9/procedures/hwp/pm/p9_pm.H index a97a1c421..7ed3f278f 100644 --- a/src/import/chips/p9/procedures/hwp/pm/p9_pm.H +++ b/src/import/chips/p9/procedures/hwp/pm/p9_pm.H @@ -78,6 +78,18 @@ extern const char* p9_PM_FLOW_MODE_NAME[]; +// Incase the attribute does not a have a value previously assigned, +// assign the user given default value +#define GETATTR_DEFAULT(_i_attr, _i_attr_name, _i_target, _i_value, _i_defVal){\ + FAPI_ATTR_GET(_i_attr, _i_target, _i_value); \ + if (!_i_value) \ + { \ + FAPI_DBG("Attribute %s set to default = 0x%x",_i_attr_name,_i_defVal); \ + _i_value = _i_defVal;\ + } \ + FAPI_INF("Value read from attribute %s = 0x%x", _i_attr_name,_i_value);\ + } + //------------------------------------------------------------------------------ // Constant definitions //------------------------------------------------------------------------------ |