x86, efi: Set runtime_version to the EFI spec revision
[linux/fpc-iii.git] / arch / arm / mm / mm.h
bloba8ee92da3544926138f68116fbddbc2c55b64dbf
1 #ifdef CONFIG_MMU
3 /* the upper-most page table pointer */
4 extern pmd_t *top_pmd;
6 /*
7 * 0xffff8000 to 0xffffffff is reserved for any ARM architecture
8 * specific hacks for copying pages efficiently, while 0xffff4000
9 * is reserved for VIPT aliasing flushing by generic code.
11 * Note that we don't allow VIPT aliasing caches with SMP.
13 #define COPYPAGE_MINICACHE 0xffff8000
14 #define COPYPAGE_V6_FROM 0xffff8000
15 #define COPYPAGE_V6_TO 0xffffc000
16 /* PFN alias flushing, for VIPT caches */
17 #define FLUSH_ALIAS_START 0xffff4000
19 static inline void set_top_pte(unsigned long va, pte_t pte)
21 pte_t *ptep = pte_offset_kernel(top_pmd, va);
22 set_pte_ext(ptep, pte, 0);
23 local_flush_tlb_kernel_page(va);
26 static inline pte_t get_top_pte(unsigned long va)
28 pte_t *ptep = pte_offset_kernel(top_pmd, va);
29 return *ptep;
32 static inline pmd_t *pmd_off_k(unsigned long virt)
34 return pmd_offset(pud_offset(pgd_offset_k(virt), virt), virt);
37 struct mem_type {
38 pteval_t prot_pte;
39 pmdval_t prot_l1;
40 pmdval_t prot_sect;
41 unsigned int domain;
44 const struct mem_type *get_mem_type(unsigned int type);
46 extern void __flush_dcache_page(struct address_space *mapping, struct page *page);
49 * ARM specific vm_struct->flags bits.
52 /* (super)section-mapped I/O regions used by ioremap()/iounmap() */
53 #define VM_ARM_SECTION_MAPPING 0x80000000
55 /* permanent static mappings from iotable_init() */
56 #define VM_ARM_STATIC_MAPPING 0x40000000
58 /* empty mapping */
59 #define VM_ARM_EMPTY_MAPPING 0x20000000
61 /* mapping type (attributes) for permanent static mappings */
62 #define VM_ARM_MTYPE(mt) ((mt) << 20)
63 #define VM_ARM_MTYPE_MASK (0x1f << 20)
65 /* consistent regions used by dma_alloc_attrs() */
66 #define VM_ARM_DMA_CONSISTENT 0x20000000
68 #endif
70 #ifdef CONFIG_ZONE_DMA
71 extern phys_addr_t arm_dma_limit;
72 #else
73 #define arm_dma_limit ((phys_addr_t)~0)
74 #endif
76 extern phys_addr_t arm_lowmem_limit;
78 void __init bootmem_init(void);
79 void arm_mm_memblock_reserve(void);
80 void dma_contiguous_remap(void);