Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville...
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / unicore32 / mm / mm.h
blob3296bca0f1f7a1f75597089e9340c700900006c8
1 /*
2 * linux/arch/unicore32/mm/mm.h
4 * Code specific to PKUnity SoC and UniCore ISA
6 * Copyright (C) 2001-2010 GUAN Xue-tao
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 /* the upper-most page table pointer */
13 extern pmd_t *top_pmd;
14 extern int sysctl_overcommit_memory;
16 #define TOP_PTE(x) pte_offset_kernel(top_pmd, x)
18 static inline pmd_t *pmd_off(pgd_t *pgd, unsigned long virt)
20 return pmd_offset((pud_t *)pgd, virt);
23 static inline pmd_t *pmd_off_k(unsigned long virt)
25 return pmd_off(pgd_offset_k(virt), virt);
28 struct mem_type {
29 unsigned int prot_pte;
30 unsigned int prot_l1;
31 unsigned int prot_sect;
34 const struct mem_type *get_mem_type(unsigned int type);
36 extern void __flush_dcache_page(struct address_space *, struct page *);
38 void __init bootmem_init(void);
39 void uc32_mm_memblock_reserve(void);