RT-AC66 3.0.0.4.374.130 core
[tomato.git] / release / src-rt-6.x / linux / linux-2.6 / include / asm-ia64 / irq.h
blob67221615e3173537ac8df7b4ba6de436dd97db3c
1 #ifndef _ASM_IA64_IRQ_H
2 #define _ASM_IA64_IRQ_H
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>
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
14 #include <linux/types.h>
15 #include <linux/cpumask.h>
17 #define NR_IRQS 256
18 #define NR_IRQ_VECTORS NR_IRQS
20 static __inline__ int
21 irq_canonicalize (int irq)
24 * We do the legacy thing here of pretending that irqs < 16
25 * are 8259 irqs. This really shouldn't be necessary at all,
26 * but we keep it here as serial.c still uses it...
28 return ((irq == 2) ? 9 : irq);
31 extern void disable_irq (unsigned int);
32 extern void disable_irq_nosync (unsigned int);
33 extern void enable_irq (unsigned int);
34 extern void set_irq_affinity_info (unsigned int irq, int dest, int redir);
35 bool is_affinity_mask_valid(cpumask_t cpumask);
37 #define is_affinity_mask_valid is_affinity_mask_valid
39 #endif /* _ASM_IA64_IRQ_H */