summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/pm/p9_pm.H
diff options
context:
space:
mode:
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.H15
1 files changed, 11 insertions, 4 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 e6a6d5056..0171e91a7 100644
--- a/src/import/chips/p9/procedures/hwp/pm/p9_pm.H
+++ b/src/import/chips/p9/procedures/hwp/pm/p9_pm.H
@@ -25,7 +25,7 @@
// *HWP Backup HWP Owner: Greg Still <stillgs@us.ibm.com>
// *HWP FW Owner : Bilicon Patil <bilpatil@in.ibm.com>
// *HWP Team : PM
-// *HWP Level : 1
+// *HWP Level : 2
// *HWP Consumed by : HS
#ifndef _P9_PM_H_
@@ -35,9 +35,15 @@
// Includes
//------------------------------------------------------------------------------
-#if 0 // Use appropriate scom address file
- #include <abc_scom_addresses.H>
-#endif
+//------------------------------------------------------------------------------
+// Macro Defintions
+//------------------------------------------------------------------------------
+
+// Create a multi-bit mask of @a n bits starting at bit @a b
+#define BITS(b, n) ((0xffffffffffffffffull << (64 - (n))) >> (b))
+
+// Create a single bit mask at bit @a b
+#define BIT(b) BITS((b), 1)
//------------------------------------------------------------------------------
// Constant definitions
@@ -59,4 +65,5 @@ enum PM_FLOW_MODE
} // end of namespace p9pm
+
#endif // _P9_PM_H_
OpenPOWER on IntegriCloud