diff options
author | Sangeetha T S <sangeet2@in.ibm.com> | 2015-06-03 12:52:23 -0500 |
---|---|---|
committer | Stephen Cprek <smcprek@us.ibm.com> | 2016-02-19 17:06:27 -0600 |
commit | 597dbbc480f0e34d93b3e21a4dec174845ca205e (patch) | |
tree | eaed8c074c4d63b77deed2e7f3af77997f0b01ce /src/import/chips/p9/procedures/hwp/pm/p9_pm.H | |
parent | f3e49b95aa51d81f8e919b508a1b8cee35606dae (diff) | |
download | talos-hostboot-597dbbc480f0e34d93b3e21a4dec174845ca205e.tar.gz talos-hostboot-597dbbc480f0e34d93b3e21a4dec174845ca205e.zip |
JET: Level 2, Make p9_pm_occ_control FAPI2.0 compilant
Change-Id: I8eca573dfa7f105cac89339662bb9b4126d608a8
RTC: 137017
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/18177
Tested-by: Jenkins Server
Reviewed-by: Bilicon Patil <bilpatil@in.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23758
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Tested-by: Daniel M. Crowell <dcrowell@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 | 15 |
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_ |