mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
CRIS v32: Add prototypes for cache flushing
We need these to work around some cache bugs in CRISv32 chips.
This commit is contained in:
parent
642d4ea065
commit
738af38bbc
1 changed files with 11 additions and 0 deletions
|
|
@ -1,8 +1,19 @@
|
||||||
#ifndef _ASM_CRIS_ARCH_CACHE_H
|
#ifndef _ASM_CRIS_ARCH_CACHE_H
|
||||||
#define _ASM_CRIS_ARCH_CACHE_H
|
#define _ASM_CRIS_ARCH_CACHE_H
|
||||||
|
|
||||||
|
#include <asm/arch/hwregs/dma.h>
|
||||||
|
|
||||||
/* A cache-line is 32 bytes. */
|
/* A cache-line is 32 bytes. */
|
||||||
#define L1_CACHE_BYTES 32
|
#define L1_CACHE_BYTES 32
|
||||||
#define L1_CACHE_SHIFT 5
|
#define L1_CACHE_SHIFT 5
|
||||||
|
|
||||||
|
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);
|
||||||
|
|
||||||
#endif /* _ASM_CRIS_ARCH_CACHE_H */
|
#endif /* _ASM_CRIS_ARCH_CACHE_H */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue