]> git.proxmox.com Git - mirror_ubuntu-kernels.git/blame - arch/cris/include/arch-v32/arch/cache.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-kernels.git] / arch / cris / include / arch-v32 / arch / cache.h
CommitLineData
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
13void flush_dma_list(dma_descr_data *descr);
14void 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
19void cris_flush_cache_range(void *buf, unsigned long len);
20void cris_flush_cache(void);
21
51533b61 22#endif /* _ASM_CRIS_ARCH_CACHE_H */