1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 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_D 12 #define NIOS2_ICACHE_SIZE CONFIG_NIOS2_I 13 #define NIOS2_DCACHE_LINE_SIZE CONFIG_NIOS2_D 14 #define NIOS2_ICACHE_LINE_SHIFT 5 15 #define NIOS2_ICACHE_LINE_SIZE (1 << NIOS2_IC 16 17 /* bytes per L1 cache line */ 18 #define L1_CACHE_SHIFT NIOS2_ICACHE_L 19 #define L1_CACHE_BYTES NIOS2_ICACHE_L 20 21 #define ARCH_DMA_MINALIGN L1_CACHE_BYTES 22 23 #define __cacheline_aligned 24 #define ____cacheline_aligned 25 26 #endif 27
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.