]> err.no Git - linux-2.6/blob - include/asm-sh/hw_irq.h
sh: rework intc2 code
[linux-2.6] / include / asm-sh / hw_irq.h
1 #ifndef __ASM_SH_HW_IRQ_H
2 #define __ASM_SH_HW_IRQ_H
3
4 #include <asm/atomic.h>
5
6 extern atomic_t irq_err_count;
7
8 struct intc2_data {
9         unsigned short irq;
10         unsigned char ipr_offset, ipr_shift;
11         unsigned char msk_offset, msk_shift;
12         unsigned char priority;
13 };
14
15 struct intc2_desc {
16         unsigned long prio_base;
17         unsigned long msk_base;
18         unsigned long mskclr_base;
19         struct intc2_data *intc2_data;
20         unsigned int nr_irqs;
21         struct irq_chip chip;
22 };
23
24 void register_intc2_controller(struct intc2_desc *);
25 void init_IRQ_intc2(void);
26
27 #endif /* __ASM_SH_HW_IRQ_H */