Go to the documentation of this file.
20 #ifndef _ASM_PGTABLE_3LEVEL_HWDEF_H
21 #define _ASM_PGTABLE_3LEVEL_HWDEF_H
29 #define PMD_TYPE_MASK (_AT(pmdval_t, 3) << 0)
30 #define PMD_TYPE_FAULT (_AT(pmdval_t, 0) << 0)
31 #define PMD_TYPE_TABLE (_AT(pmdval_t, 3) << 0)
32 #define PMD_TYPE_SECT (_AT(pmdval_t, 1) << 0)
33 #define PMD_BIT4 (_AT(pmdval_t, 0))
34 #define PMD_DOMAIN(x) (_AT(pmdval_t, 0))
39 #define PMD_SECT_BUFFERABLE (_AT(pmdval_t, 1) << 2)
40 #define PMD_SECT_CACHEABLE (_AT(pmdval_t, 1) << 3)
41 #define PMD_SECT_S (_AT(pmdval_t, 3) << 8)
42 #define PMD_SECT_AF (_AT(pmdval_t, 1) << 10)
43 #define PMD_SECT_nG (_AT(pmdval_t, 1) << 11)
44 #define PMD_SECT_XN (_AT(pmdval_t, 1) << 54)
45 #define PMD_SECT_AP_WRITE (_AT(pmdval_t, 0))
46 #define PMD_SECT_AP_READ (_AT(pmdval_t, 0))
47 #define PMD_SECT_TEX(x) (_AT(pmdval_t, 0))
52 #define PMD_SECT_UNCACHED (_AT(pmdval_t, 0) << 2)
53 #define PMD_SECT_BUFFERED (_AT(pmdval_t, 1) << 2)
54 #define PMD_SECT_WT (_AT(pmdval_t, 2) << 2)
55 #define PMD_SECT_WB (_AT(pmdval_t, 3) << 2)
56 #define PMD_SECT_WBWA (_AT(pmdval_t, 7) << 2)
61 #define PTE_TYPE_MASK (_AT(pteval_t, 3) << 0)
62 #define PTE_TYPE_FAULT (_AT(pteval_t, 0) << 0)
63 #define PTE_TYPE_PAGE (_AT(pteval_t, 3) << 0)
64 #define PTE_BUFFERABLE (_AT(pteval_t, 1) << 2)
65 #define PTE_CACHEABLE (_AT(pteval_t, 1) << 3)
66 #define PTE_EXT_SHARED (_AT(pteval_t, 3) << 8)
67 #define PTE_EXT_AF (_AT(pteval_t, 1) << 10)
68 #define PTE_EXT_NG (_AT(pteval_t, 1) << 11)
69 #define PTE_EXT_XN (_AT(pteval_t, 1) << 54)
74 #define PHYS_MASK_SHIFT (40)
75 #define PHYS_MASK ((1ULL << PHYS_MASK_SHIFT) - 1)