Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Header file for using the wbflush routine
0003  *
0004  * This file is subject to the terms and conditions of the GNU General Public
0005  * License.  See the file "COPYING" in the main directory of this archive
0006  * for more details.
0007  *
0008  * Copyright (c) 1998 Harald Koerfgen
0009  * Copyright (C) 2002 Maciej W. Rozycki
0010  */
0011 #ifndef _ASM_WBFLUSH_H
0012 #define _ASM_WBFLUSH_H
0013 
0014 
0015 #ifdef CONFIG_CPU_HAS_WB
0016 
0017 extern void (*__wbflush)(void);
0018 extern void wbflush_setup(void);
0019 
0020 #define wbflush()           \
0021     do {                \
0022         __sync();       \
0023         __wbflush();        \
0024     } while (0)
0025 
0026 #else /* !CONFIG_CPU_HAS_WB */
0027 
0028 #define wbflush_setup() do { } while (0)
0029 
0030 #define wbflush() fast_iob()
0031 
0032 #endif /* !CONFIG_CPU_HAS_WB */
0033 
0034 #endif /* _ASM_WBFLUSH_H */