~xnox/ubuntu/trusty/gcc-arm-linux-androideabi/dima

« back to all changes in this revision

Viewing changes to android/bionic/libc/kernel/arch-mips/asm/pgtable.h

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs
  • Date: 2013-07-05 10:12:24 UTC
  • Revision ID: package-import@ubuntu.com-20130705101224-6qo3e8jbz8p31aa1
Tags: upstream-0.20130705.1
ImportĀ upstreamĀ versionĀ 0.20130705.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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/io.h>
 
22
#include <asm/pgtable-bits.h>
 
23
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
24
struct mm_struct;
 
25
struct vm_area_struct;
 
26
#define PAGE_NONE __pgprot(_PAGE_PRESENT | _CACHE_CACHABLE_NONCOHERENT)
 
27
#define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE |   _page_cachable_default)
 
28
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
29
#define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_READ |   _page_cachable_default)
 
30
#define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_READ |   _page_cachable_default)
 
31
#define PAGE_KERNEL __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE |   _PAGE_GLOBAL | _page_cachable_default)
 
32
#define PAGE_USERIO __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE |   _page_cachable_default)
 
33
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
34
#define PAGE_KERNEL_UNCACHED __pgprot(_PAGE_PRESENT | __READABLE |   __WRITEABLE | _PAGE_GLOBAL | _CACHE_UNCACHED)
 
35
#define __P000 __pgprot(0)
 
36
#define __P001 __pgprot(0)
 
37
#define __P010 __pgprot(0)
 
38
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
39
#define __P011 __pgprot(0)
 
40
#define __P100 __pgprot(0)
 
41
#define __P101 __pgprot(0)
 
42
#define __P110 __pgprot(0)
 
43
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
44
#define __P111 __pgprot(0)
 
45
#define __S000 __pgprot(0)
 
46
#define __S001 __pgprot(0)
 
47
#define __S010 __pgprot(0)
 
48
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
49
#define __S011 __pgprot(0)
 
50
#define __S100 __pgprot(0)
 
51
#define __S101 __pgprot(0)
 
52
#define __S110 __pgprot(0)
 
53
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
54
#define __S111 __pgprot(0)
 
55
#define ZERO_PAGE(vaddr)   (virt_to_page((void *)(empty_zero_page + (((unsigned long)(vaddr)) & zero_page_mask))))
 
56
#define pmd_phys(pmd) virt_to_phys((void *)pmd_val(pmd))
 
57
#define pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT))
 
58
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
59
#define pmd_page_vaddr(pmd) pmd_val(pmd)
 
60
#define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL))
 
61
#define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT)
 
62
#define set_pte_at(mm, addr, ptep, pteval) set_pte(ptep, pteval)
 
63
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
64
#define set_pmd(pmdptr, pmdval) do { *(pmdptr) = (pmdval); } while(0)
 
65
#define PGD_T_LOG2 (__builtin_ffs(sizeof(pgd_t)) - 1)
 
66
#define PMD_T_LOG2 (__builtin_ffs(sizeof(pmd_t)) - 1)
 
67
#define PTE_T_LOG2 (__builtin_ffs(sizeof(pte_t)) - 1)
 
68
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
69
#define pgprot_noncached pgprot_noncached
 
70
#define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot))
 
71
#define kern_addr_valid(addr) (1)
 
72
#define io_remap_pfn_range(vma, vaddr, pfn, size, prot)   remap_pfn_range(vma, vaddr, pfn, size, prot)
 
73
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
74
#include <asm-generic/pgtable.h>
 
75
#define HAVE_ARCH_UNMAPPED_AREA
 
76
#define pgtable_cache_init() do { } while (0)
 
77
#endif
 
78
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */