1 #ifndef RTEMS_VIRTEX5_MMU_H 2 #define RTEMS_VIRTEX5_MMU_H 78 typedef int bsp_tlb_idx_t;
119 #define MMU_M_SIZE_1K (0x00000000U) 120 #define MMU_M_SIZE_4K (0x08000000U) 121 #define MMU_M_SIZE_16K (0x10000000U) 122 #define MMU_M_SIZE_64K (0x18000000U) 123 #define MMU_M_SIZE_256K (0x20000000U) 124 #define MMU_M_SIZE_1M (0x28000000U) 125 #define MMU_M_SIZE_16M (0x38000000U) 126 #define MMU_M_SIZE_256M (0x48000000U) 127 #define MMU_M_SIZE_MIN (MMU_M_SIZE_1K) 128 #define MMU_M_SIZE_MAX (MMU_M_SIZE_256M) 129 #define MMU_M_SIZE (0x78000000U) 130 #define MMU_V_SIZE (27) 135 #define MMU_M_ATTR_USER0 (0x00010000U) 136 #define MMU_M_ATTR_USER1 (0x00008000U) 137 #define MMU_M_ATTR_USER2 (0x00004000U) 138 #define MMU_M_ATTR_USER3 (0x00002000U) 139 #define MMU_M_ATTR (0x0001e000U) 140 #define MMU_V_ATTR (13) 142 #define MMU_M_PROP_WRITE_THROUGH (0x00001000U) 143 #define MMU_M_PROP_UNCACHED (0x00000800U) 144 #define MMU_M_PROP_MEM_COHERENT (0x00000400U) 145 #define MMU_M_PROP_GUARDED (0x00000200U) 146 #define MMU_M_PROP_LITTLE_ENDIAN (0x00000100U) 147 #define MMU_M_PROP (0x00000f00U) 148 #define MMU_V_PROP (8) 150 #define MMU_M_PERM_USER_EXEC (0x00000020U) 151 #define MMU_M_PERM_USER_WRITE (0x00000010U) 152 #define MMU_M_PERM_USER_READ (0x00000008U) 153 #define MMU_M_PERM_SUPER_EXEC (0x00000004U) 154 #define MMU_M_PERM_SUPER_WRITE (0x00000002U) 155 #define MMU_M_PERM_SUPER_READ (0x00000001U) 156 #define MMU_M_PERM (0x0000003fU) 157 #define MMU_V_PERM (0) 165 bsp_mmu_dump_cache(FILE *f);
185 bsp_mmu_update(bsp_tlb_idx_t key,
bool quiet, FILE *f);
193 bsp_mmu_initialize(
void);
201 bsp_mmu_find_first_free(
void);
236 bsp_mmu_write(bsp_tlb_idx_t idx, uint32_t ea, uint32_t pa,
int sz,
237 uint32_t flgs, uint32_t tid, uint32_t ts, uint32_t erpn);
254 bsp_mmu_match(uint32_t ea,
int sz, uint32_t tid, uint32_t ts);
267 bsp_mmu_find(uint32_t ea, uint32_t tid, uint32_t ts);
279 bsp_mmu_invalidate(bsp_tlb_idx_t key);
uint32_t ts
Definition: mmu.h:92
uint32_t pad1
Definition: mmu.h:104
uint32_t tpar
Definition: mmu.h:94
uint32_t pad2
Definition: mmu.h:107
uint32_t wimge
Definition: mmu.h:106
Provide printf() PRIxxx Constante Beyond Standards.
unsigned size
Definition: tte.h:74
unsigned v
Definition: tte.h:73
uint32_t par1
Definition: mmu.h:98