summaryrefslogtreecommitdiffstats
path: root/src/import
diff options
context:
space:
mode:
authorSangeetha T S <sangeet2@in.ibm.com>2015-11-25 00:16:10 -0600
committerSachin Gupta <sgupta2m@in.ibm.com>2016-09-23 02:33:22 -0400
commitf1467447bc79d2d6e773145fd9ee9437c1bae939 (patch)
treef118f8765135ebd1603433016be17dc22cfb4934 /src/import
parent86bbfa8e1deba955eae6cb556e011a5cc2ec3cc2 (diff)
downloadtalos-sbe-f1467447bc79d2d6e773145fd9ee9437c1bae939.tar.gz
talos-sbe-f1467447bc79d2d6e773145fd9ee9437c1bae939.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/29490 Reviewed-by: Hostboot Team <hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/import')
-rw-r--r--src/import/chips/p9/procedures/hwp/pm/p9_pm.H12
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 536e9f34..f8c7d733 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
//------------------------------------------------------------------------------
OpenPOWER on IntegriCloud