diff options
author | Yoshinori Sato <ysato@users.sourceforge.jp> | 2015-05-11 02:20:06 +0900 |
---|---|---|
committer | Yoshinori Sato <ysato@users.sourceforge.jp> | 2015-06-23 13:35:49 +0900 |
commit | d2a5f4999f6c211adf30d9788349e13988d6f2a7 (patch) | |
tree | 95f6ef1d8b1d4e3e078e462cc3ae73a4b519bc53 /arch/h8300/include/asm/irq.h | |
parent | a2ed0c57a546f5d99f795e97cd0b2769882031bc (diff) | |
download | linux-stable-d2a5f4999f6c211adf30d9788349e13988d6f2a7.tar.gz linux-stable-d2a5f4999f6c211adf30d9788349e13988d6f2a7.tar.bz2 linux-stable-d2a5f4999f6c211adf30d9788349e13988d6f2a7.zip |
h8300: Assembly headers
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Diffstat (limited to 'arch/h8300/include/asm/irq.h')
-rw-r--r-- | arch/h8300/include/asm/irq.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/h8300/include/asm/irq.h b/arch/h8300/include/asm/irq.h new file mode 100644 index 000000000000..69f23f0981b3 --- /dev/null +++ b/arch/h8300/include/asm/irq.h @@ -0,0 +1,26 @@ +#ifndef _H8300_IRQ_H_ +#define _H8300_IRQ_H_ + +#include <linux/irqchip.h> + +#if defined(CONFIG_CPU_H8300H) +#define NR_IRQS 64 +#define IRQ_CHIP h8300h_irq_chip +#define EXT_IRQ0 12 +#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_IRQS 16 +#endif + +static inline int irq_canonicalize(int irq) +{ + return irq; +} + +void h8300_init_ipr(void); +extern struct irq_chip h8300h_irq_chip; +extern struct irq_chip h8s_irq_chip; +#endif /* _H8300_IRQ_H_ */ |