]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-cris/page.h
avr32: Provide PCI DMA mapping API
[linux-2.6-omap-h63xx.git] / include / asm-cris / page.h
index b84353ef6998459ccf3b40da3777254cadcfe1fe..c45bb1ef397cb3466c2d836f8fc1679ba69d4a9d 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef _CRIS_PAGE_H
 #define _CRIS_PAGE_H
 
-#ifdef __KERNEL__
-
 #include <asm/arch/page.h>
 #include <linux/const.h>
 
@@ -28,6 +26,7 @@
 typedef struct { unsigned long pte; } pte_t;
 typedef struct { unsigned long pgd; } pgd_t;
 typedef struct { unsigned long pgprot; } pgprot_t;
+typedef struct page *pgtable_t;
 #endif
 
 #define pte_val(x)     ((x).pte)
@@ -74,7 +73,5 @@ typedef struct { unsigned long pgprot; } pgprot_t;
 #include <asm-generic/memory_model.h>
 #include <asm-generic/page.h>
 
-#endif /* __KERNEL__ */
-
 #endif /* _CRIS_PAGE_H */