]> git.proxmox.com Git - mirror_ubuntu-kernels.git/blame - arch/h8300/include/asm/irq.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-kernels.git] / arch / h8300 / include / asm / irq.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
d2a5f499
YS
2#ifndef _H8300_IRQ_H_
3#define _H8300_IRQ_H_
4
5#include <linux/irqchip.h>
6
7#if defined(CONFIG_CPU_H8300H)
8#define NR_IRQS 64
9#define IRQ_CHIP h8300h_irq_chip
10#define EXT_IRQ0 12
11#define EXT_IRQS 6
12#elif defined(CONFIG_CPU_H8S)
13#define NR_IRQS 128
14#define IRQ_CHIP h8s_irq_chip
15#define EXT_IRQ0 16
16#define EXT_IRQS 16
17#endif
18
19static inline int irq_canonicalize(int irq)
20{
21 return irq;
22}
23
24void h8300_init_ipr(void);
25extern struct irq_chip h8300h_irq_chip;
26extern struct irq_chip h8s_irq_chip;
27#endif /* _H8300_IRQ_H_ */