1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 27f30491cSTony Luck #ifndef _ASM_IA64_IRQ_H 37f30491cSTony Luck #define _ASM_IA64_IRQ_H 47f30491cSTony Luck 57f30491cSTony Luck /* 67f30491cSTony Luck * Copyright (C) 1999-2000, 2002 Hewlett-Packard Co 77f30491cSTony Luck * David Mosberger-Tang <davidm@hpl.hp.com> 87f30491cSTony Luck * Stephane Eranian <eranian@hpl.hp.com> 97f30491cSTony Luck * 107f30491cSTony Luck * 11/24/98 S.Eranian updated TIMER_IRQ and irq_canonicalize 117f30491cSTony Luck * 01/20/99 S.Eranian added keyboard interrupt 127f30491cSTony Luck * 02/29/00 D.Mosberger moved most things into hw_irq.h 137f30491cSTony Luck */ 147f30491cSTony Luck 157f30491cSTony Luck #include <linux/types.h> 167f30491cSTony Luck #include <linux/cpumask.h> 17*fa1e160bSMasahiro Yamada #include <asm/native/irq.h> 18*fa1e160bSMasahiro Yamada 19*fa1e160bSMasahiro Yamada #define NR_IRQS IA64_NATIVE_NR_IRQS 207f30491cSTony Luck 217f30491cSTony Luck static __inline__ int irq_canonicalize(int irq)227f30491cSTony Luckirq_canonicalize (int irq) 237f30491cSTony Luck { 247f30491cSTony Luck /* 257f30491cSTony Luck * We do the legacy thing here of pretending that irqs < 16 267f30491cSTony Luck * are 8259 irqs. This really shouldn't be necessary at all, 277f30491cSTony Luck * but we keep it here as serial.c still uses it... 287f30491cSTony Luck */ 297f30491cSTony Luck return ((irq == 2) ? 9 : irq); 307f30491cSTony Luck } 317f30491cSTony Luck 327f30491cSTony Luck extern void set_irq_affinity_info (unsigned int irq, int dest, int redir); 337f30491cSTony Luck 34e8784e4fSThomas Gleixner int create_irq(void); 35e8784e4fSThomas Gleixner void destroy_irq(unsigned int irq); 36e8784e4fSThomas Gleixner 377f30491cSTony Luck #endif /* _ASM_IA64_IRQ_H */ 38