sync hh.org
[hh.org.git] / include / asm-mips / jmr3927 / irq.h
blobe3e7ed38da6c43f71b56851c26fa1d5418dad9b9
1 /*
2 * linux/include/asm-mips/tx3927/irq.h
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.
8 * Copyright (C) 2001 Toshiba Corporation
9 */
10 #ifndef __ASM_TX3927_IRQ_H
11 #define __ASM_TX3927_IRQ_H
13 #ifndef __ASSEMBLY__
15 #include <asm/irq.h>
17 struct tb_irq_space {
18 struct tb_irq_space* next;
19 int start_irqno;
20 int nr_irqs;
21 void (*mask_func)(int irq_nr, int space_id);
22 void (*unmask_func)(int irq_no, int space_id);
23 const char *name;
24 int space_id;
25 int can_share;
27 extern struct tb_irq_space* tb_irq_spaces;
29 static __inline__ void add_tb_irq_space(struct tb_irq_space* sp)
31 sp->next = tb_irq_spaces;
32 tb_irq_spaces = sp;
36 struct pt_regs;
37 extern void
38 toshibaboards_spurious(struct pt_regs *regs, int irq);
39 extern void
40 toshibaboards_irqdispatch(struct pt_regs *regs, int irq);
42 extern struct irqaction *
43 toshibaboards_get_irq_action(int irq);
44 extern int
45 toshibaboards_setup_irq(int irq, struct irqaction * new);
48 extern int (*toshibaboards_gen_iack)(void);
50 #endif /* !__ASSEMBLY__ */
52 #define NR_ISA_IRQS 16
53 #define TB_IRQ_IS_ISA(irq) \
54 (0 <= (irq) && (irq) < NR_ISA_IRQS)
55 #define TB_IRQ_TO_ISA_IRQ(irq) (irq)
57 #endif /* __ASM_TX3927_IRQ_H */