Pull thermal into release branch
[linux-drm-fsl-dcu.git] / arch / arm / mm / mm.h
index bb2bc9ab6bd38fd06243542effd2017cc4326b8a..7647c597fc597ce82b5c08c587ca4b1f1c7b9724 100644 (file)
@@ -1,4 +1,7 @@
 /* the upper-most page table pointer */
+
+#ifdef CONFIG_MMU
+
 extern pmd_t *top_pmd;
 
 #define TOP_PTE(x)     pte_offset_kernel(top_pmd, x)
@@ -13,6 +16,18 @@ static inline pmd_t *pmd_off_k(unsigned long virt)
        return pmd_off(pgd_offset_k(virt), virt);
 }
 
+struct mem_type {
+       unsigned int prot_pte;
+       unsigned int prot_pte_ext;
+       unsigned int prot_l1;
+       unsigned int prot_sect;
+       unsigned int domain;
+};
+
+const struct mem_type *get_mem_type(unsigned int type);
+
+#endif
+
 struct map_desc;
 struct meminfo;
 struct pglist_data;