]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blob - arch/nios2/include/asm/cache.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 12
[mirror_ubuntu-hirsute-kernel.git] / arch / nios2 / include / asm / cache.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Copyright (C) 2004 Microtronix Datacom Ltd.
4 *
5 * All rights reserved.
6 */
7
8 #ifndef _ASM_NIOS2_CACHE_H
9 #define _ASM_NIOS2_CACHE_H
10
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)
16
17 /* bytes per L1 cache line */
18 #define L1_CACHE_SHIFT NIOS2_ICACHE_LINE_SHIFT
19 #define L1_CACHE_BYTES NIOS2_ICACHE_LINE_SIZE
20
21 #define ARCH_DMA_MINALIGN L1_CACHE_BYTES
22
23 #define __cacheline_aligned
24 #define ____cacheline_aligned
25
26 #endif