rt-thread-official/libcpu/ppc/ppc405/cache.h

24 lines
577 B
C
Raw Normal View History

2013-01-08 21:05:02 +08:00
#ifndef __CACHE_H__
#define __CACHE_H__
#include <asm/processor.h>
#if !defined(__ASSEMBLY__)
void flush_dcache_range(unsigned long start, unsigned long stop);
void clean_dcache_range(unsigned long start, unsigned long stop);
void invalidate_dcache_range(unsigned long start, unsigned long stop);
void flush_dcache(void);
void invalidate_dcache(void);
void invalidate_icache(void);
void icache_enable(void);
void icache_disable(void);
unsigned long icache_status(void);
void dcache_enable(void);
void dcache_disable(void);
unsigned long dcache_status(void);
#endif
#endif