diff options
Diffstat (limited to 'include/asm-parisc/irq.h')
-rw-r--r-- | include/asm-parisc/irq.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/include/asm-parisc/irq.h b/include/asm-parisc/irq.h new file mode 100644 index 000000000000..75654ba93353 --- /dev/null +++ b/include/asm-parisc/irq.h | |||
@@ -0,0 +1,55 @@ | |||
1 | /* | ||
2 | * include/asm-parisc/irq.h | ||
3 | * | ||
4 | * Copyright 2005 Matthew Wilcox <matthew@wil.cx> | ||
5 | */ | ||
6 | |||
7 | #ifndef _ASM_PARISC_IRQ_H | ||
8 | #define _ASM_PARISC_IRQ_H | ||
9 | |||
10 | #include <linux/config.h> | ||
11 | #include <asm/types.h> | ||
12 | |||
13 | #define NO_IRQ (-1) | ||
14 | |||
15 | #ifdef CONFIG_GSC | ||
16 | #define GSC_IRQ_BASE 16 | ||
17 | #define GSC_IRQ_MAX 63 | ||
18 | #define CPU_IRQ_BASE 64 | ||
19 | #else | ||
20 | #define CPU_IRQ_BASE 16 | ||
21 | #endif | ||
22 | |||
23 | #define TIMER_IRQ (CPU_IRQ_BASE + 0) | ||
24 | #define IPI_IRQ (CPU_IRQ_BASE + 1) | ||
25 | #define CPU_IRQ_MAX (CPU_IRQ_BASE + (BITS_PER_LONG - 1)) | ||
26 | |||
27 | #define NR_IRQS (CPU_IRQ_MAX + 1) | ||
28 | |||
29 | static __inline__ int irq_canonicalize(int irq) | ||
30 | { | ||
31 | return (irq == 2) ? 9 : irq; | ||
32 | } | ||
33 | |||
34 | struct hw_interrupt_type; | ||
35 | |||
36 | /* | ||
37 | * Some useful "we don't have to do anything here" handlers. Should | ||
38 | * probably be provided by the generic code. | ||
39 | */ | ||
40 | void no_ack_irq(unsigned int irq); | ||
41 | void no_end_irq(unsigned int irq); | ||
42 | |||
43 | extern int txn_alloc_irq(unsigned int nbits); | ||
44 | extern int txn_claim_irq(int); | ||
45 | extern unsigned int txn_alloc_data(unsigned int); | ||
46 | extern unsigned long txn_alloc_addr(unsigned int); | ||
47 | |||
48 | extern int cpu_claim_irq(unsigned int irq, struct hw_interrupt_type *, void *); | ||
49 | |||
50 | extern int cpu_claim_irq(unsigned int irq, struct hw_interrupt_type *, void *); | ||
51 | |||
52 | /* soft power switch support (power.c) */ | ||
53 | extern struct tasklet_struct power_tasklet; | ||
54 | |||
55 | #endif /* _ASM_PARISC_IRQ_H */ | ||