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_BITS_H 20 #define _ASM_PGTABLE_BITS_H 21 #define _PAGE_PRESENT (1<<0) 22 #define _PAGE_READ (1<<1) 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #define _PAGE_WRITE (1<<2) 25 #define _PAGE_ACCESSED (1<<3) 26 #define _PAGE_MODIFIED (1<<4) 27 #define _PAGE_FILE (1<<4) 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 #define _PAGE_R4KBUG (1<<5) 30 #define _PAGE_GLOBAL (1<<6) 31 #define _PAGE_VALID (1<<7) 32 #define _PAGE_SILENT_READ (1<<7) 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 #define _PAGE_DIRTY (1<<8) 35 #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 */ 39 #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) 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 #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) 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 #define _CACHE_UNCACHED_ACCELERATED (7<<_CACHE_SHIFT) 50 #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 55