18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
28c2ecf20Sopenharmony_ci#ifndef _SH_CACHECTL_H
38c2ecf20Sopenharmony_ci#define _SH_CACHECTL_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci/* Definitions for the cacheflush system call.  */
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#define CACHEFLUSH_D_INVAL	0x1	/* invalidate (without write back) */
88c2ecf20Sopenharmony_ci#define CACHEFLUSH_D_WB		0x2	/* write back (without invalidate) */
98c2ecf20Sopenharmony_ci#define CACHEFLUSH_D_PURGE	0x3	/* writeback and invalidate */
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#define CACHEFLUSH_I		0x4
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci/*
148c2ecf20Sopenharmony_ci * Options for cacheflush system call
158c2ecf20Sopenharmony_ci */
168c2ecf20Sopenharmony_ci#define ICACHE	CACHEFLUSH_I		/* flush instruction cache */
178c2ecf20Sopenharmony_ci#define DCACHE	CACHEFLUSH_D_PURGE	/* writeback and flush data cache */
188c2ecf20Sopenharmony_ci#define BCACHE	(ICACHE|DCACHE)		/* flush both caches */
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#endif /* _SH_CACHECTL_H */
21