]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
51533b61 MS |
2 | #ifndef _ASM_CRIS_ARCH_CACHE_H |
3 | #define _ASM_CRIS_ARCH_CACHE_H | |
4 | ||
556dcee7 | 5 | #include <arch/hwregs/dma.h> |
738af38b | 6 | |
51533b61 MS |
7 | /* A cache-line is 32 bytes. */ |
8 | #define L1_CACHE_BYTES 32 | |
9 | #define L1_CACHE_SHIFT 5 | |
51533b61 | 10 | |
06e44840 | 11 | #define __read_mostly __attribute__((__section__(".data..read_mostly"))) |
6fdf581e | 12 | |
738af38b JN |
13 | void flush_dma_list(dma_descr_data *descr); |
14 | void flush_dma_descr(dma_descr_data *descr, int flush_buf); | |
15 | ||
16 | #define flush_dma_context(c) \ | |
17 | flush_dma_list(phys_to_virt((c)->saved_data)); | |
18 | ||
19 | void cris_flush_cache_range(void *buf, unsigned long len); | |
20 | void cris_flush_cache(void); | |
21 | ||
51533b61 | 22 | #endif /* _ASM_CRIS_ARCH_CACHE_H */ |