aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/uv
diff options
context:
space:
mode:
authorRobin Holt <holt@sgi.com>2009-12-15 19:47:54 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-16 10:20:13 -0500
commitfae419f2abd15ab7d1cd1413e6683a276a4e14e2 (patch)
tree9e560c4eebfd5d41cf3ab5903d234fac798dc236 /arch/x86/include/asm/uv
parent682128939f546e3a9cdd9fef392b932dd9c41a65 (diff)
x86: uv: introduce uv_gpa_is_mmr
Provide a mechanism for determining if a global physical address is pointing to a UV hub MMR. Signed-off-by: Robin Holt <holt@sgi.com> Cc: Jack Steiner <steiner@sgi.com> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86/include/asm/uv')
-rw-r--r--arch/x86/include/asm/uv/uv_hub.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/include/asm/uv/uv_hub.h b/arch/x86/include/asm/uv/uv_hub.h
index 0cc955f16aec..8f1332bbfd72 100644
--- a/arch/x86/include/asm/uv/uv_hub.h
+++ b/arch/x86/include/asm/uv/uv_hub.h
@@ -232,6 +232,13 @@ static inline unsigned long uv_gpa(void *v)
232 return uv_soc_phys_ram_to_gpa(__pa(v)); 232 return uv_soc_phys_ram_to_gpa(__pa(v));
233} 233}
234 234
235/* Top two bits indicate the requested address is in MMR space. */
236static inline int
237uv_gpa_in_mmr_space(unsigned long gpa)
238{
239 return (gpa >> 62) == 0x3UL;
240}
241
235/* UV global physical address --> socket phys RAM */ 242/* UV global physical address --> socket phys RAM */
236static inline unsigned long uv_gpa_to_soc_phys_ram(unsigned long gpa) 243static inline unsigned long uv_gpa_to_soc_phys_ram(unsigned long gpa)
237{ 244{