diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2005-08-03 06:21:23 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-08-28 20:53:36 -0400 |
commit | 56e97b71bf55edb69dc8e9715553972ce50b1564 (patch) | |
tree | 2abf3ef9339d3152a7a14c94e6273ecc559ab342 /include/asm-ppc64 | |
parent | 34c8f6961fc601294a38c5bd5ca12131b2e52674 (diff) |
[PATCH] ppc64: Rename msChunks structure
Rename the msChunks struct to get rid of the StUdlY caps and make it a bit
clearer what it's for.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-ppc64')
-rw-r--r-- | include/asm-ppc64/abs_addr.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/include/asm-ppc64/abs_addr.h b/include/asm-ppc64/abs_addr.h index 2276567f133a..05414a9bfdd1 100644 --- a/include/asm-ppc64/abs_addr.h +++ b/include/asm-ppc64/abs_addr.h | |||
@@ -17,18 +17,17 @@ | |||
17 | #include <asm/prom.h> | 17 | #include <asm/prom.h> |
18 | #include <asm/lmb.h> | 18 | #include <asm/lmb.h> |
19 | 19 | ||
20 | struct msChunks { | 20 | #ifdef CONFIG_MSCHUNKS |
21 | |||
22 | struct mschunks_map { | ||
21 | unsigned long num_chunks; | 23 | unsigned long num_chunks; |
22 | unsigned long chunk_size; | 24 | unsigned long chunk_size; |
23 | unsigned long chunk_shift; | 25 | unsigned long chunk_shift; |
24 | unsigned long chunk_mask; | 26 | unsigned long chunk_mask; |
25 | u32 *abs; | 27 | u32 *mapping; |
26 | }; | 28 | }; |
27 | 29 | ||
28 | extern struct msChunks msChunks; | 30 | extern struct mschunks_map mschunks_map; |
29 | |||
30 | |||
31 | #ifdef CONFIG_MSCHUNKS | ||
32 | 31 | ||
33 | /* Chunks are 256 KB */ | 32 | /* Chunks are 256 KB */ |
34 | #define MSCHUNKS_CHUNK_SHIFT (18) | 33 | #define MSCHUNKS_CHUNK_SHIFT (18) |
@@ -52,10 +51,10 @@ static inline unsigned long chunk_offset(unsigned long addr) | |||
52 | 51 | ||
53 | static inline unsigned long abs_chunk(unsigned long pchunk) | 52 | static inline unsigned long abs_chunk(unsigned long pchunk) |
54 | { | 53 | { |
55 | if (pchunk >= msChunks.num_chunks) | 54 | if (pchunk >= mschunks_map.num_chunks) |
56 | return pchunk; | 55 | return pchunk; |
57 | 56 | ||
58 | return msChunks.abs[pchunk]; | 57 | return mschunks_map.mapping[pchunk]; |
59 | } | 58 | } |
60 | 59 | ||
61 | /* A macro so it can take pointers or unsigned long. */ | 60 | /* A macro so it can take pointers or unsigned long. */ |