summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures
diff options
context:
space:
mode:
authorSangeetha T S <sangeet2@in.ibm.com>2016-01-27 06:56:31 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-02-26 17:27:38 -0600
commit3008b790dad9dc881f23fad8e4811e45e97a602f (patch)
tree73d9e67639dc92944def00b1a1a028f15ae96047 /src/import/chips/p9/procedures
parent47c6c834b46b0e9985ce3dead1fe4f83aaafc8c4 (diff)
downloadtalos-hostboot-3008b790dad9dc881f23fad8e4811e45e97a602f.tar.gz
talos-hostboot-3008b790dad9dc881f23fad8e4811e45e97a602f.zip
p9_pm_ocb_indir_access: Modify the interface to accept integer data
Change-Id: I118adb076b9119759cc1dba64a3c4b5bb3c17f76 RTC: 145593 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23880 Tested-by: Jenkins Server Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/24793 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures')
-rw-r--r--src/import/chips/p9/procedures/hwp/pm/p9_pm.H10
1 files changed, 7 insertions, 3 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 f17367344..a9972c3e1 100644
--- a/src/import/chips/p9/procedures/hwp/pm/p9_pm.H
+++ b/src/import/chips/p9/procedures/hwp/pm/p9_pm.H
@@ -7,7 +7,7 @@
/* */
/* EKB Project */
/* */
-/* COPYRIGHT 2015 */
+/* COPYRIGHT 2015,2016 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -40,10 +40,14 @@
//------------------------------------------------------------------------------
// Create a multi-bit mask of @a n bits starting at bit @a b
-#define BITS(b, n) ((0xffffffffffffffffull << (64 - (n))) >> (b))
+#ifndef BITS
+ #define BITS(b, n) ((0xffffffffffffffffull << (64 - (n))) >> (b))
+#endif
// Create a single bit mask at bit @a b
-#define BIT(b) BITS((b), 1)
+#ifndef BIT
+ #define BIT(b) BITS((b), 1)
+#endif
//------------------------------------------------------------------------------
// Constant definitions
OpenPOWER on IntegriCloud