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

Go to the source code of this file.

Data Structures

struct  mm_context_t
 

Macros

#define PPC40X_TLB_SIZE   64
 
#define TLB_LO   1
 
#define TLB_HI   0
 
#define TLB_DATA   TLB_LO
 
#define TLB_TAG   TLB_HI
 
#define TLB_EPN_MASK   0xFFFFFC00 /* Effective Page Number */
 
#define TLB_PAGESZ_MASK   0x00000380
 
#define TLB_PAGESZ(x)   (((x) & 0x7) << 7)
 
#define PAGESZ_1K   0
 
#define PAGESZ_4K   1
 
#define PAGESZ_16K   2
 
#define PAGESZ_64K   3
 
#define PAGESZ_256K   4
 
#define PAGESZ_1M   5
 
#define PAGESZ_4M   6
 
#define PAGESZ_16M   7
 
#define TLB_VALID   0x00000040 /* Entry is valid */
 
#define TLB_RPN_MASK   0xFFFFFC00 /* Real Page Number */
 
#define TLB_PERM_MASK   0x00000300
 
#define TLB_EX   0x00000200 /* Instruction execution allowed */
 
#define TLB_WR   0x00000100 /* Writes permitted */
 
#define TLB_ZSEL_MASK   0x000000F0
 
#define TLB_ZSEL(x)   (((x) & 0xF) << 4)
 
#define TLB_ATTR_MASK   0x0000000F
 
#define TLB_W   0x00000008 /* Caching is write-through */
 
#define TLB_I   0x00000004 /* Caching is inhibited */
 
#define TLB_M   0x00000002 /* Memory is coherent */
 
#define TLB_G   0x00000001 /* Memory is guarded from prefetch */
 
#define mmu_virtual_psize   MMU_PAGE_4K
 
#define mmu_linear_psize   MMU_PAGE_256M
 

Macro Definition Documentation

#define mmu_linear_psize   MMU_PAGE_256M

Definition at line 65 of file mmu-40x.h.

#define mmu_virtual_psize   MMU_PAGE_4K

Definition at line 64 of file mmu-40x.h.

#define PAGESZ_16K   2

Definition at line 32 of file mmu-40x.h.

#define PAGESZ_16M   7

Definition at line 37 of file mmu-40x.h.

#define PAGESZ_1K   0

Definition at line 30 of file mmu-40x.h.

#define PAGESZ_1M   5

Definition at line 35 of file mmu-40x.h.

#define PAGESZ_256K   4

Definition at line 34 of file mmu-40x.h.

#define PAGESZ_4K   1

Definition at line 31 of file mmu-40x.h.

#define PAGESZ_4M   6

Definition at line 36 of file mmu-40x.h.

#define PAGESZ_64K   3

Definition at line 33 of file mmu-40x.h.

#define PPC40X_TLB_SIZE   64

Definition at line 8 of file mmu-40x.h.

#define TLB_ATTR_MASK   0x0000000F

Definition at line 48 of file mmu-40x.h.

#define TLB_DATA   TLB_LO

Definition at line 22 of file mmu-40x.h.

#define TLB_EPN_MASK   0xFFFFFC00 /* Effective Page Number */

Definition at line 27 of file mmu-40x.h.

#define TLB_EX   0x00000200 /* Instruction execution allowed */

Definition at line 44 of file mmu-40x.h.

#define TLB_G   0x00000001 /* Memory is guarded from prefetch */

Definition at line 52 of file mmu-40x.h.

#define TLB_HI   0

Definition at line 20 of file mmu-40x.h.

#define TLB_I   0x00000004 /* Caching is inhibited */

Definition at line 50 of file mmu-40x.h.

#define TLB_LO   1

Definition at line 19 of file mmu-40x.h.

#define TLB_M   0x00000002 /* Memory is coherent */

Definition at line 51 of file mmu-40x.h.

#define TLB_PAGESZ (   x)    (((x) & 0x7) << 7)

Definition at line 29 of file mmu-40x.h.

#define TLB_PAGESZ_MASK   0x00000380

Definition at line 28 of file mmu-40x.h.

#define TLB_PERM_MASK   0x00000300

Definition at line 43 of file mmu-40x.h.

#define TLB_RPN_MASK   0xFFFFFC00 /* Real Page Number */

Definition at line 42 of file mmu-40x.h.

#define TLB_TAG   TLB_HI

Definition at line 23 of file mmu-40x.h.

#define TLB_VALID   0x00000040 /* Entry is valid */

Definition at line 38 of file mmu-40x.h.

#define TLB_W   0x00000008 /* Caching is write-through */

Definition at line 49 of file mmu-40x.h.

#define TLB_WR   0x00000100 /* Writes permitted */

Definition at line 45 of file mmu-40x.h.

#define TLB_ZSEL (   x)    (((x) & 0xF) << 4)

Definition at line 47 of file mmu-40x.h.

#define TLB_ZSEL_MASK   0x000000F0

Definition at line 46 of file mmu-40x.h.