4.115
Last change
on this file since b4ed4cb was
b4ed4cb,
checked in by Joel Sherrill <joel.sherrill@…>, on 10/13/14 at 19:10:32
|
libcpu/arm/shared/../mmu: Fix warnings
|
-
Property mode set to
100644
|
File size:
622 bytes
|
Line | |
---|
1 | /* |
---|
2 | * ARM MMU header file |
---|
3 | */ |
---|
4 | |
---|
5 | /* |
---|
6 | * Copyright (c) 2004 by Cogent Computer Systems |
---|
7 | * Written by Jay Monkman <jtm@lopingdog.com> |
---|
8 | */ |
---|
9 | |
---|
10 | #ifndef __LIBCPU_MMU_H__ |
---|
11 | #define __LIBCPU_MMU_H__ |
---|
12 | |
---|
13 | #include <stdint.h> |
---|
14 | |
---|
15 | #define MMU_SECT_SIZE 0x100000 |
---|
16 | |
---|
17 | #define MMU_CACHE_NONE 0x0 |
---|
18 | #define MMU_CACHE_BUFFERED 0x1 |
---|
19 | #define MMU_CACHE_WTHROUGH 0x2 |
---|
20 | #define MMU_CACHE_WBACK 0x3 |
---|
21 | |
---|
22 | typedef struct { |
---|
23 | uint32_t paddr; |
---|
24 | uint32_t vaddr; |
---|
25 | uint32_t size; /* in MB */ |
---|
26 | uint8_t cache_flags; |
---|
27 | } mmu_sect_map_t; |
---|
28 | |
---|
29 | void mmu_init(mmu_sect_map_t *map); |
---|
30 | void mmu_set_cpu_async_mode(void); |
---|
31 | |
---|
32 | #endif /* __MMU_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.