cache.h 860 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #ifndef __ASM_ARC_CACHE_H
  7. #define __ASM_ARC_CACHE_H
  8. #include <config.h>
  9. /*
  10. * As of today we may handle any L1 cache line length right in software.
  11. * For that essentially cache line length is a variable not constant.
  12. * And to satisfy users of ARCH_DMA_MINALIGN we just use largest line length
  13. * that may exist in either L1 or L2 (AKA SLC) caches on ARC.
  14. */
  15. #define ARCH_DMA_MINALIGN 128
  16. #if defined(ARC_MMU_ABSENT)
  17. #define CONFIG_ARC_MMU_VER 0
  18. #elif defined(CONFIG_ARC_MMU_V2)
  19. #define CONFIG_ARC_MMU_VER 2
  20. #elif defined(CONFIG_ARC_MMU_V3)
  21. #define CONFIG_ARC_MMU_VER 3
  22. #elif defined(CONFIG_ARC_MMU_V4)
  23. #define CONFIG_ARC_MMU_VER 4
  24. #endif
  25. #ifndef __ASSEMBLY__
  26. void cache_init(void);
  27. #endif /* __ASSEMBLY__ */
  28. #endif /* __ASM_ARC_CACHE_H */