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

Go to the source code of this file.

Data Structures

struct  mm_context_t
 
struct  mmu_psize_def
 

Macros

#define BOOK3E_PAGESZ_1K   0
 
#define BOOK3E_PAGESZ_2K   1
 
#define BOOK3E_PAGESZ_4K   2
 
#define BOOK3E_PAGESZ_8K   3
 
#define BOOK3E_PAGESZ_16K   4
 
#define BOOK3E_PAGESZ_32K   5
 
#define BOOK3E_PAGESZ_64K   6
 
#define BOOK3E_PAGESZ_128K   7
 
#define BOOK3E_PAGESZ_256K   8
 
#define BOOK3E_PAGESZ_512K   9
 
#define BOOK3E_PAGESZ_1M   10
 
#define BOOK3E_PAGESZ_2M   11
 
#define BOOK3E_PAGESZ_4M   12
 
#define BOOK3E_PAGESZ_8M   13
 
#define BOOK3E_PAGESZ_16M   14
 
#define BOOK3E_PAGESZ_32M   15
 
#define BOOK3E_PAGESZ_64M   16
 
#define BOOK3E_PAGESZ_128M   17
 
#define BOOK3E_PAGESZ_256M   18
 
#define BOOK3E_PAGESZ_512M   19
 
#define BOOK3E_PAGESZ_1GB   20
 
#define BOOK3E_PAGESZ_2GB   21
 
#define BOOK3E_PAGESZ_4GB   22
 
#define BOOK3E_PAGESZ_8GB   23
 
#define BOOK3E_PAGESZ_16GB   24
 
#define BOOK3E_PAGESZ_32GB   25
 
#define BOOK3E_PAGESZ_64GB   26
 
#define BOOK3E_PAGESZ_128GB   27
 
#define BOOK3E_PAGESZ_256GB   28
 
#define BOOK3E_PAGESZ_512GB   29
 
#define BOOK3E_PAGESZ_1TB   30
 
#define BOOK3E_PAGESZ_2TB   31
 
#define MAS0_TLBSEL(x)   (((x) << 28) & 0x30000000)
 
#define MAS0_ESEL_MASK   0x0FFF0000
 
#define MAS0_ESEL_SHIFT   16
 
#define MAS0_ESEL(x)   (((x) << MAS0_ESEL_SHIFT) & MAS0_ESEL_MASK)
 
#define MAS0_NV(x)   ((x) & 0x00000FFF)
 
#define MAS0_HES   0x00004000
 
#define MAS0_WQ_ALLWAYS   0x00000000
 
#define MAS0_WQ_COND   0x00001000
 
#define MAS0_WQ_CLR_RSRV   0x00002000
 
#define MAS1_VALID   0x80000000
 
#define MAS1_IPROT   0x40000000
 
#define MAS1_TID(x)   (((x) << 16) & 0x3FFF0000)
 
#define MAS1_IND   0x00002000
 
#define MAS1_TS   0x00001000
 
#define MAS1_TSIZE_MASK   0x00000f80
 
#define MAS1_TSIZE_SHIFT   7
 
#define MAS1_TSIZE(x)   (((x) << MAS1_TSIZE_SHIFT) & MAS1_TSIZE_MASK)
 
#define MAS2_EPN   0xFFFFF000
 
#define MAS2_X0   0x00000040
 
#define MAS2_X1   0x00000020
 
#define MAS2_W   0x00000010
 
#define MAS2_I   0x00000008
 
#define MAS2_M   0x00000004
 
#define MAS2_G   0x00000002
 
#define MAS2_E   0x00000001
 
#define MAS2_WIMGE_MASK   0x0000001f
 
#define MAS2_EPN_MASK(size)   (~0 << (size + 10))
 
#define MAS2_VAL(addr, size, flags)   ((addr) & MAS2_EPN_MASK(size) | (flags))
 
#define MAS3_RPN   0xFFFFF000
 
#define MAS3_U0   0x00000200
 
#define MAS3_U1   0x00000100
 
#define MAS3_U2   0x00000080
 
#define MAS3_U3   0x00000040
 
#define MAS3_UX   0x00000020
 
#define MAS3_SX   0x00000010
 
#define MAS3_UW   0x00000008
 
#define MAS3_SW   0x00000004
 
#define MAS3_UR   0x00000002
 
#define MAS3_SR   0x00000001
 
#define MAS3_BAP_MASK   0x0000003f
 
#define MAS3_SPSIZE   0x0000003e
 
#define MAS3_SPSIZE_SHIFT   1
 
#define MAS4_TLBSELD(x)   MAS0_TLBSEL(x)
 
#define MAS4_INDD   0x00008000 /* Default IND */
 
#define MAS4_TSIZED(x)   MAS1_TSIZE(x)
 
#define MAS4_X0D   0x00000040
 
#define MAS4_X1D   0x00000020
 
#define MAS4_WD   0x00000010
 
#define MAS4_ID   0x00000008
 
#define MAS4_MD   0x00000004
 
#define MAS4_GD   0x00000002
 
#define MAS4_ED   0x00000001
 
#define MAS4_WIMGED_MASK   0x0000001f /* Default WIMGE */
 
#define MAS4_WIMGED_SHIFT   0
 
#define MAS4_VLED   MAS4_X1D /* Default VLE */
 
#define MAS4_ACMD   0x000000c0 /* Default ACM */
 
#define MAS4_ACMD_SHIFT   6
 
#define MAS4_TSIZED_MASK   0x00000f80 /* Default TSIZE */
 
#define MAS4_TSIZED_SHIFT   7
 
#define MAS5_SGS   0x80000000
 
#define MAS6_SPID0   0x3FFF0000
 
#define MAS6_SPID1   0x00007FFE
 
#define MAS6_ISIZE(x)   MAS1_TSIZE(x)
 
#define MAS6_SAS   0x00000001
 
#define MAS6_SPID   MAS6_SPID0
 
#define MAS6_SIND   0x00000002 /* Indirect page */
 
#define MAS6_SIND_SHIFT   1
 
#define MAS6_SPID_MASK   0x3fff0000
 
#define MAS6_SPID_SHIFT   16
 
#define MAS6_ISIZE_MASK   0x00000f80
 
#define MAS6_ISIZE_SHIFT   7
 
#define MAS7_RPN   0xFFFFFFFF
 
#define MAS8_TGS   0x80000000 /* Guest space */
 
#define MAS8_VF   0x40000000 /* Virtualization Fault */
 
#define MAS8_TLPID   0x000000ff
 
#define MMUCFG_MAVN   0x00000003 /* MMU Architecture Version Number */
 
#define MMUCFG_MAVN_V1   0x00000000 /* v1.0 */
 
#define MMUCFG_MAVN_V2   0x00000001 /* v2.0 */
 
#define MMUCFG_NTLBS   0x0000000c /* Number of TLBs */
 
#define MMUCFG_PIDSIZE   0x000007c0 /* PID Reg Size */
 
#define MMUCFG_TWC   0x00008000 /* TLB Write Conditional (v2.0) */
 
#define MMUCFG_LRAT   0x00010000 /* LRAT Supported (v2.0) */
 
#define MMUCFG_RASIZE   0x00fe0000 /* Real Addr Size */
 
#define MMUCFG_LPIDSIZE   0x0f000000 /* LPID Reg Size */
 
#define MMUCSR0_TLB1FI   0x00000002 /* TLB1 Flash invalidate */
 
#define MMUCSR0_TLB0FI   0x00000004 /* TLB0 Flash invalidate */
 
#define MMUCSR0_TLB2FI   0x00000040 /* TLB2 Flash invalidate */
 
#define MMUCSR0_TLB3FI   0x00000020 /* TLB3 Flash invalidate */
 
#define MMUCSR0_TLBFI
 
#define MMUCSR0_TLB0PS   0x00000780 /* TLB0 Page Size */
 
#define MMUCSR0_TLB1PS   0x00007800 /* TLB1 Page Size */
 
#define MMUCSR0_TLB2PS   0x00078000 /* TLB2 Page Size */
 
#define MMUCSR0_TLB3PS   0x00780000 /* TLB3 Page Size */
 
#define MMUCFG_MAVN_NASK   0x00000003
 
#define MMUCFG_MAVN_V1_0   0x00000000
 
#define MMUCFG_MAVN_V2_0   0x00000001
 
#define MMUCFG_NTLB_MASK   0x0000000c
 
#define MMUCFG_NTLB_SHIFT   2
 
#define MMUCFG_PIDSIZE_MASK   0x000007c0
 
#define MMUCFG_PIDSIZE_SHIFT   6
 
#define MMUCFG_TWC   0x00008000
 
#define MMUCFG_LRAT   0x00010000
 
#define MMUCFG_RASIZE_MASK   0x00fe0000
 
#define MMUCFG_RASIZE_SHIFT   17
 
#define MMUCFG_LPIDSIZE_MASK   0x0f000000
 
#define MMUCFG_LPIDSIZE_SHIFT   24
 
#define TLBnCFG_N_ENTRY   0x00000fff /* number of entries */
 
#define TLBnCFG_HES   0x00002000 /* HW select supported */
 
#define TLBnCFG_IPROT   0x00008000 /* IPROT supported */
 
#define TLBnCFG_GTWE   0x00010000 /* Guest can write */
 
#define TLBnCFG_IND   0x00020000 /* IND entries supported */
 
#define TLBnCFG_PT   0x00040000 /* Can load from page table */
 
#define TLBnCFG_MINSIZE   0x00f00000 /* Minimum Page Size (v1.0) */
 
#define TLBnCFG_MINSIZE_SHIFT   20
 
#define TLBnCFG_MAXSIZE   0x000f0000 /* Maximum Page Size (v1.0) */
 
#define TLBnCFG_MAXSIZE_SHIFT   16
 
#define TLBnCFG_ASSOC   0xff000000 /* Associativity */
 
#define TLBnCFG_ASSOC_SHIFT   24
 
#define TLBnPS_4K   0x00000004
 
#define TLBnPS_8K   0x00000008
 
#define TLBnPS_16K   0x00000010
 
#define TLBnPS_32K   0x00000020
 
#define TLBnPS_64K   0x00000040
 
#define TLBnPS_128K   0x00000080
 
#define TLBnPS_256K   0x00000100
 
#define TLBnPS_512K   0x00000200
 
#define TLBnPS_1M   0x00000400
 
#define TLBnPS_2M   0x00000800
 
#define TLBnPS_4M   0x00001000
 
#define TLBnPS_8M   0x00002000
 
#define TLBnPS_16M   0x00004000
 
#define TLBnPS_32M   0x00008000
 
#define TLBnPS_64M   0x00010000
 
#define TLBnPS_128M   0x00020000
 
#define TLBnPS_256M   0x00040000
 
#define TLBnPS_512M   0x00080000
 
#define TLBnPS_1G   0x00100000
 
#define TLBnPS_2G   0x00200000
 
#define TLBnPS_4G   0x00400000
 
#define TLBnPS_8G   0x00800000
 
#define TLBnPS_16G   0x01000000
 
#define TLBnPS_32G   0x02000000
 
#define TLBnPS_64G   0x04000000
 
#define TLBnPS_128G   0x08000000
 
#define TLBnPS_256G   0x10000000
 
#define TLBILX_T_ALL   0
 
#define TLBILX_T_TID   1
 
#define TLBILX_T_FULLMATCH   3
 
#define TLBILX_T_CLASS0   4
 
#define TLBILX_T_CLASS1   5
 
#define TLBILX_T_CLASS2   6
 
#define TLBILX_T_CLASS3   7
 
#define MMU_PAGE_SIZE_DIRECT   0x1 /* Supported as a direct size */
 
#define MMU_PAGE_SIZE_INDIRECT   0x2 /* Supported as an indirect size */
 

Variables

unsigned int tlbcam_index
 
struct mmu_psize_def mmu_psize_defs [MMU_PAGE_COUNT]
 
int mmu_linear_psize
 
int mmu_vmemmap_psize
 

Macro Definition Documentation

#define BOOK3E_PAGESZ_128GB   27

Definition at line 35 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_128K   7

Definition at line 15 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_128M   17

Definition at line 25 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_16GB   24

Definition at line 32 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_16K   4

Definition at line 12 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_16M   14

Definition at line 22 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_1GB   20

Definition at line 28 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_1K   0

Definition at line 8 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_1M   10

Definition at line 18 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_1TB   30

Definition at line 38 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_256GB   28

Definition at line 36 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_256K   8

Definition at line 16 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_256M   18

Definition at line 26 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_2GB   21

Definition at line 29 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_2K   1

Definition at line 9 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_2M   11

Definition at line 19 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_2TB   31

Definition at line 39 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_32GB   25

Definition at line 33 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_32K   5

Definition at line 13 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_32M   15

Definition at line 23 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_4GB   22

Definition at line 30 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_4K   2

Definition at line 10 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_4M   12

Definition at line 20 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_512GB   29

Definition at line 37 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_512K   9

Definition at line 17 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_512M   19

Definition at line 27 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_64GB   26

Definition at line 34 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_64K   6

Definition at line 14 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_64M   16

Definition at line 24 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_8GB   23

Definition at line 31 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_8K   3

Definition at line 11 of file mmu-book3e.h.

#define BOOK3E_PAGESZ_8M   13

Definition at line 21 of file mmu-book3e.h.

#define MAS0_ESEL (   x)    (((x) << MAS0_ESEL_SHIFT) & MAS0_ESEL_MASK)

Definition at line 46 of file mmu-book3e.h.

#define MAS0_ESEL_MASK   0x0FFF0000

Definition at line 44 of file mmu-book3e.h.

#define MAS0_ESEL_SHIFT   16

Definition at line 45 of file mmu-book3e.h.

#define MAS0_HES   0x00004000

Definition at line 48 of file mmu-book3e.h.

#define MAS0_NV (   x)    ((x) & 0x00000FFF)

Definition at line 47 of file mmu-book3e.h.

#define MAS0_TLBSEL (   x)    (((x) << 28) & 0x30000000)

Definition at line 43 of file mmu-book3e.h.

#define MAS0_WQ_ALLWAYS   0x00000000

Definition at line 49 of file mmu-book3e.h.

#define MAS0_WQ_CLR_RSRV   0x00002000

Definition at line 51 of file mmu-book3e.h.

#define MAS0_WQ_COND   0x00001000

Definition at line 50 of file mmu-book3e.h.

#define MAS1_IND   0x00002000

Definition at line 56 of file mmu-book3e.h.

#define MAS1_IPROT   0x40000000

Definition at line 54 of file mmu-book3e.h.

#define MAS1_TID (   x)    (((x) << 16) & 0x3FFF0000)

Definition at line 55 of file mmu-book3e.h.

#define MAS1_TS   0x00001000

Definition at line 57 of file mmu-book3e.h.

#define MAS1_TSIZE (   x)    (((x) << MAS1_TSIZE_SHIFT) & MAS1_TSIZE_MASK)

Definition at line 60 of file mmu-book3e.h.

#define MAS1_TSIZE_MASK   0x00000f80

Definition at line 58 of file mmu-book3e.h.

#define MAS1_TSIZE_SHIFT   7

Definition at line 59 of file mmu-book3e.h.

#define MAS1_VALID   0x80000000

Definition at line 53 of file mmu-book3e.h.

#define MAS2_E   0x00000001

Definition at line 69 of file mmu-book3e.h.

#define MAS2_EPN   0xFFFFF000

Definition at line 62 of file mmu-book3e.h.

#define MAS2_EPN_MASK (   size)    (~0 << (size + 10))

Definition at line 71 of file mmu-book3e.h.

#define MAS2_G   0x00000002

Definition at line 68 of file mmu-book3e.h.

#define MAS2_I   0x00000008

Definition at line 66 of file mmu-book3e.h.

#define MAS2_M   0x00000004

Definition at line 67 of file mmu-book3e.h.

#define MAS2_VAL (   addr,
  size,
  flags 
)    ((addr) & MAS2_EPN_MASK(size) | (flags))

Definition at line 72 of file mmu-book3e.h.

#define MAS2_W   0x00000010

Definition at line 65 of file mmu-book3e.h.

#define MAS2_WIMGE_MASK   0x0000001f

Definition at line 70 of file mmu-book3e.h.

#define MAS2_X0   0x00000040

Definition at line 63 of file mmu-book3e.h.

#define MAS2_X1   0x00000020

Definition at line 64 of file mmu-book3e.h.

#define MAS3_BAP_MASK   0x0000003f

Definition at line 85 of file mmu-book3e.h.

#define MAS3_RPN   0xFFFFF000

Definition at line 74 of file mmu-book3e.h.

#define MAS3_SPSIZE   0x0000003e

Definition at line 86 of file mmu-book3e.h.

#define MAS3_SPSIZE_SHIFT   1

Definition at line 87 of file mmu-book3e.h.

#define MAS3_SR   0x00000001

Definition at line 84 of file mmu-book3e.h.

#define MAS3_SW   0x00000004

Definition at line 82 of file mmu-book3e.h.

#define MAS3_SX   0x00000010

Definition at line 80 of file mmu-book3e.h.

#define MAS3_U0   0x00000200

Definition at line 75 of file mmu-book3e.h.

#define MAS3_U1   0x00000100

Definition at line 76 of file mmu-book3e.h.

#define MAS3_U2   0x00000080

Definition at line 77 of file mmu-book3e.h.

#define MAS3_U3   0x00000040

Definition at line 78 of file mmu-book3e.h.

#define MAS3_UR   0x00000002

Definition at line 83 of file mmu-book3e.h.

#define MAS3_UW   0x00000008

Definition at line 81 of file mmu-book3e.h.

#define MAS3_UX   0x00000020

Definition at line 79 of file mmu-book3e.h.

#define MAS4_ACMD   0x000000c0 /* Default ACM */

Definition at line 102 of file mmu-book3e.h.

#define MAS4_ACMD_SHIFT   6

Definition at line 103 of file mmu-book3e.h.

#define MAS4_ED   0x00000001

Definition at line 98 of file mmu-book3e.h.

#define MAS4_GD   0x00000002

Definition at line 97 of file mmu-book3e.h.

#define MAS4_ID   0x00000008

Definition at line 95 of file mmu-book3e.h.

#define MAS4_INDD   0x00008000 /* Default IND */

Definition at line 90 of file mmu-book3e.h.

#define MAS4_MD   0x00000004

Definition at line 96 of file mmu-book3e.h.

#define MAS4_TLBSELD (   x)    MAS0_TLBSEL(x)

Definition at line 89 of file mmu-book3e.h.

#define MAS4_TSIZED (   x)    MAS1_TSIZE(x)

Definition at line 91 of file mmu-book3e.h.

#define MAS4_TSIZED_MASK   0x00000f80 /* Default TSIZE */

Definition at line 104 of file mmu-book3e.h.

#define MAS4_TSIZED_SHIFT   7

Definition at line 105 of file mmu-book3e.h.

#define MAS4_VLED   MAS4_X1D /* Default VLE */

Definition at line 101 of file mmu-book3e.h.

#define MAS4_WD   0x00000010

Definition at line 94 of file mmu-book3e.h.

#define MAS4_WIMGED_MASK   0x0000001f /* Default WIMGE */

Definition at line 99 of file mmu-book3e.h.

#define MAS4_WIMGED_SHIFT   0

Definition at line 100 of file mmu-book3e.h.

#define MAS4_X0D   0x00000040

Definition at line 92 of file mmu-book3e.h.

#define MAS4_X1D   0x00000020

Definition at line 93 of file mmu-book3e.h.

#define MAS5_SGS   0x80000000

Definition at line 107 of file mmu-book3e.h.

#define MAS6_ISIZE (   x)    MAS1_TSIZE(x)

Definition at line 111 of file mmu-book3e.h.

#define MAS6_ISIZE_MASK   0x00000f80

Definition at line 118 of file mmu-book3e.h.

#define MAS6_ISIZE_SHIFT   7

Definition at line 119 of file mmu-book3e.h.

#define MAS6_SAS   0x00000001

Definition at line 112 of file mmu-book3e.h.

#define MAS6_SIND   0x00000002 /* Indirect page */

Definition at line 114 of file mmu-book3e.h.

#define MAS6_SIND_SHIFT   1

Definition at line 115 of file mmu-book3e.h.

#define MAS6_SPID   MAS6_SPID0

Definition at line 113 of file mmu-book3e.h.

#define MAS6_SPID0   0x3FFF0000

Definition at line 109 of file mmu-book3e.h.

#define MAS6_SPID1   0x00007FFE

Definition at line 110 of file mmu-book3e.h.

#define MAS6_SPID_MASK   0x3fff0000

Definition at line 116 of file mmu-book3e.h.

#define MAS6_SPID_SHIFT   16

Definition at line 117 of file mmu-book3e.h.

#define MAS7_RPN   0xFFFFFFFF

Definition at line 121 of file mmu-book3e.h.

#define MAS8_TGS   0x80000000 /* Guest space */

Definition at line 123 of file mmu-book3e.h.

#define MAS8_TLPID   0x000000ff

Definition at line 125 of file mmu-book3e.h.

#define MAS8_VF   0x40000000 /* Virtualization Fault */

Definition at line 124 of file mmu-book3e.h.

#define MMU_PAGE_SIZE_DIRECT   0x1 /* Supported as a direct size */

Definition at line 248 of file mmu-book3e.h.

#define MMU_PAGE_SIZE_INDIRECT   0x2 /* Supported as an indirect size */

Definition at line 249 of file mmu-book3e.h.

#define MMUCFG_LPIDSIZE   0x0f000000 /* LPID Reg Size */

Definition at line 136 of file mmu-book3e.h.

#define MMUCFG_LPIDSIZE_MASK   0x0f000000

Definition at line 162 of file mmu-book3e.h.

#define MMUCFG_LPIDSIZE_SHIFT   24

Definition at line 163 of file mmu-book3e.h.

#define MMUCFG_LRAT   0x00010000 /* LRAT Supported (v2.0) */

Definition at line 159 of file mmu-book3e.h.

#define MMUCFG_LRAT   0x00010000

Definition at line 159 of file mmu-book3e.h.

#define MMUCFG_MAVN   0x00000003 /* MMU Architecture Version Number */

Definition at line 128 of file mmu-book3e.h.

#define MMUCFG_MAVN_NASK   0x00000003

Definition at line 151 of file mmu-book3e.h.

#define MMUCFG_MAVN_V1   0x00000000 /* v1.0 */

Definition at line 129 of file mmu-book3e.h.

#define MMUCFG_MAVN_V1_0   0x00000000

Definition at line 152 of file mmu-book3e.h.

#define MMUCFG_MAVN_V2   0x00000001 /* v2.0 */

Definition at line 130 of file mmu-book3e.h.

#define MMUCFG_MAVN_V2_0   0x00000001

Definition at line 153 of file mmu-book3e.h.

#define MMUCFG_NTLB_MASK   0x0000000c

Definition at line 154 of file mmu-book3e.h.

#define MMUCFG_NTLB_SHIFT   2

Definition at line 155 of file mmu-book3e.h.

#define MMUCFG_NTLBS   0x0000000c /* Number of TLBs */

Definition at line 131 of file mmu-book3e.h.

#define MMUCFG_PIDSIZE   0x000007c0 /* PID Reg Size */

Definition at line 132 of file mmu-book3e.h.

#define MMUCFG_PIDSIZE_MASK   0x000007c0

Definition at line 156 of file mmu-book3e.h.

#define MMUCFG_PIDSIZE_SHIFT   6

Definition at line 157 of file mmu-book3e.h.

#define MMUCFG_RASIZE   0x00fe0000 /* Real Addr Size */

Definition at line 135 of file mmu-book3e.h.

#define MMUCFG_RASIZE_MASK   0x00fe0000

Definition at line 160 of file mmu-book3e.h.

#define MMUCFG_RASIZE_SHIFT   17

Definition at line 161 of file mmu-book3e.h.

#define MMUCFG_TWC   0x00008000 /* TLB Write Conditional (v2.0) */

Definition at line 158 of file mmu-book3e.h.

#define MMUCFG_TWC   0x00008000

Definition at line 158 of file mmu-book3e.h.

#define MMUCSR0_TLB0FI   0x00000004 /* TLB0 Flash invalidate */

Definition at line 140 of file mmu-book3e.h.

#define MMUCSR0_TLB0PS   0x00000780 /* TLB0 Page Size */

Definition at line 145 of file mmu-book3e.h.

#define MMUCSR0_TLB1FI   0x00000002 /* TLB1 Flash invalidate */

Definition at line 139 of file mmu-book3e.h.

#define MMUCSR0_TLB1PS   0x00007800 /* TLB1 Page Size */

Definition at line 146 of file mmu-book3e.h.

#define MMUCSR0_TLB2FI   0x00000040 /* TLB2 Flash invalidate */

Definition at line 141 of file mmu-book3e.h.

#define MMUCSR0_TLB2PS   0x00078000 /* TLB2 Page Size */

Definition at line 147 of file mmu-book3e.h.

#define MMUCSR0_TLB3FI   0x00000020 /* TLB3 Flash invalidate */

Definition at line 142 of file mmu-book3e.h.

#define MMUCSR0_TLB3PS   0x00780000 /* TLB3 Page Size */

Definition at line 148 of file mmu-book3e.h.

#define MMUCSR0_TLBFI
Value:
MMUCSR0_TLB2FI | MMUCSR0_TLB3FI)

Definition at line 143 of file mmu-book3e.h.

#define TLBILX_T_ALL   0

Definition at line 209 of file mmu-book3e.h.

#define TLBILX_T_CLASS0   4

Definition at line 212 of file mmu-book3e.h.

#define TLBILX_T_CLASS1   5

Definition at line 213 of file mmu-book3e.h.

#define TLBILX_T_CLASS2   6

Definition at line 214 of file mmu-book3e.h.

#define TLBILX_T_CLASS3   7

Definition at line 215 of file mmu-book3e.h.

#define TLBILX_T_FULLMATCH   3

Definition at line 211 of file mmu-book3e.h.

#define TLBILX_T_TID   1

Definition at line 210 of file mmu-book3e.h.

#define TLBnCFG_ASSOC   0xff000000 /* Associativity */

Definition at line 176 of file mmu-book3e.h.

#define TLBnCFG_ASSOC_SHIFT   24

Definition at line 177 of file mmu-book3e.h.

#define TLBnCFG_GTWE   0x00010000 /* Guest can write */

Definition at line 169 of file mmu-book3e.h.

#define TLBnCFG_HES   0x00002000 /* HW select supported */

Definition at line 167 of file mmu-book3e.h.

#define TLBnCFG_IND   0x00020000 /* IND entries supported */

Definition at line 170 of file mmu-book3e.h.

#define TLBnCFG_IPROT   0x00008000 /* IPROT supported */

Definition at line 168 of file mmu-book3e.h.

#define TLBnCFG_MAXSIZE   0x000f0000 /* Maximum Page Size (v1.0) */

Definition at line 174 of file mmu-book3e.h.

#define TLBnCFG_MAXSIZE_SHIFT   16

Definition at line 175 of file mmu-book3e.h.

#define TLBnCFG_MINSIZE   0x00f00000 /* Minimum Page Size (v1.0) */

Definition at line 172 of file mmu-book3e.h.

#define TLBnCFG_MINSIZE_SHIFT   20

Definition at line 173 of file mmu-book3e.h.

#define TLBnCFG_N_ENTRY   0x00000fff /* number of entries */

Definition at line 166 of file mmu-book3e.h.

#define TLBnCFG_PT   0x00040000 /* Can load from page table */

Definition at line 171 of file mmu-book3e.h.

#define TLBnPS_128G   0x08000000

Definition at line 205 of file mmu-book3e.h.

#define TLBnPS_128K   0x00000080

Definition at line 185 of file mmu-book3e.h.

#define TLBnPS_128M   0x00020000

Definition at line 195 of file mmu-book3e.h.

#define TLBnPS_16G   0x01000000

Definition at line 202 of file mmu-book3e.h.

#define TLBnPS_16K   0x00000010

Definition at line 182 of file mmu-book3e.h.

#define TLBnPS_16M   0x00004000

Definition at line 192 of file mmu-book3e.h.

#define TLBnPS_1G   0x00100000

Definition at line 198 of file mmu-book3e.h.

#define TLBnPS_1M   0x00000400

Definition at line 188 of file mmu-book3e.h.

#define TLBnPS_256G   0x10000000

Definition at line 206 of file mmu-book3e.h.

#define TLBnPS_256K   0x00000100

Definition at line 186 of file mmu-book3e.h.

#define TLBnPS_256M   0x00040000

Definition at line 196 of file mmu-book3e.h.

#define TLBnPS_2G   0x00200000

Definition at line 199 of file mmu-book3e.h.

#define TLBnPS_2M   0x00000800

Definition at line 189 of file mmu-book3e.h.

#define TLBnPS_32G   0x02000000

Definition at line 203 of file mmu-book3e.h.

#define TLBnPS_32K   0x00000020

Definition at line 183 of file mmu-book3e.h.

#define TLBnPS_32M   0x00008000

Definition at line 193 of file mmu-book3e.h.

#define TLBnPS_4G   0x00400000

Definition at line 200 of file mmu-book3e.h.

#define TLBnPS_4K   0x00000004

Definition at line 180 of file mmu-book3e.h.

#define TLBnPS_4M   0x00001000

Definition at line 190 of file mmu-book3e.h.

#define TLBnPS_512K   0x00000200

Definition at line 187 of file mmu-book3e.h.

#define TLBnPS_512M   0x00080000

Definition at line 197 of file mmu-book3e.h.

#define TLBnPS_64G   0x04000000

Definition at line 204 of file mmu-book3e.h.

#define TLBnPS_64K   0x00000040

Definition at line 184 of file mmu-book3e.h.

#define TLBnPS_64M   0x00010000

Definition at line 194 of file mmu-book3e.h.

#define TLBnPS_8G   0x00800000

Definition at line 201 of file mmu-book3e.h.

#define TLBnPS_8K   0x00000008

Definition at line 181 of file mmu-book3e.h.

#define TLBnPS_8M   0x00002000

Definition at line 191 of file mmu-book3e.h.

Variable Documentation

int mmu_linear_psize

Definition at line 98 of file hash_utils_64.c.

struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT]

Definition at line 92 of file hash_utils_64.c.

int mmu_vmemmap_psize
unsigned int tlbcam_index

Definition at line 69 of file fsl_booke_mmu.c.