xref: /OK3568_Linux_fs/kernel/arch/mips/include/uapi/asm/cachectl.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * This file is subject to the terms and conditions of the GNU General Public
4*4882a593Smuzhiyun  * License.  See the file "COPYING" in the main directory of this archive
5*4882a593Smuzhiyun  * for more details.
6*4882a593Smuzhiyun  *
7*4882a593Smuzhiyun  * Copyright (C) 1994, 1995, 1996 by Ralf Baechle
8*4882a593Smuzhiyun  */
9*4882a593Smuzhiyun #ifndef _ASM_CACHECTL
10*4882a593Smuzhiyun #define _ASM_CACHECTL
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun /*
13*4882a593Smuzhiyun  * Options for cacheflush system call
14*4882a593Smuzhiyun  */
15*4882a593Smuzhiyun #define ICACHE	(1<<0)		/* flush instruction cache	  */
16*4882a593Smuzhiyun #define DCACHE	(1<<1)		/* writeback and flush data cache */
17*4882a593Smuzhiyun #define BCACHE	(ICACHE|DCACHE) /* flush both caches		  */
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun /*
20*4882a593Smuzhiyun  * Caching modes for the cachectl(2) call
21*4882a593Smuzhiyun  *
22*4882a593Smuzhiyun  * cachectl(2) is currently not supported and returns ENOSYS.
23*4882a593Smuzhiyun  */
24*4882a593Smuzhiyun #define CACHEABLE	0	/* make pages cacheable */
25*4882a593Smuzhiyun #define UNCACHEABLE	1	/* make pages uncacheable */
26*4882a593Smuzhiyun 
27*4882a593Smuzhiyun #endif	/* _ASM_CACHECTL */
28