18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public
48c2ecf20Sopenharmony_ci * License.  See the file "COPYING" in the main directory of this archive
58c2ecf20Sopenharmony_ci * for more details.
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Copyright (C) 1994, 1995, 1996 by Ralf Baechle
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci#ifndef _ASM_CACHECTL
108c2ecf20Sopenharmony_ci#define _ASM_CACHECTL
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci/*
138c2ecf20Sopenharmony_ci * Options for cacheflush system call
148c2ecf20Sopenharmony_ci */
158c2ecf20Sopenharmony_ci#define ICACHE	(1<<0)		/* flush instruction cache	  */
168c2ecf20Sopenharmony_ci#define DCACHE	(1<<1)		/* writeback and flush data cache */
178c2ecf20Sopenharmony_ci#define BCACHE	(ICACHE|DCACHE) /* flush both caches		  */
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci/*
208c2ecf20Sopenharmony_ci * Caching modes for the cachectl(2) call
218c2ecf20Sopenharmony_ci *
228c2ecf20Sopenharmony_ci * cachectl(2) is currently not supported and returns ENOSYS.
238c2ecf20Sopenharmony_ci */
248c2ecf20Sopenharmony_ci#define CACHEABLE	0	/* make pages cacheable */
258c2ecf20Sopenharmony_ci#define UNCACHEABLE	1	/* make pages uncacheable */
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci#endif	/* _ASM_CACHECTL */
28