]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/ppc/pmap.h
xnu-344.tar.gz
[apple/xnu.git] / osfmk / ppc / pmap.h
index 444eb4b77b62336b40c34748e4c0d06e6425e64e..0a4d2e97e2b82e169c7f6f63d84ed3cc518c3506 100644 (file)
@@ -116,6 +116,17 @@ extern pmap_t      cursor_pmap;                    /* The pmap to start allocations with */
 #define pmap_phys_address(x)   ((x) << PPC_PGSHIFT)
 #define pmap_phys_to_frame(x)  ((x) >> PPC_PGSHIFT)
 
+#define PMAP_DEFAULT_CACHE     0
+#define PMAP_INHIBIT_CACHE     1
+#define PMAP_GUARDED_CACHE     2
+#define PMAP_ACTIVATE_CACHE    4
+#define PMAP_NO_GUARD_CACHE    8
+
+/* corresponds to cached, coherent, not writethru, not guarded */
+#define VM_WIMG_DEFAULT                VM_MEM_COHERENT
+#define VM_WIMG_IO             VM_MEM_COHERENT |       \
+                               VM_MEM_NOT_CACHEABLE | VM_MEM_GUARDED
+
 /* 
  * prototypes.
  */