WIP FPC-III support
[linux/fpc-iii.git] / arch / nios2 / include / asm / cache.h
blob43695f341f43f44b9f22cb63c46f9729820758d6
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Copyright (C) 2004 Microtronix Datacom Ltd.
5 * All rights reserved.
6 */
8 #ifndef _ASM_NIOS2_CACHE_H
9 #define _ASM_NIOS2_CACHE_H
11 #define NIOS2_DCACHE_SIZE CONFIG_NIOS2_DCACHE_SIZE
12 #define NIOS2_ICACHE_SIZE CONFIG_NIOS2_ICACHE_SIZE
13 #define NIOS2_DCACHE_LINE_SIZE CONFIG_NIOS2_DCACHE_LINE_SIZE
14 #define NIOS2_ICACHE_LINE_SHIFT 5
15 #define NIOS2_ICACHE_LINE_SIZE (1 << NIOS2_ICACHE_LINE_SHIFT)
17 /* bytes per L1 cache line */
18 #define L1_CACHE_SHIFT NIOS2_ICACHE_LINE_SHIFT
19 #define L1_CACHE_BYTES NIOS2_ICACHE_LINE_SIZE
21 #define ARCH_DMA_MINALIGN L1_CACHE_BYTES
23 #define __cacheline_aligned
24 #define ____cacheline_aligned
26 #endif