blob: ecd620cdf8b41244243ea7df5ee0ded68ac7d7f0 [file] [log] [blame]
Raghu Gandham82fa43f2012-03-27 11:37:17 -07001/****************************************************************************
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_BITS_H
20#define _ASM_PGTABLE_BITS_H
Elliott Hughesc95eb572013-01-29 18:15:55 -080021#define _PAGE_PRESENT (1<<0)
22#define _PAGE_READ (1<<1)
Raghu Gandham82fa43f2012-03-27 11:37:17 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080024#define _PAGE_WRITE (1<<2)
25#define _PAGE_ACCESSED (1<<3)
26#define _PAGE_MODIFIED (1<<4)
27#define _PAGE_FILE (1<<4)
Raghu Gandham82fa43f2012-03-27 11:37:17 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080029#define _PAGE_R4KBUG (1<<5)
Raghu Gandham82fa43f2012-03-27 11:37:17 -070030#define _PAGE_GLOBAL (1<<6)
31#define _PAGE_VALID (1<<7)
Elliott Hughesc95eb572013-01-29 18:15:55 -080032#define _PAGE_SILENT_READ (1<<7)
Raghu Gandham82fa43f2012-03-27 11:37:17 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080034#define _PAGE_DIRTY (1<<8)
Raghu Gandham82fa43f2012-03-27 11:37:17 -070035#define _PAGE_SILENT_WRITE (1<<8)
36#define _CACHE_SHIFT 9
37#define _CACHE_MASK (7<<9)
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080039#define _CACHE_CACHABLE_NO_WA (0<<_CACHE_SHIFT)
40#define _CACHE_CACHABLE_WA (1<<_CACHE_SHIFT)
41#define _CACHE_UNCACHED (2<<_CACHE_SHIFT)
42#define _CACHE_CACHABLE_NONCOHERENT (3<<_CACHE_SHIFT)
Raghu Gandham82fa43f2012-03-27 11:37:17 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080044#define _CACHE_CACHABLE_CE (4<<_CACHE_SHIFT)
45#define _CACHE_CACHABLE_COW (5<<_CACHE_SHIFT)
46#define _CACHE_CACHABLE_COHERENT (5<<_CACHE_SHIFT)
47#define _CACHE_CACHABLE_CUW (6<<_CACHE_SHIFT)
Raghu Gandham82fa43f2012-03-27 11:37:17 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080049#define _CACHE_UNCACHED_ACCELERATED (7<<_CACHE_SHIFT)
Raghu Gandham82fa43f2012-03-27 11:37:17 -070050#define __READABLE (_PAGE_READ | _PAGE_SILENT_READ | _PAGE_ACCESSED)
51#define __WRITEABLE (_PAGE_WRITE | _PAGE_SILENT_WRITE | _PAGE_MODIFIED)
52#define _PAGE_CHG_MASK (PAGE_MASK | _PAGE_ACCESSED | _PAGE_MODIFIED | _CACHE_MASK)
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#endif