ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-um / irq.h
1 #ifndef __UM_IRQ_H
2 #define __UM_IRQ_H
3
4 /* The i386 irq.h has a struct task_struct in a prototype without including
5  * sched.h.  This forward declaration kills the resulting warning.
6  */
7 struct task_struct;
8
9 #include "asm/ptrace.h"
10
11 #undef NR_IRQS
12
13 #define TIMER_IRQ               0
14 #define UMN_IRQ                 1
15 #define CONSOLE_IRQ             2
16 #define CONSOLE_WRITE_IRQ       3
17 #define UBD_IRQ                 4
18 #define UM_ETH_IRQ              5
19 #define SSL_IRQ                 6
20 #define SSL_WRITE_IRQ           7
21 #define ACCEPT_IRQ              8
22 #define MCONSOLE_IRQ            9
23 #define WINCH_IRQ               10
24 #define SIGIO_WRITE_IRQ         11
25 #define TELNETD_IRQ             12
26 #define XTERM_IRQ               13
27
28 #define LAST_IRQ XTERM_IRQ
29 #define NR_IRQS (LAST_IRQ + 1)
30
31 extern int um_request_irq(unsigned int irq, int fd, int type,
32                           void (*handler)(int, void *, struct pt_regs *),
33                           unsigned long irqflags,  const char * devname,
34                           void *dev_id);
35
36 struct irqaction;
37 struct pt_regs;
38 int handle_IRQ_event(unsigned int, struct pt_regs *, struct irqaction *);
39
40 #endif