diff options
| author | Ralf Baechle <ralf@linux-mips.org> | 2012-10-11 05:15:03 -0400 |
|---|---|---|
| committer | Ralf Baechle <ralf@linux-mips.org> | 2012-10-11 05:15:03 -0400 |
| commit | 35bafbee4b4732a2820bbd0ef141c8192ff29731 (patch) | |
| tree | dc4709ea5c1faeb357e17d07a73f2e27eb6aad52 /arch/mips/include/uapi/asm/cachectl.h | |
| parent | 49a94e9482e70777ae0e03351a0c2c18bbdfebda (diff) | |
| parent | 61730c538f8281efa7ac12596da9f3f9a31b9272 (diff) | |
Merge tag 'disintegrate-mips-20121009' of git://git.infradead.org/users/dhowells/linux-headers into mips-for-linux-next
UAPI Disintegration 2012-10-09
Patchwork: https://patchwork.linux-mips.org/patch/4414/
Diffstat (limited to 'arch/mips/include/uapi/asm/cachectl.h')
| -rw-r--r-- | arch/mips/include/uapi/asm/cachectl.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/mips/include/uapi/asm/cachectl.h b/arch/mips/include/uapi/asm/cachectl.h new file mode 100644 index 00000000000..f3ce721861d --- /dev/null +++ b/arch/mips/include/uapi/asm/cachectl.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | /* | ||
| 2 | * This file is subject to the terms and conditions of the GNU General Public | ||
| 3 | * License. See the file "COPYING" in the main directory of this archive | ||
| 4 | * for more details. | ||
| 5 | * | ||
| 6 | * Copyright (C) 1994, 1995, 1996 by Ralf Baechle | ||
| 7 | */ | ||
| 8 | #ifndef _ASM_CACHECTL | ||
| 9 | #define _ASM_CACHECTL | ||
| 10 | |||
| 11 | /* | ||
| 12 | * Options for cacheflush system call | ||
| 13 | */ | ||
| 14 | #define ICACHE (1<<0) /* flush instruction cache */ | ||
| 15 | #define DCACHE (1<<1) /* writeback and flush data cache */ | ||
| 16 | #define BCACHE (ICACHE|DCACHE) /* flush both caches */ | ||
| 17 | |||
| 18 | /* | ||
| 19 | * Caching modes for the cachectl(2) call | ||
| 20 | * | ||
| 21 | * cachectl(2) is currently not supported and returns ENOSYS. | ||
| 22 | */ | ||
| 23 | #define CACHEABLE 0 /* make pages cacheable */ | ||
| 24 | #define UNCACHEABLE 1 /* make pages uncacheable */ | ||
| 25 | |||
| 26 | #endif /* _ASM_CACHECTL */ | ||
