diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-10-15 13:47:38 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-10-15 13:47:38 +0900 |
commit | 850fbcffe252368a87b3209a4b8edfbd18044c3f (patch) | |
tree | 5f9c582018228f2c574cbaf3363478535f2715a2 /arch/sh/include/uapi/asm/cachectl.h | |
parent | ddffeb8c4d0331609ef2581d84de4d763607bd37 (diff) | |
parent | 0a9426df1858f71ac84eb7eef500b4247de5e3bb (diff) |
Merge tag 'disintegrate-sh-20121009' of git://git.infradead.org/users/dhowells/linux-headers into sh-latest
UAPI Disintegration 2012-10-09
Diffstat (limited to 'arch/sh/include/uapi/asm/cachectl.h')
-rw-r--r-- | arch/sh/include/uapi/asm/cachectl.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/sh/include/uapi/asm/cachectl.h b/arch/sh/include/uapi/asm/cachectl.h new file mode 100644 index 000000000000..6ffb4b7a212e --- /dev/null +++ b/arch/sh/include/uapi/asm/cachectl.h @@ -0,0 +1,19 @@ +#ifndef _SH_CACHECTL_H +#define _SH_CACHECTL_H + +/* Definitions for the cacheflush system call. */ + +#define CACHEFLUSH_D_INVAL 0x1 /* invalidate (without write back) */ +#define CACHEFLUSH_D_WB 0x2 /* write back (without invalidate) */ +#define CACHEFLUSH_D_PURGE 0x3 /* writeback and invalidate */ + +#define CACHEFLUSH_I 0x4 + +/* + * Options for cacheflush system call + */ +#define ICACHE CACHEFLUSH_I /* flush instruction cache */ +#define DCACHE CACHEFLUSH_D_PURGE /* writeback and flush data cache */ +#define BCACHE (ICACHE|DCACHE) /* flush both caches */ + +#endif /* _SH_CACHECTL_H */ |