1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 20a9426dfSDavid Howells #ifndef _SH_CACHECTL_H 30a9426dfSDavid Howells #define _SH_CACHECTL_H 40a9426dfSDavid Howells 50a9426dfSDavid Howells /* Definitions for the cacheflush system call. */ 60a9426dfSDavid Howells 70a9426dfSDavid Howells #define CACHEFLUSH_D_INVAL 0x1 /* invalidate (without write back) */ 80a9426dfSDavid Howells #define CACHEFLUSH_D_WB 0x2 /* write back (without invalidate) */ 90a9426dfSDavid Howells #define CACHEFLUSH_D_PURGE 0x3 /* writeback and invalidate */ 100a9426dfSDavid Howells 110a9426dfSDavid Howells #define CACHEFLUSH_I 0x4 120a9426dfSDavid Howells 130a9426dfSDavid Howells /* 140a9426dfSDavid Howells * Options for cacheflush system call 150a9426dfSDavid Howells */ 160a9426dfSDavid Howells #define ICACHE CACHEFLUSH_I /* flush instruction cache */ 170a9426dfSDavid Howells #define DCACHE CACHEFLUSH_D_PURGE /* writeback and flush data cache */ 180a9426dfSDavid Howells #define BCACHE (ICACHE|DCACHE) /* flush both caches */ 190a9426dfSDavid Howells 200a9426dfSDavid Howells #endif /* _SH_CACHECTL_H */ 21