ia64/linux-2.6.18-xen.hg

view drivers/char/nwbutton.h @ 893:f994bfe9b93b

linux/blktap2: reduce TLB flush scope

c/s 885 added very coarse TLB flushing. Since these flushes always
follow single page updates, single page flushes (when available) are
sufficient.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 04 10:32:57 2009 +0100 (2009-06-04)
parents 831230e53067
children
line source
1 #ifndef __NWBUTTON_H
2 #define __NWBUTTON_H
4 /*
5 * NetWinder Button Driver-
6 * Copyright (C) Alex Holden <alex@linuxhacker.org> 1998, 1999.
7 */
9 #ifdef __NWBUTTON_C /* Actually compiling the driver itself */
11 /* Various defines: */
13 #define NUM_PRESSES_REBOOT 2 /* How many presses to activate shutdown */
14 #define BUTTON_DELAY 30 /* How many jiffies for sequence to end */
15 #define VERSION "0.3" /* Driver version number */
16 #define BUTTON_MINOR 158 /* Major 10, Minor 158, /dev/nwbutton */
18 /* Structure definitions: */
20 struct button_callback {
21 void (*callback) (void);
22 int count;
23 };
25 /* Function prototypes: */
27 static void button_sequence_finished (unsigned long parameters);
28 static irqreturn_t button_handler (int irq, void *dev_id, struct pt_regs *regs);
29 int button_init (void);
30 int button_add_callback (void (*callback) (void), int count);
31 int button_del_callback (void (*callback) (void));
32 static void button_consume_callbacks (int bpcount);
34 #else /* Not compiling the driver itself */
36 extern int button_add_callback (void (*callback) (void), int count);
37 extern int button_del_callback (void (*callback) (void));
39 #endif /* __NWBUTTON_C */
40 #endif /* __NWBUTTON_H */