Go to the documentation of this file.
19 #define MMUBASE 0xfe000000
25 #define MMUCR (MMUBASE + 0x00)
26 #define MMUOR (MMUBASE + 0x04)
27 #define MMUSR (MMUBASE + 0x08)
28 #define MMUAR (MMUBASE + 0x10)
29 #define MMUTR (MMUBASE + 0x14)
30 #define MMUDR (MMUBASE + 0x18)
35 #define MMUCR_EN 0x00000001
36 #define MMUCR_ASM 0x00000002
41 #define MMUOR_UAA 0x00000001
42 #define MMUOR_ACC 0x00000002
43 #define MMUOR_RD 0x00000004
44 #define MMUOR_WR 0x00000000
45 #define MMUOR_ADR 0x00000008
46 #define MMUOR_ITLB 0x00000010
47 #define MMUOR_CAS 0x00000020
48 #define MMUOR_CNL 0x00000040
49 #define MMUOR_CA 0x00000080
50 #define MMUOR_STLB 0x00000100
52 #define MMUOR_AAMASK 0xffff0000
57 #define MMUSR_HIT 0x00000002
58 #define MMUSR_WF 0x00000008
59 #define MMUSR_RF 0x00000010
60 #define MMUSR_SPF 0x00000020
65 #define MMUTR_V 0x00000001
66 #define MMUTR_SG 0x00000002
68 #define MMUTR_IDMASK 0x000003fc
70 #define MMUTR_VAMASK 0xfffffc00
75 #define MMUDR_LK 0x00000002
76 #define MMUDR_X 0x00000004
77 #define MMUDR_W 0x00000008
78 #define MMUDR_R 0x00000010
79 #define MMUDR_SP 0x00000020
80 #define MMUDR_CM_CWT 0x00000000
81 #define MMUDR_CM_CCB 0x00000040
82 #define MMUDR_CM_NCP 0x00000080
83 #define MMUDR_CM_NCI 0x000000c0
84 #define MMUDR_SZ_1MB 0x00000000
85 #define MMUDR_SZ_4KB 0x00000100
86 #define MMUDR_SZ_8KB 0x00000200
87 #define MMUDR_SZ_1KB 0x00000300
89 #define MMUDR_PAMASK 0xfffffc00
97 static inline u32 mmu_read(
u32 a)
99 return *((
volatile u32 *) a);
102 static inline void mmu_write(
u32 a,
u32 v)
104 *((
volatile u32 *) a) =
v;