1 /* 2 * include/asm-mips/cachectl.h 3 * 4 * Written by Ralf Baechle, 5 * Copyright (C) 1994 by Waldorf GMBH 6 * 7 * Defines for Risc/OS compatible cacheflush systemcall 8 */ 9 #ifndef __ASM_MIPS_CACHECTL 10 #define __ASM_MIPS_CACHECTL 11 12 /* 13 * cachectl.h -- defines for MIPS cache control system calls 14 */ 15 16 /* 17 * Options for cacheflush system call 18 */ 19 #define ICACHE (1<<0) /* flush instruction cache */ 20 #define DCACHE (1<<1) /* writeback and flush data cache */ 21 #define BCACHE (ICACHE|DCACHE) /* flush both caches */ 22 23 #define CACHELINES 512 /* number of cachelines */ 24 25 #ifdef __KERNEL__ 26 #ifndef __ASSEMBLY__ 27 28 extern int sys_cacheflush(void *addr, int nbytes, int cache); 29 30 #endif 31 #endif 32 #endif /* __ASM_MIPS_CACHECTL */