2 * Copyright 2007-2009 Freescale Semiconductor, Inc. All Rights Reserved.
3 * Definitions for Coldfire V4e MMU
11 #define MMU_BASE 0xE8000000
14 #define MMUCR (MMU_BASE+0x00)
16 #define MMUCR_ASM (1<<MMUCR_ASMN)
18 #define MMUCR_EN (1<<MMUCR_ENN)
20 #define MMUOR REG16(MMU_BASE+0x04+0x02)
22 #define MMUOR_AA (0xffff<<MMUOR_AAN)
24 #define MMUOR_STLB (1<<MMUOR_STLBN)
26 #define MMUOR_CA (1<<MMUOR_CAN)
28 #define MMUOR_CNL (1<<MMUOR_CNLN)
30 #define MMUOR_CAS (1<<MMUOR_CASN)
32 #define MMUOR_ITLB (1<<MMUOR_ITLBN)
34 #define MMUOR_ADR (1<<MMUOR_ADRN)
36 #define MMUOR_RW (1<<MMUOR_RWN)
38 #define MMUOR_ACC (1<<MMUOR_ACCN)
40 #define MMUOR_UAA (1<<MMUOR_UAAN)
42 #define MMUSR REG32(MMU_BASE+0x08)
44 #define MMUSR_SPF (1<<MMUSR_SPFN)
46 #define MMUSR_RF (1<<MMUSR_RFN)
48 #define MMUSR_WF (1<<MMUSR_WFN)
50 #define MMUSR_HIT (1<<MMUSR_HITN)
52 #define MMUAR REG32(MMU_BASE+0x10)
54 #define MMUAR_VP (0xfffffffe)
56 #define MMUAR_S (1<<MMUAR_SN)
58 #define MMUTR REG32(MMU_BASE+0x14)
60 #define MMUTR_VA (0xfffffc00)
62 #define MMUTR_ID (0xff<<MMUTR_IDN)
64 #define MMUTR_SG (1<<MMUTR_SGN)
66 #define MMUTR_V (1<<MMUTR_VN)
68 #define MMUDR REG32(MMU_BASE+0x18)
70 #define MMUDR_PA (0xfffffc00)
72 #define MMUDR_SZ_MASK (0x2<<MMUDR_SZN)
73 #define MMUDR_SZ1M (0<<MMUDR_SZN)
74 #define MMUDR_SZ4K (1<<MMUDR_SZN)
75 #define MMUDR_SZ8K (2<<MMUDR_SZN)
76 #define MMUDR_SZ16M (3<<MMUDR_SZN)
78 #define MMUDR_INC (2<<MMUDR_CMN)
79 #define MMUDR_IC (0<<MMUDR_CMN)
80 #define MMUDR_DWT (0<<MMUDR_CMN)
81 #define MMUDR_DCB (1<<MMUDR_CMN)
82 #define MMUDR_DNCP (2<<MMUDR_CMN)
83 #define MMUDR_DNCIP (3<<MMUDR_CMN)
85 #define MMUDR_SP (1<<MMUDR_SPN)
87 #define MMUDR_R (1<<MMUDR_RN)
89 #define MMUDR_W (1<<MMUDR_WN)
91 #define MMUDR_X (1<<MMUDR_XN)
93 #define MMUDR_LK (1<<MMUDR_LKN)
97 #define CF_PMEGS_NUM 256
98 #define CF_INVALID_CONTEXT 255
99 #define CF_PAGE_PGNUM_MASK (PAGE_MASK)
101 extern int cf_tlb_miss(struct pt_regs
*regs
, int write
, int dtlb
,
103 #endif /* __ASSEMBLY__*/
105 #endif /* !__CF_MMU_H__ */
This page took 0.047804 seconds and 5 git commands to generate.