diff options
Diffstat (limited to 'arch/um/include/shared/irq_user.h')
-rw-r--r-- | arch/um/include/shared/irq_user.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/arch/um/include/shared/irq_user.h b/arch/um/include/shared/irq_user.h index df5633053957..a7a6120f19d5 100644 --- a/arch/um/include/shared/irq_user.h +++ b/arch/um/include/shared/irq_user.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #define __IRQ_USER_H__ | 7 | #define __IRQ_USER_H__ |
8 | 8 | ||
9 | #include <sysdep/ptrace.h> | 9 | #include <sysdep/ptrace.h> |
10 | #include <stdbool.h> | ||
10 | 11 | ||
11 | struct irq_fd { | 12 | struct irq_fd { |
12 | struct irq_fd *next; | 13 | struct irq_fd *next; |
@@ -15,10 +16,17 @@ struct irq_fd { | |||
15 | int type; | 16 | int type; |
16 | int irq; | 17 | int irq; |
17 | int events; | 18 | int events; |
18 | int current_events; | 19 | bool active; |
20 | bool pending; | ||
21 | bool purge; | ||
19 | }; | 22 | }; |
20 | 23 | ||
21 | enum { IRQ_READ, IRQ_WRITE }; | 24 | #define IRQ_READ 0 |
25 | #define IRQ_WRITE 1 | ||
26 | #define IRQ_NONE 2 | ||
27 | #define MAX_IRQ_TYPE (IRQ_NONE + 1) | ||
28 | |||
29 | |||
22 | 30 | ||
23 | struct siginfo; | 31 | struct siginfo; |
24 | extern void sigio_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs); | 32 | extern void sigio_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs); |