blob: 08c534ca0142c891f5176355d692c90f7c4894ab [file] [log] [blame]
Chris Zankelc978b522016-08-10 18:36:44 +03001/*
2 * Copyright (C) 2009 Tensilica Inc.
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6#ifndef _XTENSA_CACHE_H
7#define _XTENSA_CACHE_H
8
9#include <asm/arch/core.h>
10
11#define ARCH_DMA_MINALIGN XCHAL_DCACHE_LINESIZE
12
13#ifndef __ASSEMBLY__
14
15void __flush_dcache_all(void);
16void __flush_invalidate_dcache_range(unsigned long addr, unsigned long size);
17void __invalidate_dcache_all(void);
18void __invalidate_dcache_range(unsigned long addr, unsigned long size);
19
20void __invalidate_icache_all(void);
21void __invalidate_icache_range(unsigned long addr, unsigned long size);
22
23#endif
24
25#endif /* _XTENSA_CACHE_H */