Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
pgtable-hwdef.h File Reference
#include <asm/pgtable-3level-hwdef.h>

Go to the source code of this file.

Macros

#define PMD_TYPE_MASK   (_AT(pmdval_t, 3) << 0)
 
#define PMD_TYPE_FAULT   (_AT(pmdval_t, 0) << 0)
 
#define PMD_TYPE_TABLE   (_AT(pmdval_t, 3) << 0)
 
#define PMD_TYPE_SECT   (_AT(pmdval_t, 1) << 0)
 
#define PMD_SECT_S   (_AT(pmdval_t, 3) << 8)
 
#define PMD_SECT_AF   (_AT(pmdval_t, 1) << 10)
 
#define PMD_SECT_NG   (_AT(pmdval_t, 1) << 11)
 
#define PMD_SECT_PXN   (_AT(pmdval_t, 1) << 53)
 
#define PMD_SECT_UXN   (_AT(pmdval_t, 1) << 54)
 
#define PMD_ATTRINDX(t)   (_AT(pmdval_t, (t)) << 2)
 
#define PMD_ATTRINDX_MASK   (_AT(pmdval_t, 7) << 2)
 
#define PTE_TYPE_MASK   (_AT(pteval_t, 3) << 0)
 
#define PTE_TYPE_FAULT   (_AT(pteval_t, 0) << 0)
 
#define PTE_TYPE_PAGE   (_AT(pteval_t, 3) << 0)
 
#define PTE_USER   (_AT(pteval_t, 1) << 6) /* AP[1] */
 
#define PTE_RDONLY   (_AT(pteval_t, 1) << 7) /* AP[2] */
 
#define PTE_SHARED   (_AT(pteval_t, 3) << 8) /* SH[1:0], inner shareable */
 
#define PTE_AF   (_AT(pteval_t, 1) << 10) /* Access Flag */
 
#define PTE_NG   (_AT(pteval_t, 1) << 11) /* nG */
 
#define PTE_PXN   (_AT(pteval_t, 1) << 53) /* Privileged XN */
 
#define PTE_UXN   (_AT(pteval_t, 1) << 54) /* User XN */
 
#define PTE_ATTRINDX(t)   (_AT(pteval_t, (t)) << 2)
 
#define PTE_ATTRINDX_MASK   (_AT(pteval_t, 7) << 2)
 
#define PHYS_MASK_SHIFT   (40)
 
#define PHYS_MASK   ((UL(1) << PHYS_MASK_SHIFT) - 1)
 
#define TCR_TxSZ(x)   (((UL(64) - (x)) << 16) | ((UL(64) - (x)) << 0))
 
#define TCR_IRGN_NC   ((UL(0) << 8) | (UL(0) << 24))
 
#define TCR_IRGN_WBWA   ((UL(1) << 8) | (UL(1) << 24))
 
#define TCR_IRGN_WT   ((UL(2) << 8) | (UL(2) << 24))
 
#define TCR_IRGN_WBnWA   ((UL(3) << 8) | (UL(3) << 24))
 
#define TCR_IRGN_MASK   ((UL(3) << 8) | (UL(3) << 24))
 
#define TCR_ORGN_NC   ((UL(0) << 10) | (UL(0) << 26))
 
#define TCR_ORGN_WBWA   ((UL(1) << 10) | (UL(1) << 26))
 
#define TCR_ORGN_WT   ((UL(2) << 10) | (UL(2) << 26))
 
#define TCR_ORGN_WBnWA   ((UL(3) << 10) | (UL(3) << 26))
 
#define TCR_ORGN_MASK   ((UL(3) << 10) | (UL(3) << 26))
 
#define TCR_SHARED   ((UL(3) << 12) | (UL(3) << 28))
 
#define TCR_TG0_64K   (UL(1) << 14)
 
#define TCR_TG1_64K   (UL(1) << 30)
 
#define TCR_IPS_40BIT   (UL(2) << 32)
 
#define TCR_ASID16   (UL(1) << 36)
 

Macro Definition Documentation

#define PHYS_MASK   ((UL(1) << PHYS_MASK_SHIFT) - 1)

Definition at line 74 of file pgtable-hwdef.h.

#define PHYS_MASK_SHIFT   (40)

Definition at line 73 of file pgtable-hwdef.h.

#define PMD_ATTRINDX (   t)    (_AT(pmdval_t, (t)) << 2)

Definition at line 47 of file pgtable-hwdef.h.

#define PMD_ATTRINDX_MASK   (_AT(pmdval_t, 7) << 2)

Definition at line 48 of file pgtable-hwdef.h.

#define PMD_SECT_AF   (_AT(pmdval_t, 1) << 10)

Definition at line 39 of file pgtable-hwdef.h.

#define PMD_SECT_NG   (_AT(pmdval_t, 1) << 11)

Definition at line 40 of file pgtable-hwdef.h.

#define PMD_SECT_PXN   (_AT(pmdval_t, 1) << 53)

Definition at line 41 of file pgtable-hwdef.h.

#define PMD_SECT_S   (_AT(pmdval_t, 3) << 8)

Definition at line 38 of file pgtable-hwdef.h.

#define PMD_SECT_UXN   (_AT(pmdval_t, 1) << 54)

Definition at line 42 of file pgtable-hwdef.h.

#define PMD_TYPE_FAULT   (_AT(pmdval_t, 0) << 0)

Definition at line 31 of file pgtable-hwdef.h.

#define PMD_TYPE_MASK   (_AT(pmdval_t, 3) << 0)

Definition at line 30 of file pgtable-hwdef.h.

#define PMD_TYPE_SECT   (_AT(pmdval_t, 1) << 0)

Definition at line 33 of file pgtable-hwdef.h.

#define PMD_TYPE_TABLE   (_AT(pmdval_t, 3) << 0)

Definition at line 32 of file pgtable-hwdef.h.

#define PTE_AF   (_AT(pteval_t, 1) << 10) /* Access Flag */

Definition at line 59 of file pgtable-hwdef.h.

#define PTE_ATTRINDX (   t)    (_AT(pteval_t, (t)) << 2)

Definition at line 67 of file pgtable-hwdef.h.

#define PTE_ATTRINDX_MASK   (_AT(pteval_t, 7) << 2)

Definition at line 68 of file pgtable-hwdef.h.

#define PTE_NG   (_AT(pteval_t, 1) << 11) /* nG */

Definition at line 60 of file pgtable-hwdef.h.

#define PTE_PXN   (_AT(pteval_t, 1) << 53) /* Privileged XN */

Definition at line 61 of file pgtable-hwdef.h.

#define PTE_RDONLY   (_AT(pteval_t, 1) << 7) /* AP[2] */

Definition at line 57 of file pgtable-hwdef.h.

#define PTE_SHARED   (_AT(pteval_t, 3) << 8) /* SH[1:0], inner shareable */

Definition at line 58 of file pgtable-hwdef.h.

#define PTE_TYPE_FAULT   (_AT(pteval_t, 0) << 0)

Definition at line 54 of file pgtable-hwdef.h.

#define PTE_TYPE_MASK   (_AT(pteval_t, 3) << 0)

Definition at line 53 of file pgtable-hwdef.h.

#define PTE_TYPE_PAGE   (_AT(pteval_t, 3) << 0)

Definition at line 55 of file pgtable-hwdef.h.

#define PTE_USER   (_AT(pteval_t, 1) << 6) /* AP[1] */

Definition at line 56 of file pgtable-hwdef.h.

#define PTE_UXN   (_AT(pteval_t, 1) << 54) /* User XN */

Definition at line 62 of file pgtable-hwdef.h.

#define TCR_ASID16   (UL(1) << 36)

Definition at line 94 of file pgtable-hwdef.h.

#define TCR_IPS_40BIT   (UL(2) << 32)

Definition at line 93 of file pgtable-hwdef.h.

#define TCR_IRGN_MASK   ((UL(3) << 8) | (UL(3) << 24))

Definition at line 84 of file pgtable-hwdef.h.

#define TCR_IRGN_NC   ((UL(0) << 8) | (UL(0) << 24))

Definition at line 80 of file pgtable-hwdef.h.

#define TCR_IRGN_WBnWA   ((UL(3) << 8) | (UL(3) << 24))

Definition at line 83 of file pgtable-hwdef.h.

#define TCR_IRGN_WBWA   ((UL(1) << 8) | (UL(1) << 24))

Definition at line 81 of file pgtable-hwdef.h.

#define TCR_IRGN_WT   ((UL(2) << 8) | (UL(2) << 24))

Definition at line 82 of file pgtable-hwdef.h.

#define TCR_ORGN_MASK   ((UL(3) << 10) | (UL(3) << 26))

Definition at line 89 of file pgtable-hwdef.h.

#define TCR_ORGN_NC   ((UL(0) << 10) | (UL(0) << 26))

Definition at line 85 of file pgtable-hwdef.h.

#define TCR_ORGN_WBnWA   ((UL(3) << 10) | (UL(3) << 26))

Definition at line 88 of file pgtable-hwdef.h.

#define TCR_ORGN_WBWA   ((UL(1) << 10) | (UL(1) << 26))

Definition at line 86 of file pgtable-hwdef.h.

#define TCR_ORGN_WT   ((UL(2) << 10) | (UL(2) << 26))

Definition at line 87 of file pgtable-hwdef.h.

#define TCR_SHARED   ((UL(3) << 12) | (UL(3) << 28))

Definition at line 90 of file pgtable-hwdef.h.

#define TCR_TG0_64K   (UL(1) << 14)

Definition at line 91 of file pgtable-hwdef.h.

#define TCR_TG1_64K   (UL(1) << 30)

Definition at line 92 of file pgtable-hwdef.h.

#define TCR_TxSZ (   x)    (((UL(64) - (x)) << 16) | ((UL(64) - (x)) << 0))

Definition at line 79 of file pgtable-hwdef.h.