diff options
Diffstat (limited to 'include/asm-mips/jmr3927/irq.h')
-rw-r--r-- | include/asm-mips/jmr3927/irq.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/include/asm-mips/jmr3927/irq.h b/include/asm-mips/jmr3927/irq.h new file mode 100644 index 000000000000..b0c325a22343 --- /dev/null +++ b/include/asm-mips/jmr3927/irq.h | |||
@@ -0,0 +1,62 @@ | |||
1 | /* | ||
2 | * linux/include/asm-mips/tx3927/irq.h | ||
3 | * | ||
4 | * This file is subject to the terms and conditions of the GNU General Public | ||
5 | * License. See the file "COPYING" in the main directory of this archive | ||
6 | * for more details. | ||
7 | * | ||
8 | * Copyright (C) 2001 Toshiba Corporation | ||
9 | */ | ||
10 | #ifndef __ASM_TX3927_IRQ_H | ||
11 | #define __ASM_TX3927_IRQ_H | ||
12 | |||
13 | #ifndef __ASSEMBLY__ | ||
14 | |||
15 | #include <linux/config.h> | ||
16 | #include <asm/irq.h> | ||
17 | |||
18 | struct tb_irq_space { | ||
19 | struct tb_irq_space* next; | ||
20 | int start_irqno; | ||
21 | int nr_irqs; | ||
22 | void (*mask_func)(int irq_nr, int space_id); | ||
23 | void (*unmask_func)(int irq_no, int space_id); | ||
24 | const char *name; | ||
25 | int space_id; | ||
26 | int can_share; | ||
27 | }; | ||
28 | extern struct tb_irq_space* tb_irq_spaces; | ||
29 | |||
30 | static __inline__ void add_tb_irq_space(struct tb_irq_space* sp) | ||
31 | { | ||
32 | sp->next = tb_irq_spaces; | ||
33 | tb_irq_spaces = sp; | ||
34 | } | ||
35 | |||
36 | |||
37 | struct pt_regs; | ||
38 | extern void | ||
39 | toshibaboards_spurious(struct pt_regs *regs, int irq); | ||
40 | extern void | ||
41 | toshibaboards_irqdispatch(struct pt_regs *regs, int irq); | ||
42 | |||
43 | extern struct irqaction * | ||
44 | toshibaboards_get_irq_action(int irq); | ||
45 | extern int | ||
46 | toshibaboards_setup_irq(int irq, struct irqaction * new); | ||
47 | |||
48 | |||
49 | #ifdef CONFIG_TX_BRANCH_LIKELY_BUG_WORKAROUND | ||
50 | extern void tx_branch_likely_bug_fixup(struct pt_regs *regs); | ||
51 | #endif | ||
52 | |||
53 | extern int (*toshibaboards_gen_iack)(void); | ||
54 | |||
55 | #endif /* !__ASSEMBLY__ */ | ||
56 | |||
57 | #define NR_ISA_IRQS 16 | ||
58 | #define TB_IRQ_IS_ISA(irq) \ | ||
59 | (0 <= (irq) && (irq) < NR_ISA_IRQS) | ||
60 | #define TB_IRQ_TO_ISA_IRQ(irq) (irq) | ||
61 | |||
62 | #endif /* __ASM_TX3927_IRQ_H */ | ||