ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / arch / um / include / irq_user.h
1 /* 
2  * Copyright (C) 2001, 2002 Jeff Dike (jdike@karaya.com)
3  * Licensed under the GPL
4  */
5
6 #ifndef __IRQ_USER_H__
7 #define __IRQ_USER_H__
8
9 enum { IRQ_READ, IRQ_WRITE };
10
11 extern void sigio_handler(int sig, union uml_pt_regs *regs);
12 extern int activate_fd(int irq, int fd, int type, void *dev_id);
13 extern void free_irq_by_irq_and_dev(int irq, void *dev_id);
14 extern void free_irq_by_fd(int fd);
15 extern void reactivate_fd(int fd, int irqnum);
16 extern void deactivate_fd(int fd, int irqnum);
17 extern void forward_interrupts(int pid);
18 extern void init_irq_signals(int on_sigstack);
19 extern void forward_ipi(int fd, int pid);
20 extern void free_irq_later(int irq, void *dev_id);
21 extern int activate_ipi(int fd, int pid);
22 extern unsigned long irq_lock(void);
23 extern void irq_unlock(unsigned long flags);
24 #endif
25
26 /*
27  * Overrides for Emacs so that we follow Linus's tabbing style.
28  * Emacs will notice this stuff at the end of the file and automatically
29  * adjust the settings for this buffer only.  This must remain at the end
30  * of the file.
31  * ---------------------------------------------------------------------------
32  * Local variables:
33  * c-file-style: "linux"
34  * End:
35  */