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