diff options
Diffstat (limited to 'include/linux/interrupt.h')
-rw-r--r-- | include/linux/interrupt.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index db2a63a11633..cf682a73a6f9 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h | |||
@@ -14,6 +14,53 @@ | |||
14 | #include <asm/ptrace.h> | 14 | #include <asm/ptrace.h> |
15 | #include <asm/system.h> | 15 | #include <asm/system.h> |
16 | 16 | ||
17 | /* | ||
18 | * These correspond to the IORESOURCE_IRQ_* defines in | ||
19 | * linux/ioport.h to select the interrupt line behaviour. When | ||
20 | * requesting an interrupt without specifying a IRQF_TRIGGER, the | ||
21 | * setting should be assumed to be "as already configured", which | ||
22 | * may be as per machine or firmware initialisation. | ||
23 | */ | ||
24 | #define IRQF_TRIGGER_NONE 0x00000000 | ||
25 | #define IRQF_TRIGGER_RISING 0x00000001 | ||
26 | #define IRQF_TRIGGER_FALLING 0x00000002 | ||
27 | #define IRQF_TRIGGER_HIGH 0x00000004 | ||
28 | #define IRQF_TRIGGER_LOW 0x00000008 | ||
29 | #define IRQF_TRIGGER_MASK (IRQF_TRIGGER_HIGH | IRQF_TRIGGER_LOW | \ | ||
30 | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING) | ||
31 | #define IRQF_TRIGGER_PROBE 0x00000010 | ||
32 | |||
33 | /* | ||
34 | * These flags used only by the kernel as part of the | ||
35 | * irq handling routines. | ||
36 | * | ||
37 | * IRQF_DISABLED - keep irqs disabled when calling the action handler | ||
38 | * IRQF_SAMPLE_RANDOM - irq is used to feed the random generator | ||
39 | * IRQF_SHARED - allow sharing the irq among several devices | ||
40 | * IRQF_PROBE_SHARED - set by callers when they expect sharing mismatches to occur | ||
41 | * IRQF_TIMER - Flag to mark this interrupt as timer interrupt | ||
42 | */ | ||
43 | #define IRQF_DISABLED 0x00000020 | ||
44 | #define IRQF_SAMPLE_RANDOM 0x00000040 | ||
45 | #define IRQF_SHARED 0x00000080 | ||
46 | #define IRQF_PROBE_SHARED 0x00000100 | ||
47 | #define IRQF_TIMER 0x00000200 | ||
48 | |||
49 | /* | ||
50 | * Migration helpers. Scheduled for removal in 1/2007 | ||
51 | * Do not use for new code ! | ||
52 | */ | ||
53 | #define SA_INTERRUPT IRQF_DISABLED | ||
54 | #define SA_SAMPLE_RANDOM IRQF_SAMPLE_RANDOM | ||
55 | #define SA_SHIRQ IRQF_SHARED | ||
56 | #define SA_PROBEIRQ IRQF_PROBE_SHARED | ||
57 | |||
58 | #define SA_TRIGGER_LOW IRQF_TRIGGER_LOW | ||
59 | #define SA_TRIGGER_HIGH IRQF_TRIGGER_HIGH | ||
60 | #define SA_TRIGGER_FALLING IRQF_TRIGGER_FALLING | ||
61 | #define SA_TRIGGER_RISING IRQF_TRIGGER_RISING | ||
62 | #define SA_TRIGGER_MASK IRQF_TRIGGER_MASK | ||
63 | |||
17 | struct irqaction { | 64 | struct irqaction { |
18 | irqreturn_t (*handler)(int, void *, struct pt_regs *); | 65 | irqreturn_t (*handler)(int, void *, struct pt_regs *); |
19 | unsigned long flags; | 66 | unsigned long flags; |