OLD | NEW |
1 #ifndef _SYS_CACHECTL_H | 1 #ifndef _SYS_CACHECTL_H |
2 #define _SYS_CACHECTL_H | 2 #define _SYS_CACHECTL_H |
3 | 3 |
4 #ifdef __cplusplus | 4 #ifdef __cplusplus |
5 extern "C" { | 5 extern "C" { |
6 #endif | 6 #endif |
7 | 7 |
8 #define ICACHE (1<<0) | 8 #define ICACHE (1 << 0) |
9 #define DCACHE (1<<1) | 9 #define DCACHE (1 << 1) |
10 #define BCACHE (ICACHE|DCACHE) | 10 #define BCACHE (ICACHE | DCACHE) |
11 #define CACHEABLE 0 | 11 #define CACHEABLE 0 |
12 #define UNCACHEABLE 1 | 12 #define UNCACHEABLE 1 |
13 | 13 |
14 int cachectl(void *, int, int); | 14 int cachectl(void*, int, int); |
15 int cacheflush(void *, int, int); | 15 int cacheflush(void*, int, int); |
16 int _flush_cache(void *, int, int); | 16 int _flush_cache(void*, int, int); |
17 | 17 |
18 #ifdef __cplusplus | 18 #ifdef __cplusplus |
19 } | 19 } |
20 #endif | 20 #endif |
21 | 21 |
22 #endif | 22 #endif |
OLD | NEW |