aboutsummaryrefslogtreecommitdiff
path: root/include/asm-ppc64
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-ppc64')
-rw-r--r--include/asm-ppc64/abs_addr.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/include/asm-ppc64/abs_addr.h b/include/asm-ppc64/abs_addr.h
index 2276567f133..05414a9bfdd 100644
--- a/include/asm-ppc64/abs_addr.h
+++ b/include/asm-ppc64/abs_addr.h
@@ -17,18 +17,17 @@
#include <asm/prom.h>
#include <asm/lmb.h>
-struct msChunks {
+#ifdef CONFIG_MSCHUNKS
+
+struct mschunks_map {
unsigned long num_chunks;
unsigned long chunk_size;
unsigned long chunk_shift;
unsigned long chunk_mask;
- u32 *abs;
+ u32 *mapping;
};
-extern struct msChunks msChunks;
-
-
-#ifdef CONFIG_MSCHUNKS
+extern struct mschunks_map mschunks_map;
/* Chunks are 256 KB */
#define MSCHUNKS_CHUNK_SHIFT (18)
@@ -52,10 +51,10 @@ static inline unsigned long chunk_offset(unsigned long addr)
static inline unsigned long abs_chunk(unsigned long pchunk)
{
- if (pchunk >= msChunks.num_chunks)
+ if (pchunk >= mschunks_map.num_chunks)
return pchunk;
- return msChunks.abs[pchunk];
+ return mschunks_map.mapping[pchunk];
}
/* A macro so it can take pointers or unsigned long. */