Home | History | Annotate | Download | only in asm
      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 _ASMARM_PGTABLE_HWDEF_H
     20 #define _ASMARM_PGTABLE_HWDEF_H
     21 #define PMD_TYPE_MASK (3 << 0)
     22 #define PMD_TYPE_FAULT (0 << 0)
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #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)
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define PMD_PROTECTION (1 << 9)
     30 #define PMD_SECT_BUFFERABLE (1 << 2)
     31 #define PMD_SECT_CACHEABLE (1 << 3)
     32 #define PMD_SECT_XN (1 << 4)
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #define PMD_SECT_AP_WRITE (1 << 10)
     35 #define PMD_SECT_AP_READ (1 << 11)
     36 #define PMD_SECT_TEX(x) ((x) << 12)
     37 #define PMD_SECT_APX (1 << 15)
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #define PMD_SECT_S (1 << 16)
     40 #define PMD_SECT_nG (1 << 17)
     41 #define PMD_SECT_SUPER (1 << 18)
     42 #define PMD_SECT_UNCACHED (0)
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 #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)
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 #define PMD_SECT_WBWA (PMD_SECT_TEX(1) | PMD_SECT_CACHEABLE | PMD_SECT_BUFFERABLE)
     50 #define PMD_SECT_NONSHARED_DEV (PMD_SECT_TEX(2))
     51 #define PTE_TYPE_MASK (3 << 0)
     52 #define PTE_TYPE_FAULT (0 << 0)
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54 #define PTE_TYPE_LARGE (1 << 0)
     55 #define PTE_TYPE_SMALL (2 << 0)
     56 #define PTE_TYPE_EXT (3 << 0)
     57 #define PTE_BUFFERABLE (1 << 2)
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 #define PTE_CACHEABLE (1 << 3)
     60 #define PTE_EXT_XN (1 << 0)
     61 #define PTE_EXT_AP_MASK (3 << 4)
     62 #define PTE_EXT_AP0 (1 << 4)
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 #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)
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69 #define PTE_EXT_AP_URW_SRW (PTE_EXT_AP1|PTE_EXT_AP0)
     70 #define PTE_EXT_TEX(x) ((x) << 6)
     71 #define PTE_EXT_APX (1 << 9)
     72 #define PTE_EXT_COHERENT (1 << 9)
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74 #define PTE_EXT_SHARED (1 << 10)
     75 #define PTE_EXT_NG (1 << 11)
     76 #define PTE_SMALL_AP_MASK (0xff << 4)
     77 #define PTE_SMALL_AP_UNO_SRO (0x00 << 4)
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79 #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)
     82 #endif
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84