Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
reg_a2.h File Reference

Go to the source code of this file.

Macros

#define SPRN_TENSR   0x1b5
 
#define SPRN_TENS   0x1b6 /* Thread ENable Set */
 
#define SPRN_TENC   0x1b7 /* Thread ENable Clear */
 
#define SPRN_A2_CCR0   0x3f0 /* Core Configuration Register 0 */
 
#define SPRN_A2_CCR1   0x3f1 /* Core Configuration Register 1 */
 
#define SPRN_A2_CCR2   0x3f2 /* Core Configuration Register 2 */
 
#define SPRN_MMUCR0   0x3fc /* MMU Control Register 0 */
 
#define SPRN_MMUCR1   0x3fd /* MMU Control Register 1 */
 
#define SPRN_MMUCR2   0x3fe /* MMU Control Register 2 */
 
#define SPRN_MMUCR3   0x3ff /* MMU Control Register 3 */
 
#define SPRN_IAR   0x372
 
#define SPRN_IUCR0   0x3f3
 
#define IUCR0_ICBI_ACK   0x1000
 
#define SPRN_XUCR0   0x3f6 /* Execution Unit Config Register 0 */
 
#define A2_IERAT_SIZE   16
 
#define A2_DERAT_SIZE   32
 
#define MMUCR0_ECL   0x80000000 /* Extended Class for TLB fills */
 
#define MMUCR0_TID_NZ   0x40000000 /* TID is non-zero */
 
#define MMUCR0_TS   0x10000000 /* Translation space for TLB fills */
 
#define MMUCR0_TGS   0x20000000 /* Guest space for TLB fills */
 
#define MMUCR0_TLBSEL   0x0c000000 /* TLB or ERAT target for TLB fills */
 
#define MMUCR0_TLBSEL_U   0x00000000 /* TLBSEL = UTLB */
 
#define MMUCR0_TLBSEL_I   0x08000000 /* TLBSEL = I-ERAT */
 
#define MMUCR0_TLBSEL_D   0x0c000000 /* TLBSEL = D-ERAT */
 
#define MMUCR0_LOCKSRSH   0x02000000 /* Use TLB lock on tlbsx. */
 
#define MMUCR0_TID_MASK   0x000000ff /* TID field */
 
#define MMUCR1_IRRE   0x80000000 /* I-ERAT round robin enable */
 
#define MMUCR1_DRRE   0x40000000 /* D-ERAT round robin enable */
 
#define MMUCR1_REE   0x20000000 /* Reference Exception Enable*/
 
#define MMUCR1_CEE   0x10000000 /* Change exception enable */
 
#define MMUCR1_CSINV_ALL   0x00000000 /* Inval ERAT on all CS evts */
 
#define MMUCR1_CSINV_NISYNC   0x04000000 /* Inval ERAT on all ex isync*/
 
#define MMUCR1_CSINV_NEVER   0x0c000000 /* Don't inval ERAT on CS */
 
#define MMUCR1_ICTID   0x00080000 /* IERAT class field as TID */
 
#define MMUCR1_ITTID   0x00040000 /* IERAT thdid field as TID */
 
#define MMUCR1_DCTID   0x00020000 /* DERAT class field as TID */
 
#define MMUCR1_DTTID   0x00010000 /* DERAT thdid field as TID */
 
#define MMUCR1_DCCD   0x00008000 /* DERAT class ignore */
 
#define MMUCR1_TLBWE_BINV   0x00004000 /* back invalidate on tlbwe */
 
#define MMUCR2_PSSEL_SHIFT   4
 
#define MMUCR3_THID   0x0000000f /* Thread ID */
 
#define TLB0_EPN_MASK   ASM_CONST(0xfffffffffffff000)
 
#define TLB0_CLASS_MASK   ASM_CONST(0x0000000000000c00)
 
#define TLB0_CLASS_00   ASM_CONST(0x0000000000000000)
 
#define TLB0_CLASS_01   ASM_CONST(0x0000000000000400)
 
#define TLB0_CLASS_10   ASM_CONST(0x0000000000000800)
 
#define TLB0_CLASS_11   ASM_CONST(0x0000000000000c00)
 
#define TLB0_V   ASM_CONST(0x0000000000000200)
 
#define TLB0_X   ASM_CONST(0x0000000000000100)
 
#define TLB0_SIZE_MASK   ASM_CONST(0x00000000000000f0)
 
#define TLB0_SIZE_4K   ASM_CONST(0x0000000000000010)
 
#define TLB0_SIZE_64K   ASM_CONST(0x0000000000000030)
 
#define TLB0_SIZE_1M   ASM_CONST(0x0000000000000050)
 
#define TLB0_SIZE_16M   ASM_CONST(0x0000000000000070)
 
#define TLB0_SIZE_1G   ASM_CONST(0x00000000000000a0)
 
#define TLB0_THDID_MASK   ASM_CONST(0x000000000000000f)
 
#define TLB0_THDID_0   ASM_CONST(0x0000000000000001)
 
#define TLB0_THDID_1   ASM_CONST(0x0000000000000002)
 
#define TLB0_THDID_2   ASM_CONST(0x0000000000000004)
 
#define TLB0_THDID_3   ASM_CONST(0x0000000000000008)
 
#define TLB0_THDID_ALL   ASM_CONST(0x000000000000000f)
 
#define TLB1_RESVATTR   ASM_CONST(0x00f0000000000000)
 
#define TLB1_U0   ASM_CONST(0x0008000000000000)
 
#define TLB1_U1   ASM_CONST(0x0004000000000000)
 
#define TLB1_U2   ASM_CONST(0x0002000000000000)
 
#define TLB1_U3   ASM_CONST(0x0001000000000000)
 
#define TLB1_R   ASM_CONST(0x0000800000000000)
 
#define TLB1_C   ASM_CONST(0x0000400000000000)
 
#define TLB1_RPN_MASK   ASM_CONST(0x000003fffffff000)
 
#define TLB1_W   ASM_CONST(0x0000000000000800)
 
#define TLB1_I   ASM_CONST(0x0000000000000400)
 
#define TLB1_M   ASM_CONST(0x0000000000000200)
 
#define TLB1_G   ASM_CONST(0x0000000000000100)
 
#define TLB1_E   ASM_CONST(0x0000000000000080)
 
#define TLB1_VF   ASM_CONST(0x0000000000000040)
 
#define TLB1_UX   ASM_CONST(0x0000000000000020)
 
#define TLB1_SX   ASM_CONST(0x0000000000000010)
 
#define TLB1_UW   ASM_CONST(0x0000000000000008)
 
#define TLB1_SW   ASM_CONST(0x0000000000000004)
 
#define TLB1_UR   ASM_CONST(0x0000000000000002)
 
#define TLB1_SR   ASM_CONST(0x0000000000000001)
 
#define ERATIVAX_RS_IS_ALL   0x000
 
#define ERATIVAX_RS_IS_TID   0x040
 
#define ERATIVAX_RS_IS_CLASS   0x080
 
#define ERATIVAX_RS_IS_FULLMATCH   0x0c0
 
#define ERATIVAX_CLASS_00   0x000
 
#define ERATIVAX_CLASS_01   0x010
 
#define ERATIVAX_CLASS_10   0x020
 
#define ERATIVAX_CLASS_11   0x030
 
#define ERATIVAX_PSIZE_4K   (TLB_PSIZE_4K >> 1)
 
#define ERATIVAX_PSIZE_64K   (TLB_PSIZE_64K >> 1)
 
#define ERATIVAX_PSIZE_1M   (TLB_PSIZE_1M >> 1)
 
#define ERATIVAX_PSIZE_16M   (TLB_PSIZE_16M >> 1)
 
#define ERATIVAX_PSIZE_1G   (TLB_PSIZE_1G >> 1)
 
#define ERATILX_T_ALL   0
 
#define ERATILX_T_TID   1
 
#define ERATILX_T_TGS   2
 
#define ERATILX_T_FULLMATCH   3
 
#define ERATILX_T_CLASS0   4
 
#define ERATILX_T_CLASS1   5
 
#define ERATILX_T_CLASS2   6
 
#define ERATILX_T_CLASS3   7
 
#define XUCR0_TRACE_UM_T0   0x40000000 /* Thread 0 */
 
#define XUCR0_TRACE_UM_T1   0x20000000 /* Thread 1 */
 
#define XUCR0_TRACE_UM_T2   0x10000000 /* Thread 2 */
 
#define XUCR0_TRACE_UM_T3   0x08000000 /* Thread 3 */
 
#define A2_CCR0_PME_DISABLED   0x00000000
 
#define A2_CCR0_PME_SLEEP   0x40000000
 
#define A2_CCR0_PME_RVW   0x80000000
 
#define A2_CCR0_PME_DISABLED2   0xc0000000
 
#define A2_CCR2_ERAT_ONLY_MODE   0x00000001
 
#define A2_CCR2_ENABLE_ICSWX   0x00000002
 
#define A2_CCR2_ENABLE_PC   0x20000000
 
#define A2_CCR2_ENABLE_TRACE   0x40000000
 

Macro Definition Documentation

#define A2_CCR0_PME_DISABLED   0x00000000

Definition at line 154 of file reg_a2.h.

#define A2_CCR0_PME_DISABLED2   0xc0000000

Definition at line 157 of file reg_a2.h.

#define A2_CCR0_PME_RVW   0x80000000

Definition at line 156 of file reg_a2.h.

#define A2_CCR0_PME_SLEEP   0x40000000

Definition at line 155 of file reg_a2.h.

#define A2_CCR2_ENABLE_ICSWX   0x00000002

Definition at line 161 of file reg_a2.h.

#define A2_CCR2_ENABLE_PC   0x20000000

Definition at line 162 of file reg_a2.h.

#define A2_CCR2_ENABLE_TRACE   0x40000000

Definition at line 163 of file reg_a2.h.

#define A2_CCR2_ERAT_ONLY_MODE   0x00000001

Definition at line 160 of file reg_a2.h.

#define A2_DERAT_SIZE   32

Definition at line 35 of file reg_a2.h.

#define A2_IERAT_SIZE   16

Definition at line 34 of file reg_a2.h.

#define ERATILX_T_ALL   0

Definition at line 138 of file reg_a2.h.

#define ERATILX_T_CLASS0   4

Definition at line 142 of file reg_a2.h.

#define ERATILX_T_CLASS1   5

Definition at line 143 of file reg_a2.h.

#define ERATILX_T_CLASS2   6

Definition at line 144 of file reg_a2.h.

#define ERATILX_T_CLASS3   7

Definition at line 145 of file reg_a2.h.

#define ERATILX_T_FULLMATCH   3

Definition at line 141 of file reg_a2.h.

#define ERATILX_T_TGS   2

Definition at line 140 of file reg_a2.h.

#define ERATILX_T_TID   1

Definition at line 139 of file reg_a2.h.

#define ERATIVAX_CLASS_00   0x000

Definition at line 127 of file reg_a2.h.

#define ERATIVAX_CLASS_01   0x010

Definition at line 128 of file reg_a2.h.

#define ERATIVAX_CLASS_10   0x020

Definition at line 129 of file reg_a2.h.

#define ERATIVAX_CLASS_11   0x030

Definition at line 130 of file reg_a2.h.

#define ERATIVAX_PSIZE_16M   (TLB_PSIZE_16M >> 1)

Definition at line 134 of file reg_a2.h.

#define ERATIVAX_PSIZE_1G   (TLB_PSIZE_1G >> 1)

Definition at line 135 of file reg_a2.h.

#define ERATIVAX_PSIZE_1M   (TLB_PSIZE_1M >> 1)

Definition at line 133 of file reg_a2.h.

#define ERATIVAX_PSIZE_4K   (TLB_PSIZE_4K >> 1)

Definition at line 131 of file reg_a2.h.

#define ERATIVAX_PSIZE_64K   (TLB_PSIZE_64K >> 1)

Definition at line 132 of file reg_a2.h.

#define ERATIVAX_RS_IS_ALL   0x000

Definition at line 123 of file reg_a2.h.

#define ERATIVAX_RS_IS_CLASS   0x080

Definition at line 125 of file reg_a2.h.

#define ERATIVAX_RS_IS_FULLMATCH   0x0c0

Definition at line 126 of file reg_a2.h.

#define ERATIVAX_RS_IS_TID   0x040

Definition at line 124 of file reg_a2.h.

#define IUCR0_ICBI_ACK   0x1000

Definition at line 30 of file reg_a2.h.

#define MMUCR0_ECL   0x80000000 /* Extended Class for TLB fills */

Definition at line 38 of file reg_a2.h.

#define MMUCR0_LOCKSRSH   0x02000000 /* Use TLB lock on tlbsx. */

Definition at line 46 of file reg_a2.h.

#define MMUCR0_TGS   0x20000000 /* Guest space for TLB fills */

Definition at line 41 of file reg_a2.h.

#define MMUCR0_TID_MASK   0x000000ff /* TID field */

Definition at line 47 of file reg_a2.h.

#define MMUCR0_TID_NZ   0x40000000 /* TID is non-zero */

Definition at line 39 of file reg_a2.h.

#define MMUCR0_TLBSEL   0x0c000000 /* TLB or ERAT target for TLB fills */

Definition at line 42 of file reg_a2.h.

#define MMUCR0_TLBSEL_D   0x0c000000 /* TLBSEL = D-ERAT */

Definition at line 45 of file reg_a2.h.

#define MMUCR0_TLBSEL_I   0x08000000 /* TLBSEL = I-ERAT */

Definition at line 44 of file reg_a2.h.

#define MMUCR0_TLBSEL_U   0x00000000 /* TLBSEL = UTLB */

Definition at line 43 of file reg_a2.h.

#define MMUCR0_TS   0x10000000 /* Translation space for TLB fills */

Definition at line 40 of file reg_a2.h.

#define MMUCR1_CEE   0x10000000 /* Change exception enable */

Definition at line 53 of file reg_a2.h.

#define MMUCR1_CSINV_ALL   0x00000000 /* Inval ERAT on all CS evts */

Definition at line 54 of file reg_a2.h.

#define MMUCR1_CSINV_NEVER   0x0c000000 /* Don't inval ERAT on CS */

Definition at line 56 of file reg_a2.h.

#define MMUCR1_CSINV_NISYNC   0x04000000 /* Inval ERAT on all ex isync*/

Definition at line 55 of file reg_a2.h.

#define MMUCR1_DCCD   0x00008000 /* DERAT class ignore */

Definition at line 61 of file reg_a2.h.

#define MMUCR1_DCTID   0x00020000 /* DERAT class field as TID */

Definition at line 59 of file reg_a2.h.

#define MMUCR1_DRRE   0x40000000 /* D-ERAT round robin enable */

Definition at line 51 of file reg_a2.h.

#define MMUCR1_DTTID   0x00010000 /* DERAT thdid field as TID */

Definition at line 60 of file reg_a2.h.

#define MMUCR1_ICTID   0x00080000 /* IERAT class field as TID */

Definition at line 57 of file reg_a2.h.

#define MMUCR1_IRRE   0x80000000 /* I-ERAT round robin enable */

Definition at line 50 of file reg_a2.h.

#define MMUCR1_ITTID   0x00040000 /* IERAT thdid field as TID */

Definition at line 58 of file reg_a2.h.

#define MMUCR1_REE   0x20000000 /* Reference Exception Enable*/

Definition at line 52 of file reg_a2.h.

#define MMUCR1_TLBWE_BINV   0x00004000 /* back invalidate on tlbwe */

Definition at line 62 of file reg_a2.h.

#define MMUCR2_PSSEL_SHIFT   4

Definition at line 65 of file reg_a2.h.

#define MMUCR3_THID   0x0000000f /* Thread ID */

Definition at line 68 of file reg_a2.h.

#define SPRN_A2_CCR0   0x3f0 /* Core Configuration Register 0 */

Definition at line 19 of file reg_a2.h.

#define SPRN_A2_CCR1   0x3f1 /* Core Configuration Register 1 */

Definition at line 20 of file reg_a2.h.

#define SPRN_A2_CCR2   0x3f2 /* Core Configuration Register 2 */

Definition at line 21 of file reg_a2.h.

#define SPRN_IAR   0x372

Definition at line 27 of file reg_a2.h.

#define SPRN_IUCR0   0x3f3

Definition at line 29 of file reg_a2.h.

#define SPRN_MMUCR0   0x3fc /* MMU Control Register 0 */

Definition at line 22 of file reg_a2.h.

#define SPRN_MMUCR1   0x3fd /* MMU Control Register 1 */

Definition at line 23 of file reg_a2.h.

#define SPRN_MMUCR2   0x3fe /* MMU Control Register 2 */

Definition at line 24 of file reg_a2.h.

#define SPRN_MMUCR3   0x3ff /* MMU Control Register 3 */

Definition at line 25 of file reg_a2.h.

#define SPRN_TENC   0x1b7 /* Thread ENable Clear */

Definition at line 17 of file reg_a2.h.

#define SPRN_TENS   0x1b6 /* Thread ENable Set */

Definition at line 16 of file reg_a2.h.

#define SPRN_TENSR   0x1b5

Definition at line 15 of file reg_a2.h.

#define SPRN_XUCR0   0x3f6 /* Execution Unit Config Register 0 */

Definition at line 32 of file reg_a2.h.

#define TLB0_CLASS_00   ASM_CONST(0x0000000000000000)

Definition at line 73 of file reg_a2.h.

#define TLB0_CLASS_01   ASM_CONST(0x0000000000000400)

Definition at line 74 of file reg_a2.h.

#define TLB0_CLASS_10   ASM_CONST(0x0000000000000800)

Definition at line 75 of file reg_a2.h.

#define TLB0_CLASS_11   ASM_CONST(0x0000000000000c00)

Definition at line 76 of file reg_a2.h.

#define TLB0_CLASS_MASK   ASM_CONST(0x0000000000000c00)

Definition at line 72 of file reg_a2.h.

#define TLB0_EPN_MASK   ASM_CONST(0xfffffffffffff000)

Definition at line 71 of file reg_a2.h.

#define TLB0_SIZE_16M   ASM_CONST(0x0000000000000070)

Definition at line 83 of file reg_a2.h.

#define TLB0_SIZE_1G   ASM_CONST(0x00000000000000a0)

Definition at line 84 of file reg_a2.h.

#define TLB0_SIZE_1M   ASM_CONST(0x0000000000000050)

Definition at line 82 of file reg_a2.h.

#define TLB0_SIZE_4K   ASM_CONST(0x0000000000000010)

Definition at line 80 of file reg_a2.h.

#define TLB0_SIZE_64K   ASM_CONST(0x0000000000000030)

Definition at line 81 of file reg_a2.h.

#define TLB0_SIZE_MASK   ASM_CONST(0x00000000000000f0)

Definition at line 79 of file reg_a2.h.

#define TLB0_THDID_0   ASM_CONST(0x0000000000000001)

Definition at line 86 of file reg_a2.h.

#define TLB0_THDID_1   ASM_CONST(0x0000000000000002)

Definition at line 87 of file reg_a2.h.

#define TLB0_THDID_2   ASM_CONST(0x0000000000000004)

Definition at line 88 of file reg_a2.h.

#define TLB0_THDID_3   ASM_CONST(0x0000000000000008)

Definition at line 89 of file reg_a2.h.

#define TLB0_THDID_ALL   ASM_CONST(0x000000000000000f)

Definition at line 90 of file reg_a2.h.

#define TLB0_THDID_MASK   ASM_CONST(0x000000000000000f)

Definition at line 85 of file reg_a2.h.

#define TLB0_V   ASM_CONST(0x0000000000000200)

Definition at line 77 of file reg_a2.h.

#define TLB0_X   ASM_CONST(0x0000000000000100)

Definition at line 78 of file reg_a2.h.

#define TLB1_C   ASM_CONST(0x0000400000000000)

Definition at line 98 of file reg_a2.h.

#define TLB1_E   ASM_CONST(0x0000000000000080)

Definition at line 104 of file reg_a2.h.

#define TLB1_G   ASM_CONST(0x0000000000000100)

Definition at line 103 of file reg_a2.h.

#define TLB1_I   ASM_CONST(0x0000000000000400)

Definition at line 101 of file reg_a2.h.

#define TLB1_M   ASM_CONST(0x0000000000000200)

Definition at line 102 of file reg_a2.h.

#define TLB1_R   ASM_CONST(0x0000800000000000)

Definition at line 97 of file reg_a2.h.

#define TLB1_RESVATTR   ASM_CONST(0x00f0000000000000)

Definition at line 92 of file reg_a2.h.

#define TLB1_RPN_MASK   ASM_CONST(0x000003fffffff000)

Definition at line 99 of file reg_a2.h.

#define TLB1_SR   ASM_CONST(0x0000000000000001)

Definition at line 111 of file reg_a2.h.

#define TLB1_SW   ASM_CONST(0x0000000000000004)

Definition at line 109 of file reg_a2.h.

#define TLB1_SX   ASM_CONST(0x0000000000000010)

Definition at line 107 of file reg_a2.h.

#define TLB1_U0   ASM_CONST(0x0008000000000000)

Definition at line 93 of file reg_a2.h.

#define TLB1_U1   ASM_CONST(0x0004000000000000)

Definition at line 94 of file reg_a2.h.

#define TLB1_U2   ASM_CONST(0x0002000000000000)

Definition at line 95 of file reg_a2.h.

#define TLB1_U3   ASM_CONST(0x0001000000000000)

Definition at line 96 of file reg_a2.h.

#define TLB1_UR   ASM_CONST(0x0000000000000002)

Definition at line 110 of file reg_a2.h.

#define TLB1_UW   ASM_CONST(0x0000000000000008)

Definition at line 108 of file reg_a2.h.

#define TLB1_UX   ASM_CONST(0x0000000000000020)

Definition at line 106 of file reg_a2.h.

#define TLB1_VF   ASM_CONST(0x0000000000000040)

Definition at line 105 of file reg_a2.h.

#define TLB1_W   ASM_CONST(0x0000000000000800)

Definition at line 100 of file reg_a2.h.

#define XUCR0_TRACE_UM_T0   0x40000000 /* Thread 0 */

Definition at line 148 of file reg_a2.h.

#define XUCR0_TRACE_UM_T1   0x20000000 /* Thread 1 */

Definition at line 149 of file reg_a2.h.

#define XUCR0_TRACE_UM_T2   0x10000000 /* Thread 2 */

Definition at line 150 of file reg_a2.h.

#define XUCR0_TRACE_UM_T3   0x08000000 /* Thread 3 */

Definition at line 151 of file reg_a2.h.