cache.h 679 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright (C) 2004 Microtronix Datacom Ltd.
  4. *
  5. * All rights reserved.
  6. */
  7. #ifndef _ASM_NIOS2_CACHE_H
  8. #define _ASM_NIOS2_CACHE_H
  9. #define NIOS2_DCACHE_SIZE CONFIG_NIOS2_DCACHE_SIZE
  10. #define NIOS2_ICACHE_SIZE CONFIG_NIOS2_ICACHE_SIZE
  11. #define NIOS2_DCACHE_LINE_SIZE CONFIG_NIOS2_DCACHE_LINE_SIZE
  12. #define NIOS2_ICACHE_LINE_SHIFT 5
  13. #define NIOS2_ICACHE_LINE_SIZE (1 << NIOS2_ICACHE_LINE_SHIFT)
  14. /* bytes per L1 cache line */
  15. #define L1_CACHE_SHIFT NIOS2_ICACHE_LINE_SHIFT
  16. #define L1_CACHE_BYTES NIOS2_ICACHE_LINE_SIZE
  17. #define ARCH_DMA_MINALIGN L1_CACHE_BYTES
  18. #define __cacheline_aligned
  19. #define ____cacheline_aligned
  20. #endif