]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-ia64/sn/addrs.h
[IA64-SGI] convert AMO address found in XPC's reserved page
[linux-2.6-omap-h63xx.git] / include / asm-ia64 / sn / addrs.h
index 960d626ee589fa45a28d6ba0df79ba7837d84065..1bfdfb4d7b0110224b17f51a429f7d880c32c7a6 100644 (file)
  */
 #define CAC_BASE               (CACHED   | AS_CAC_SPACE)
 #define AMO_BASE               (UNCACHED | AS_AMO_SPACE)
+#define AMO_PHYS_BASE          (UNCACHED_PHYS | AS_AMO_SPACE)
 #define GET_BASE               (CACHED   | AS_GET_SPACE)
 
 /*
 #define PHYS_TO_DMA(x)          ( (((u64)(x) & NASID_MASK) >> 2) | NODE_OFFSET(x))
 
 
+/*
+ * Macros to test for address type.
+ */
+#define IS_AMO_ADDRESS(x)      (((u64)(x) & (REGION_BITS | AS_MASK)) == AMO_BASE)
+#define IS_AMO_PHYS_ADDRESS(x) (((u64)(x) & (REGION_BITS | AS_MASK)) == AMO_PHYS_BASE)
+
+
 /*
  * The following definitions pertain to the IO special address
  * space.  They define the location of the big and little windows