1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_IA64_IRQ_H
3 #define _ASM_IA64_IRQ_H
6 * Copyright (C) 1999-2000, 2002 Hewlett-Packard Co
7 * David Mosberger-Tang <davidm@hpl.hp.com>
8 * Stephane Eranian <eranian@hpl.hp.com>
10 * 11/24/98 S.Eranian updated TIMER_IRQ and irq_canonicalize
11 * 01/20/99 S.Eranian added keyboard interrupt
12 * 02/29/00 D.Mosberger moved most things into hw_irq.h
15 #include <linux/types.h>
16 #include <linux/cpumask.h>
17 #include <asm/native/irq.h>
19 #define NR_IRQS IA64_NATIVE_NR_IRQS
22 irq_canonicalize (int irq)
25 * We do the legacy thing here of pretending that irqs < 16
26 * are 8259 irqs. This really shouldn't be necessary at all,
27 * but we keep it here as serial.c still uses it...
29 return ((irq == 2) ? 9 : irq);
32 extern void set_irq_affinity_info (unsigned int irq, int dest, int redir);
35 void destroy_irq(unsigned int irq);
37 #endif /* _ASM_IA64_IRQ_H */