blob: 5e77dfa02937cd9a2a3ab88cbc40141b104b4b73 [file] [log] [blame]
wdenk6069ff22003-02-28 00:49:47 +00001/*
wdenk6069ff22003-02-28 00:49:47 +00002 * Copyright (C) 1994, 1995, 1996 by Ralf Baechle
Daniel Schwierzeck898582b2016-01-12 21:48:27 +01003 *
4 * SPDX-License-Identifier: GPL-2.0
wdenk6069ff22003-02-28 00:49:47 +00005 */
Shinya Kuribayashi282223a2008-03-25 11:43:17 +09006#ifndef _ASM_CACHECTL
7#define _ASM_CACHECTL
wdenk6069ff22003-02-28 00:49:47 +00008
9/*
10 * Options for cacheflush system call
11 */
12#define ICACHE (1<<0) /* flush instruction cache */
13#define DCACHE (1<<1) /* writeback and flush data cache */
14#define BCACHE (ICACHE|DCACHE) /* flush both caches */
15
16/*
17 * Caching modes for the cachectl(2) call
18 *
19 * cachectl(2) is currently not supported and returns ENOSYS.
20 */
21#define CACHEABLE 0 /* make pages cacheable */
22#define UNCACHEABLE 1 /* make pages uncacheable */
23
Shinya Kuribayashi282223a2008-03-25 11:43:17 +090024#endif /* _ASM_CACHECTL */