1*e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 261730c53SDavid Howells /* 361730c53SDavid Howells * This file is subject to the terms and conditions of the GNU General Public 461730c53SDavid Howells * License. See the file "COPYING" in the main directory of this archive 561730c53SDavid Howells * for more details. 661730c53SDavid Howells * 761730c53SDavid Howells * Copyright (C) 1994, 1995, 1996 by Ralf Baechle 861730c53SDavid Howells */ 961730c53SDavid Howells #ifndef _ASM_CACHECTL 1061730c53SDavid Howells #define _ASM_CACHECTL 1161730c53SDavid Howells 1261730c53SDavid Howells /* 1361730c53SDavid Howells * Options for cacheflush system call 1461730c53SDavid Howells */ 1561730c53SDavid Howells #define ICACHE (1<<0) /* flush instruction cache */ 1661730c53SDavid Howells #define DCACHE (1<<1) /* writeback and flush data cache */ 1761730c53SDavid Howells #define BCACHE (ICACHE|DCACHE) /* flush both caches */ 1861730c53SDavid Howells 1961730c53SDavid Howells /* 2061730c53SDavid Howells * Caching modes for the cachectl(2) call 2161730c53SDavid Howells * 2261730c53SDavid Howells * cachectl(2) is currently not supported and returns ENOSYS. 2361730c53SDavid Howells */ 2461730c53SDavid Howells #define CACHEABLE 0 /* make pages cacheable */ 2561730c53SDavid Howells #define UNCACHEABLE 1 /* make pages uncacheable */ 2661730c53SDavid Howells 2761730c53SDavid Howells #endif /* _ASM_CACHECTL */ 28