]> err.no Git - linux-2.6/blobdiff - include/asm-frv/pgtable.h
V4L/DVB (3607): Implement routing command for saa7115.c
[linux-2.6] / include / asm-frv / pgtable.h
index b247e99dff49a830ee3af8d3e833d80e6087acde..d1c3b182c6914282b860d4b4d4a855dfb27f5d5d 100644 (file)
@@ -26,6 +26,8 @@
 #include <linux/slab.h>
 #include <linux/list.h>
 #include <linux/spinlock.h>
+struct mm_struct;
+struct vm_area_struct;
 #endif
 
 #ifndef __ASSEMBLY__
@@ -418,6 +420,11 @@ static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr,
        asm volatile("dcf %M0" :: "U"(*ptep));
 }
 
+/*
+ * Macro to mark a page protection value as "uncacheable"
+ */
+#define pgprot_noncached(prot) (__pgprot(pgprot_val(prot) | _PAGE_NOCACHE))
+
 /*
  * Conversion functions: convert a page and protection to a page entry,
  * and a page entry and page directory to the page they refer to.