162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public
462306a36Sopenharmony_ci * License.  See the file "COPYING" in the main directory of this archive
562306a36Sopenharmony_ci * for more details.
662306a36Sopenharmony_ci *
762306a36Sopenharmony_ci * Copyright (C) 1994, 1995, 1996 by Ralf Baechle
862306a36Sopenharmony_ci */
962306a36Sopenharmony_ci#ifndef _ASM_CACHECTL
1062306a36Sopenharmony_ci#define _ASM_CACHECTL
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci/*
1362306a36Sopenharmony_ci * Options for cacheflush system call
1462306a36Sopenharmony_ci */
1562306a36Sopenharmony_ci#define ICACHE	(1<<0)		/* flush instruction cache	  */
1662306a36Sopenharmony_ci#define DCACHE	(1<<1)		/* writeback and flush data cache */
1762306a36Sopenharmony_ci#define BCACHE	(ICACHE|DCACHE) /* flush both caches		  */
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci/*
2062306a36Sopenharmony_ci * Caching modes for the cachectl(2) call
2162306a36Sopenharmony_ci *
2262306a36Sopenharmony_ci * cachectl(2) is currently not supported and returns ENOSYS.
2362306a36Sopenharmony_ci */
2462306a36Sopenharmony_ci#define CACHEABLE	0	/* make pages cacheable */
2562306a36Sopenharmony_ci#define UNCACHEABLE	1	/* make pages uncacheable */
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ci#endif	/* _ASM_CACHECTL */
28