License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[GitHub/MotorolaMobilityLLC/kernel-slsi.git] / arch / cris / include / arch-v32 / arch / cache.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_CRIS_ARCH_CACHE_H
3 #define _ASM_CRIS_ARCH_CACHE_H
4
5 #include <arch/hwregs/dma.h>
6
7 /* A cache-line is 32 bytes. */
8 #define L1_CACHE_BYTES 32
9 #define L1_CACHE_SHIFT 5
10
11 #define __read_mostly __attribute__((__section__(".data..read_mostly")))
12
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
22 #endif /* _ASM_CRIS_ARCH_CACHE_H */