1 #ifndef _H8300_IRQ_H_ 2 #define _H8300_IRQ_H_ 3 4 #include <linux/irqchip.h> 5 6 #if defined(CONFIG_CPU_H8300H) 7 #define NR_IRQS 64 8 #define IRQ_CHIP h8300h_irq_chip 9 #define EXT_IRQ0 12 10 #define EXT_IRQS 6 11 #elif defined(CONFIG_CPU_H8S) 12 #define NR_IRQS 128 13 #define IRQ_CHIP h8s_irq_chip 14 #define EXT_IRQ0 16 15 #define EXT_IRQS 16 16 #endif 17 irq_canonicalize(int irq)18static inline int irq_canonicalize(int irq) 19 { 20 return irq; 21 } 22 23 void h8300_init_ipr(void); 24 extern struct irq_chip h8300h_irq_chip; 25 extern struct irq_chip h8s_irq_chip; 26 #endif /* _H8300_IRQ_H_ */ 27