xref: /kernel/linux/linux-5.10/arch/h8300/include/asm/irq.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/h8300/include/asm/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _H8300_IRQ_H_
38c2ecf20Sopenharmony_ci#define _H8300_IRQ_H_
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <linux/irqchip.h>
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#if defined(CONFIG_CPU_H8300H)
88c2ecf20Sopenharmony_ci#define NR_IRQS 64
98c2ecf20Sopenharmony_ci#define IRQ_CHIP h8300h_irq_chip
108c2ecf20Sopenharmony_ci#define EXT_IRQ0 12
118c2ecf20Sopenharmony_ci#define EXT_IRQS 6
128c2ecf20Sopenharmony_ci#elif defined(CONFIG_CPU_H8S)
138c2ecf20Sopenharmony_ci#define NR_IRQS 128
148c2ecf20Sopenharmony_ci#define IRQ_CHIP h8s_irq_chip
158c2ecf20Sopenharmony_ci#define EXT_IRQ0 16
168c2ecf20Sopenharmony_ci#define EXT_IRQS 16
178c2ecf20Sopenharmony_ci#endif
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_cistatic inline int irq_canonicalize(int irq)
208c2ecf20Sopenharmony_ci{
218c2ecf20Sopenharmony_ci	return irq;
228c2ecf20Sopenharmony_ci}
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_civoid h8300_init_ipr(void);
258c2ecf20Sopenharmony_ciextern struct irq_chip h8300h_irq_chip;
268c2ecf20Sopenharmony_ciextern struct irq_chip h8s_irq_chip;
278c2ecf20Sopenharmony_ci#endif /* _H8300_IRQ_H_ */
28

Indexes created Thu Nov 07 10:32:03 CST 2024