blob: dbe86c0bbce5f896f25e4934228ac2c36228227a [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_IA64_IRQ_H
2#define _ASM_IA64_IRQ_H
3
4/*
5 * Copyright (C) 1999-2000, 2002 Hewlett-Packard Co
6 * David Mosberger-Tang <davidm@hpl.hp.com>
7 * Stephane Eranian <eranian@hpl.hp.com>
8 *
9 * 11/24/98 S.Eranian updated TIMER_IRQ and irq_canonicalize
10 * 01/20/99 S.Eranian added keyboard interrupt
11 * 02/29/00 D.Mosberger moved most things into hw_irq.h
12 */
13
14#define NR_IRQS 256
15#define NR_IRQ_VECTORS NR_IRQS
16
Karsten Wiesef26fdd52005-09-06 15:17:25 -070017/*
18 * IRQ line status macro IRQ_PER_CPU is used
19 */
20#define ARCH_HAS_IRQ_PER_CPU
21
Linus Torvalds1da177e2005-04-16 15:20:36 -070022static __inline__ int
23irq_canonicalize (int irq)
24{
25 /*
26 * We do the legacy thing here of pretending that irqs < 16
27 * are 8259 irqs. This really shouldn't be necessary at all,
28 * but we keep it here as serial.c still uses it...
29 */
30 return ((irq == 2) ? 9 : irq);
31}
32
33extern void disable_irq (unsigned int);
34extern void disable_irq_nosync (unsigned int);
35extern void enable_irq (unsigned int);
36extern void set_irq_affinity_info (unsigned int irq, int dest, int redir);
37
Linus Torvalds1da177e2005-04-16 15:20:36 -070038#endif /* _ASM_IA64_IRQ_H */