~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm/include/asm/pgtable-2level-hwdef.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*
  3  *  arch/arm/include/asm/pgtable-2level-hwdef.h
  4  *
  5  *  Copyright (C) 1995-2002 Russell King
  6  */
  7 #ifndef _ASM_PGTABLE_2LEVEL_HWDEF_H
  8 #define _ASM_PGTABLE_2LEVEL_HWDEF_H
  9 
 10 /*
 11  * Hardware page table definitions.
 12  *
 13  * + Level 1 descriptor (PMD)
 14  *   - common
 15  */
 16 #define PMD_TYPE_MASK           (_AT(pmdval_t, 3) << 0)
 17 #define PMD_TYPE_FAULT          (_AT(pmdval_t, 0) << 0)
 18 #define PMD_TYPE_TABLE          (_AT(pmdval_t, 1) << 0)
 19 #define PMD_TYPE_SECT           (_AT(pmdval_t, 2) << 0)
 20 #define PMD_PXNTABLE            (_AT(pmdval_t, 1) << 2)     /* v7 */
 21 #define PMD_BIT4                (_AT(pmdval_t, 1) << 4)
 22 #define PMD_DOMAIN(x)           (_AT(pmdval_t, (x)) << 5)
 23 #define PMD_DOMAIN_MASK         PMD_DOMAIN(0x0f)
 24 #define PMD_PROTECTION          (_AT(pmdval_t, 1) << 9)         /* v5 */
 25 /*
 26  *   - section
 27  */
 28 #define PMD_SECT_PXN    (_AT(pmdval_t, 1) << 0)     /* v7 */
 29 #define PMD_SECT_BUFFERABLE     (_AT(pmdval_t, 1) << 2)
 30 #define PMD_SECT_CACHEABLE      (_AT(pmdval_t, 1) << 3)
 31 #define PMD_SECT_XN             (_AT(pmdval_t, 1) << 4)         /* v6 */
 32 #define PMD_SECT_AP_WRITE       (_AT(pmdval_t, 1) << 10)
 33 #define PMD_SECT_AP_READ        (_AT(pmdval_t, 1) << 11)
 34 #define PMD_SECT_TEX(x)         (_AT(pmdval_t, (x)) << 12)      /* v5 */
 35 #define PMD_SECT_APX            (_AT(pmdval_t, 1) << 15)        /* v6 */
 36 #define PMD_SECT_S              (_AT(pmdval_t, 1) << 16)        /* v6 */
 37 #define PMD_SECT_nG             (_AT(pmdval_t, 1) << 17)        /* v6 */
 38 #define PMD_SECT_SUPER          (_AT(pmdval_t, 1) << 18)        /* v6 */
 39 #define PMD_SECT_AF             (_AT(pmdval_t, 0))
 40 
 41 #define PMD_SECT_UNCACHED       (_AT(pmdval_t, 0))
 42 #define PMD_SECT_BUFFERED       (PMD_SECT_BUFFERABLE)
 43 #define PMD_SECT_WT             (PMD_SECT_CACHEABLE)
 44 #define PMD_SECT_WB             (PMD_SECT_CACHEABLE | PMD_SECT_BUFFERABLE)
 45 #define PMD_SECT_MINICACHE      (PMD_SECT_TEX(1) | PMD_SECT_CACHEABLE)
 46 #define PMD_SECT_WBWA           (PMD_SECT_TEX(1) | PMD_SECT_CACHEABLE | PMD_SECT_BUFFERABLE)
 47 #define PMD_SECT_CACHE_MASK     (PMD_SECT_TEX(1) | PMD_SECT_CACHEABLE | PMD_SECT_BUFFERABLE)
 48 #define PMD_SECT_NONSHARED_DEV  (PMD_SECT_TEX(2))
 49 
 50 /*
 51  *   - coarse table (not used)
 52  */
 53 
 54 /*
 55  * + Level 2 descriptor (PTE)
 56  *   - common
 57  */
 58 #define PTE_TYPE_MASK           (_AT(pteval_t, 3) << 0)
 59 #define PTE_TYPE_FAULT          (_AT(pteval_t, 0) << 0)
 60 #define PTE_TYPE_LARGE          (_AT(pteval_t, 1) << 0)
 61 #define PTE_TYPE_SMALL          (_AT(pteval_t, 2) << 0)
 62 #define PTE_TYPE_EXT            (_AT(pteval_t, 3) << 0)         /* v5 */
 63 #define PTE_BUFFERABLE          (_AT(pteval_t, 1) << 2)
 64 #define PTE_CACHEABLE           (_AT(pteval_t, 1) << 3)
 65 
 66 /*
 67  *   - extended small page/tiny page
 68  */
 69 #define PTE_EXT_XN              (_AT(pteval_t, 1) << 0)         /* v6 */
 70 #define PTE_EXT_AP_MASK         (_AT(pteval_t, 3) << 4)
 71 #define PTE_EXT_AP0             (_AT(pteval_t, 1) << 4)
 72 #define PTE_EXT_AP1             (_AT(pteval_t, 2) << 4)
 73 #define PTE_EXT_AP_UNO_SRO      (_AT(pteval_t, 0) << 4)
 74 #define PTE_EXT_AP_UNO_SRW      (PTE_EXT_AP0)
 75 #define PTE_EXT_AP_URO_SRW      (PTE_EXT_AP1)
 76 #define PTE_EXT_AP_URW_SRW      (PTE_EXT_AP1|PTE_EXT_AP0)
 77 #define PTE_EXT_TEX(x)          (_AT(pteval_t, (x)) << 6)       /* v5 */
 78 #define PTE_EXT_APX             (_AT(pteval_t, 1) << 9)         /* v6 */
 79 #define PTE_EXT_COHERENT        (_AT(pteval_t, 1) << 9)         /* XScale3 */
 80 #define PTE_EXT_SHARED          (_AT(pteval_t, 1) << 10)        /* v6 */
 81 #define PTE_EXT_NG              (_AT(pteval_t, 1) << 11)        /* v6 */
 82 
 83 /*
 84  *   - small page
 85  */
 86 #define PTE_SMALL_AP_MASK       (_AT(pteval_t, 0xff) << 4)
 87 #define PTE_SMALL_AP_UNO_SRO    (_AT(pteval_t, 0x00) << 4)
 88 #define PTE_SMALL_AP_UNO_SRW    (_AT(pteval_t, 0x55) << 4)
 89 #define PTE_SMALL_AP_URO_SRW    (_AT(pteval_t, 0xaa) << 4)
 90 #define PTE_SMALL_AP_URW_SRW    (_AT(pteval_t, 0xff) << 4)
 91 
 92 #define PHYS_MASK               (~0UL)
 93 
 94 #endif
 95 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php