--- zzzz-none-000/linux-3.10.107/arch/h8300/include/asm/irq.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/h8300/include/asm/irq.h 2021-02-04 17:41:59.000000000 +0000 @@ -1,49 +1,26 @@ #ifndef _H8300_IRQ_H_ #define _H8300_IRQ_H_ -#include +#include #if defined(CONFIG_CPU_H8300H) #define NR_IRQS 64 +#define IRQ_CHIP h8300h_irq_chip #define EXT_IRQ0 12 -#define EXT_IRQ1 13 -#define EXT_IRQ2 14 -#define EXT_IRQ3 15 -#define EXT_IRQ4 16 -#define EXT_IRQ5 17 -#define EXT_IRQ6 18 -#define EXT_IRQ7 19 -#define EXT_IRQS 5 -#define IER_REGS *(volatile unsigned char *)IER -#endif -#if defined(CONFIG_CPU_H8S) +#define EXT_IRQS 6 +#elif defined(CONFIG_CPU_H8S) #define NR_IRQS 128 +#define IRQ_CHIP h8s_irq_chip #define EXT_IRQ0 16 -#define EXT_IRQ1 17 -#define EXT_IRQ2 18 -#define EXT_IRQ3 19 -#define EXT_IRQ4 20 -#define EXT_IRQ5 21 -#define EXT_IRQ6 22 -#define EXT_IRQ7 23 -#define EXT_IRQ8 24 -#define EXT_IRQ9 25 -#define EXT_IRQ10 26 -#define EXT_IRQ11 27 -#define EXT_IRQ12 28 -#define EXT_IRQ13 29 -#define EXT_IRQ14 30 -#define EXT_IRQ15 31 -#define EXT_IRQS 15 - -#define IER_REGS *(volatile unsigned short *)IER +#define EXT_IRQS 16 #endif -static __inline__ int irq_canonicalize(int irq) +static inline int irq_canonicalize(int irq) { return irq; } -typedef void (*h8300_vector)(void); - +void h8300_init_ipr(void); +extern struct irq_chip h8300h_irq_chip; +extern struct irq_chip h8s_irq_chip; #endif /* _H8300_IRQ_H_ */