File: /usr/src/linux/include/asm-mips/wbflush.h
1 /*
2 * Header file for using the wbflush routine
3 *
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
6 * for more details.
7 *
8 * Copyright (c) 1998 Harald Koerfgen
9 *
10 * $Id: wbflush.h,v 1.2 1999/08/13 17:07:28 harald Exp $
11 */
12 #ifndef __ASM_MIPS_WBFLUSH_H
13 #define __ASM_MIPS_WBFLUSH_H
14
15 #include <linux/config.h>
16
17 #if defined(CONFIG_CPU_HAS_WB)
18 /*
19 * R2000 or R3000
20 */
21 extern void (*__wbflush) (void);
22
23 #define wbflush() __wbflush()
24
25 #else
26 /*
27 * we don't need no stinkin' wbflush
28 */
29
30 #define wbflush() do { } while(0)
31
32 #endif
33
34 extern void wbflush_setup(void);
35
36 #endif /* __ASM_MIPS_WBFLUSH_H */
37