1 #ifndef __ASM_SH_HW_IRQ_H
2 #define __ASM_SH_HW_IRQ_H
4 #include <linux/init.h>
5 #include <linux/sh_intc.h>
6 #include <asm/atomic.h>
8 extern atomic_t irq_err_count;
12 unsigned char ipr_idx; /* Index for the IPR registered */
13 unsigned char shift; /* Number of bits to shift the data */
14 unsigned char priority; /* The priority */
18 unsigned long *ipr_offsets;
19 unsigned int nr_offsets;
20 struct ipr_data *ipr_data;
25 void register_ipr_controller(struct ipr_desc *);
27 void __init plat_irq_setup(void);
28 void __init plat_irq_setup_sh3(void);
29 void __init plat_irq_setup_pins(int mode);
31 enum { IRQ_MODE_IRQ, IRQ_MODE_IRQ7654, IRQ_MODE_IRQ3210,
32 IRQ_MODE_IRL7654_MASK, IRQ_MODE_IRL3210_MASK,
33 IRQ_MODE_IRL7654, IRQ_MODE_IRL3210 };
35 #endif /* __ASM_SH_HW_IRQ_H */