diff options
author | Jesper Nilsson <jesper.nilsson@axis.com> | 2007-11-30 04:11:43 -0500 |
---|---|---|
committer | Jesper Nilsson <jesper.nilsson@axis.com> | 2008-02-08 05:06:24 -0500 |
commit | 738af38bbc8bb4a5b081935c47744fdb7bf0f70b (patch) | |
tree | 6ab7708dee8bb01bc10e1c22b3b28c154dddc12d /include/asm-cris | |
parent | 642d4ea0656f30257a1dcab65133a2f6aabffca5 (diff) |
CRIS v32: Add prototypes for cache flushing
We need these to work around some cache bugs in CRISv32 chips.
Diffstat (limited to 'include/asm-cris')
-rw-r--r-- | include/asm-cris/arch-v32/cache.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asm-cris/arch-v32/cache.h b/include/asm-cris/arch-v32/cache.h index 80b236b1531..b3d752dfe15 100644 --- a/include/asm-cris/arch-v32/cache.h +++ b/include/asm-cris/arch-v32/cache.h | |||
@@ -1,8 +1,19 @@ | |||
1 | #ifndef _ASM_CRIS_ARCH_CACHE_H | 1 | #ifndef _ASM_CRIS_ARCH_CACHE_H |
2 | #define _ASM_CRIS_ARCH_CACHE_H | 2 | #define _ASM_CRIS_ARCH_CACHE_H |
3 | 3 | ||
4 | #include <asm/arch/hwregs/dma.h> | ||
5 | |||
4 | /* A cache-line is 32 bytes. */ | 6 | /* A cache-line is 32 bytes. */ |
5 | #define L1_CACHE_BYTES 32 | 7 | #define L1_CACHE_BYTES 32 |
6 | #define L1_CACHE_SHIFT 5 | 8 | #define L1_CACHE_SHIFT 5 |
7 | 9 | ||
10 | void flush_dma_list(dma_descr_data *descr); | ||
11 | void flush_dma_descr(dma_descr_data *descr, int flush_buf); | ||
12 | |||
13 | #define flush_dma_context(c) \ | ||
14 | flush_dma_list(phys_to_virt((c)->saved_data)); | ||
15 | |||
16 | void cris_flush_cache_range(void *buf, unsigned long len); | ||
17 | void cris_flush_cache(void); | ||
18 | |||
8 | #endif /* _ASM_CRIS_ARCH_CACHE_H */ | 19 | #endif /* _ASM_CRIS_ARCH_CACHE_H */ |