~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/asm-mips/watch.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* $Id: watch.h,v 1.3 1998/08/19 21:58:15 ralf Exp $
  2  *
  3  * This file is subject to the terms and conditions of the GNU General Public
  4  * License.  See the file "COPYING" in the main directory of this archive
  5  * for more details.
  6  *
  7  * Copyright (C) 1996, 1997, 1998 by Ralf Baechle
  8  */
  9 #ifndef __ASM_WATCH_H
 10 #define __ASM_WATCH_H
 11 
 12 #include <linux/linkage.h>
 13 
 14 /*
 15  * Types of reference for watch_set()
 16  */
 17 enum wref_type {
 18         wr_save = 1,
 19         wr_load = 2
 20 };
 21 
 22 extern char watch_available;
 23 
 24 extern asmlinkage void __watch_set(unsigned long addr, enum wref_type ref);
 25 extern asmlinkage void __watch_clear(void);
 26 extern asmlinkage void __watch_reenable(void);
 27 
 28 #define watch_set(addr, ref)                                    \
 29         if (watch_available)                                    \
 30                 __watch_set(addr, ref)
 31 #define watch_clear()                                           \
 32         if (watch_available)                                    \
 33                 __watch_clear()
 34 #define watch_reenable()                                        \
 35         if (watch_available)                                    \
 36                 __watch_reenable()
 37 
 38 #endif __ASM_WATCH_H
 39 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.