cachectl.h 648 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _SH_CACHECTL_H
  3. #define _SH_CACHECTL_H
  4. /* Definitions for the cacheflush system call. */
  5. #define CACHEFLUSH_D_INVAL 0x1 /* invalidate (without write back) */
  6. #define CACHEFLUSH_D_WB 0x2 /* write back (without invalidate) */
  7. #define CACHEFLUSH_D_PURGE 0x3 /* writeback and invalidate */
  8. #define CACHEFLUSH_I 0x4
  9. /*
  10. * Options for cacheflush system call
  11. */
  12. #define ICACHE CACHEFLUSH_I /* flush instruction cache */
  13. #define DCACHE CACHEFLUSH_D_PURGE /* writeback and flush data cache */
  14. #define BCACHE (ICACHE|DCACHE) /* flush both caches */
  15. #endif /* _SH_CACHECTL_H */