File indexing completed on 2025-05-11 08:23:02
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef __LIBCPU_MMU_H__
0011 #define __LIBCPU_MMU_H__
0012
0013 #include <stdint.h>
0014
0015 #define MMU_SECT_SIZE 0x100000
0016
0017 #define MMU_CACHE_NONE 0x0
0018 #define MMU_CACHE_BUFFERED 0x1
0019 #define MMU_CACHE_WTHROUGH 0x2
0020 #define MMU_CACHE_WBACK 0x3
0021
0022 typedef struct {
0023 uint32_t paddr;
0024 uint32_t vaddr;
0025 uint32_t size;
0026 uint8_t cache_flags;
0027 } mmu_sect_map_t;
0028
0029 void mmu_init(mmu_sect_map_t *map);
0030 void mmu_set_cpu_async_mode(void);
0031
0032 #endif