123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- #ifndef __ALT_CACHE_H__
- #define __ALT_CACHE_H__
- #include <stdlib.h>
- #include "alt_types.h"
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- extern void alt_icache_flush (void* start, alt_u32 len);
- extern void alt_dcache_flush (void* start, alt_u32 len);
- extern void alt_dcache_flush_no_writeback (void* start, alt_u32 len);
- extern void alt_icache_flush_all (void);
- extern void alt_dcache_flush_all (void);
- extern volatile void* alt_uncached_malloc (size_t size);
- extern void alt_uncached_free (volatile void* ptr);
- extern volatile void* alt_remap_uncached (void* ptr, alt_u32 len);
- extern void* alt_remap_cached (volatile void* ptr, alt_u32 len);
- #ifdef __cplusplus
- }
- #endif
-
- #endif
|