1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef __ASM_CSKY_CACHE_H
4 #define __ASM_CSKY_CACHE_H
6 /* bytes per L1 cache line */
7 #define L1_CACHE_SHIFT CONFIG_L1_CACHE_SHIFT
9 #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
11 #define ARCH_DMA_MINALIGN L1_CACHE_BYTES
15 void dcache_wb_line(unsigned long start
);
17 void icache_inv_range(unsigned long start
, unsigned long end
);
18 void icache_inv_all(void);
19 void local_icache_inv_all(void *priv
);
21 void dcache_wb_range(unsigned long start
, unsigned long end
);
22 void dcache_wbinv_all(void);
24 void cache_wbinv_range(unsigned long start
, unsigned long end
);
25 void cache_wbinv_all(void);
27 void dma_wbinv_range(unsigned long start
, unsigned long end
);
28 void dma_inv_range(unsigned long start
, unsigned long end
);
29 void dma_wb_range(unsigned long start
, unsigned long end
);
32 #endif /* __ASM_CSKY_CACHE_H */