1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _ASM_PGTABLE_H
20#define _ASM_PGTABLE_H
21#include <asm/pgtable-32.h>
22#include <asm/io.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#include <asm/pgtable-bits.h>
25struct mm_struct;
26struct vm_area_struct;
27#define PAGE_NONE __pgprot(_PAGE_PRESENT | _CACHE_CACHABLE_NONCOHERENT)
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE |   _page_cachable_default)
30#define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_READ |   _page_cachable_default)
31#define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_READ |   _page_cachable_default)
32#define PAGE_KERNEL __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE |   _PAGE_GLOBAL | _page_cachable_default)
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define PAGE_USERIO __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE |   _page_cachable_default)
35#define PAGE_KERNEL_UNCACHED __pgprot(_PAGE_PRESENT | __READABLE |   __WRITEABLE | _PAGE_GLOBAL | _CACHE_UNCACHED)
36#define __P000 __pgprot(0)
37#define __P001 __pgprot(0)
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define __P010 __pgprot(0)
40#define __P011 __pgprot(0)
41#define __P100 __pgprot(0)
42#define __P101 __pgprot(0)
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define __P110 __pgprot(0)
45#define __P111 __pgprot(0)
46#define __S000 __pgprot(0)
47#define __S001 __pgprot(0)
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define __S010 __pgprot(0)
50#define __S011 __pgprot(0)
51#define __S100 __pgprot(0)
52#define __S101 __pgprot(0)
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define __S110 __pgprot(0)
55#define __S111 __pgprot(0)
56#define ZERO_PAGE(vaddr)   (virt_to_page((void *)(empty_zero_page + (((unsigned long)(vaddr)) & zero_page_mask))))
57#define pmd_phys(pmd) virt_to_phys((void *)pmd_val(pmd))
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT))
60#define pmd_page_vaddr(pmd) pmd_val(pmd)
61#define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL))
62#define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT)
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define set_pte_at(mm, addr, ptep, pteval) set_pte(ptep, pteval)
65#define set_pmd(pmdptr, pmdval) do { *(pmdptr) = (pmdval); } while(0)
66#define PGD_T_LOG2 (__builtin_ffs(sizeof(pgd_t)) - 1)
67#define PMD_T_LOG2 (__builtin_ffs(sizeof(pmd_t)) - 1)
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define PTE_T_LOG2 (__builtin_ffs(sizeof(pte_t)) - 1)
70#define pgprot_noncached pgprot_noncached
71#define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot))
72#define kern_addr_valid(addr) (1)
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define io_remap_pfn_range(vma, vaddr, pfn, size, prot)   remap_pfn_range(vma, vaddr, pfn, size, prot)
75#include <asm-generic/pgtable.h>
76#define HAVE_ARCH_UNMAPPED_AREA
77#define pgtable_cache_init() do { } while (0)
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#endif
80