Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
1da177e4 LT |
2 | #ifndef _ASM_IA64_IRQ_H |
3 | #define _ASM_IA64_IRQ_H | |
4 | ||
5 | /* | |
6 | * Copyright (C) 1999-2000, 2002 Hewlett-Packard Co | |
7 | * David Mosberger-Tang <davidm@hpl.hp.com> | |
8 | * Stephane Eranian <eranian@hpl.hp.com> | |
9 | * | |
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 | |
13 | */ | |
14 | ||
25d61578 JK |
15 | #include <linux/types.h> |
16 | #include <linux/cpumask.h> | |
4929d29c | 17 | #include <generated/nr-irqs.h> |
1da177e4 LT |
18 | |
19 | static __inline__ int | |
20 | irq_canonicalize (int irq) | |
21 | { | |
22 | /* | |
23 | * We do the legacy thing here of pretending that irqs < 16 | |
24 | * are 8259 irqs. This really shouldn't be necessary at all, | |
25 | * but we keep it here as serial.c still uses it... | |
26 | */ | |
27 | return ((irq == 2) ? 9 : irq); | |
28 | } | |
29 | ||
1da177e4 | 30 | extern void set_irq_affinity_info (unsigned int irq, int dest, int redir); |
d3b66bf2 | 31 | bool is_affinity_mask_valid(const struct cpumask *cpumask); |
25d61578 JK |
32 | |
33 | #define is_affinity_mask_valid is_affinity_mask_valid | |
1da177e4 | 34 | |
e8784e4f TG |
35 | int create_irq(void); |
36 | void destroy_irq(unsigned int irq); | |
37 | ||
1da177e4 | 38 | #endif /* _ASM_IA64_IRQ_H */ |