home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / src / linux-headers-2.6.17-6 / include / asm-mips / wbflush.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-08-11  |  694 b   |  35 lines

  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.  * Copyright (C) 2002 Maciej W. Rozycki
  10.  */
  11. #ifndef _ASM_WBFLUSH_H
  12. #define _ASM_WBFLUSH_H
  13.  
  14.  
  15. #ifdef CONFIG_CPU_HAS_WB
  16.  
  17. extern void (*__wbflush)(void);
  18. extern void wbflush_setup(void);
  19.  
  20. #define wbflush()            \
  21.     do {                \
  22.         __sync();        \
  23.         __wbflush();        \
  24.     } while (0)
  25.  
  26. #else /* !CONFIG_CPU_HAS_WB */
  27.  
  28. #define wbflush_setup() do { } while (0)
  29.  
  30. #define wbflush() fast_iob()
  31.  
  32. #endif /* !CONFIG_CPU_HAS_WB */
  33.  
  34. #endif /* _ASM_WBFLUSH_H */
  35.