2005-07-27 18:44:44 +00:00
|
|
|
#ifndef _ASM_CRIS_ARCH_CACHE_H
|
|
|
|
#define _ASM_CRIS_ARCH_CACHE_H
|
|
|
|
|
2007-11-30 09:11:43 +00:00
|
|
|
#include <asm/arch/hwregs/dma.h>
|
|
|
|
|
2005-07-27 18:44:44 +00:00
|
|
|
/* A cache-line is 32 bytes. */
|
|
|
|
#define L1_CACHE_BYTES 32
|
|
|
|
#define L1_CACHE_SHIFT 5
|
|
|
|
|
2007-11-30 09:11:43 +00:00
|
|
|
void flush_dma_list(dma_descr_data *descr);
|
|
|
|
void flush_dma_descr(dma_descr_data *descr, int flush_buf);
|
|
|
|
|
|
|
|
#define flush_dma_context(c) \
|
|
|
|
flush_dma_list(phys_to_virt((c)->saved_data));
|
|
|
|
|
|
|
|
void cris_flush_cache_range(void *buf, unsigned long len);
|
|
|
|
void cris_flush_cache(void);
|
|
|
|
|
2005-07-27 18:44:44 +00:00
|
|
|
#endif /* _ASM_CRIS_ARCH_CACHE_H */
|