cache.h 762 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ASM_CSKY_CACHE_H
  3. #define __ASM_CSKY_CACHE_H
  4. /* bytes per L1 cache line */
  5. #define L1_CACHE_SHIFT CONFIG_L1_CACHE_SHIFT
  6. #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
  7. #define ARCH_DMA_MINALIGN L1_CACHE_BYTES
  8. #ifndef __ASSEMBLY__
  9. void dcache_wb_line(unsigned long start);
  10. void icache_inv_range(unsigned long start, unsigned long end);
  11. void icache_inv_all(void);
  12. void dcache_wb_range(unsigned long start, unsigned long end);
  13. void dcache_wbinv_all(void);
  14. void cache_wbinv_range(unsigned long start, unsigned long end);
  15. void cache_wbinv_all(void);
  16. void dma_wbinv_range(unsigned long start, unsigned long end);
  17. void dma_wb_range(unsigned long start, unsigned long end);
  18. #endif
  19. #endif /* __ASM_CSKY_CACHE_H */