blob: cc47b375d1c2b7c52fc665480732b2af99be52d5 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
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 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** 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 ***
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017 ****************************************************************************
18 ****************************************************************************/
19#ifndef _ASMARM_PGTABLE_HWDEF_H
20#define _ASMARM_PGTABLE_HWDEF_H
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#define PMD_TYPE_MASK (3 << 0)
22#define PMD_TYPE_FAULT (0 << 0)
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024#define PMD_TYPE_TABLE (1 << 0)
25#define PMD_TYPE_SECT (2 << 0)
26#define PMD_BIT4 (1 << 4)
27#define PMD_DOMAIN(x) ((x) << 5)
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080029#define PMD_PROTECTION (1 << 9)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080030#define PMD_SECT_BUFFERABLE (1 << 2)
31#define PMD_SECT_CACHEABLE (1 << 3)
Elliott Hughesc95eb572013-01-29 18:15:55 -080032#define PMD_SECT_XN (1 << 4)
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080034#define PMD_SECT_AP_WRITE (1 << 10)
35#define PMD_SECT_AP_READ (1 << 11)
Elliott Hughesc95eb572013-01-29 18:15:55 -080036#define PMD_SECT_TEX(x) ((x) << 12)
37#define PMD_SECT_APX (1 << 15)
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080039#define PMD_SECT_S (1 << 16)
40#define PMD_SECT_nG (1 << 17)
41#define PMD_SECT_SUPER (1 << 18)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080042#define PMD_SECT_UNCACHED (0)
Ben Cheng654325d2012-03-07 21:13:49 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080044#define PMD_SECT_BUFFERED (PMD_SECT_BUFFERABLE)
45#define PMD_SECT_WT (PMD_SECT_CACHEABLE)
46#define PMD_SECT_WB (PMD_SECT_CACHEABLE | PMD_SECT_BUFFERABLE)
47#define PMD_SECT_MINICACHE (PMD_SECT_TEX(1) | PMD_SECT_CACHEABLE)
Ben Cheng654325d2012-03-07 21:13:49 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080049#define PMD_SECT_WBWA (PMD_SECT_TEX(1) | PMD_SECT_CACHEABLE | PMD_SECT_BUFFERABLE)
50#define PMD_SECT_NONSHARED_DEV (PMD_SECT_TEX(2))
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080051#define PTE_TYPE_MASK (3 << 0)
52#define PTE_TYPE_FAULT (0 << 0)
Ben Cheng654325d2012-03-07 21:13:49 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080054#define PTE_TYPE_LARGE (1 << 0)
55#define PTE_TYPE_SMALL (2 << 0)
Elliott Hughesc95eb572013-01-29 18:15:55 -080056#define PTE_TYPE_EXT (3 << 0)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080057#define PTE_BUFFERABLE (1 << 2)
Ben Cheng654325d2012-03-07 21:13:49 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080059#define PTE_CACHEABLE (1 << 3)
Elliott Hughesc95eb572013-01-29 18:15:55 -080060#define PTE_EXT_XN (1 << 0)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080061#define PTE_EXT_AP_MASK (3 << 4)
62#define PTE_EXT_AP0 (1 << 4)
Ben Cheng654325d2012-03-07 21:13:49 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080064#define PTE_EXT_AP1 (2 << 4)
65#define PTE_EXT_AP_UNO_SRO (0 << 4)
66#define PTE_EXT_AP_UNO_SRW (PTE_EXT_AP0)
67#define PTE_EXT_AP_URO_SRW (PTE_EXT_AP1)
Ben Cheng654325d2012-03-07 21:13:49 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080069#define PTE_EXT_AP_URW_SRW (PTE_EXT_AP1|PTE_EXT_AP0)
Elliott Hughesc95eb572013-01-29 18:15:55 -080070#define PTE_EXT_TEX(x) ((x) << 6)
71#define PTE_EXT_APX (1 << 9)
72#define PTE_EXT_COHERENT (1 << 9)
Ben Cheng654325d2012-03-07 21:13:49 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080074#define PTE_EXT_SHARED (1 << 10)
75#define PTE_EXT_NG (1 << 11)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080076#define PTE_SMALL_AP_MASK (0xff << 4)
77#define PTE_SMALL_AP_UNO_SRO (0x00 << 4)
Ben Cheng654325d2012-03-07 21:13:49 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080079#define PTE_SMALL_AP_UNO_SRW (0x55 << 4)
80#define PTE_SMALL_AP_URO_SRW (0xaa << 4)
81#define PTE_SMALL_AP_URW_SRW (0xff << 4)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080082#endif
Ben Cheng654325d2012-03-07 21:13:49 -080083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */