This source file includes following definitions.
- irq_canonicalize
1
2 #ifndef _ALPHA_IRQ_H
3 #define _ALPHA_IRQ_H
4
5
6
7
8
9
10
11 #include <linux/linkage.h>
12
13 #if defined(CONFIG_ALPHA_GENERIC)
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 # if defined(CONFIG_ALPHA_LEGACY_START_ADDRESS)
29 # define NR_IRQS (128)
30 # else
31 # define NR_IRQS (32768 + 16)
32 # endif
33
34 #elif defined(CONFIG_ALPHA_CABRIOLET) || \
35 defined(CONFIG_ALPHA_EB66P) || \
36 defined(CONFIG_ALPHA_EB164) || \
37 defined(CONFIG_ALPHA_PC164) || \
38 defined(CONFIG_ALPHA_LX164)
39 # define NR_IRQS 35
40
41 #elif defined(CONFIG_ALPHA_EB66) || \
42 defined(CONFIG_ALPHA_EB64P) || \
43 defined(CONFIG_ALPHA_MIKASA)
44 # define NR_IRQS 32
45
46 #elif defined(CONFIG_ALPHA_ALCOR) || \
47 defined(CONFIG_ALPHA_MIATA) || \
48 defined(CONFIG_ALPHA_RUFFIAN) || \
49 defined(CONFIG_ALPHA_RX164) || \
50 defined(CONFIG_ALPHA_NORITAKE)
51 # define NR_IRQS 48
52
53 #elif defined(CONFIG_ALPHA_SABLE) || \
54 defined(CONFIG_ALPHA_SX164)
55 # define NR_IRQS 40
56
57 #elif defined(CONFIG_ALPHA_DP264) || \
58 defined(CONFIG_ALPHA_LYNX) || \
59 defined(CONFIG_ALPHA_SHARK)
60 # define NR_IRQS 64
61
62 #elif defined(CONFIG_ALPHA_TITAN)
63 #define NR_IRQS 80
64
65 #elif defined(CONFIG_ALPHA_RAWHIDE) || \
66 defined(CONFIG_ALPHA_TAKARA) || \
67 defined(CONFIG_ALPHA_EIGER)
68 # define NR_IRQS 128
69
70 #elif defined(CONFIG_ALPHA_WILDFIRE)
71 # define NR_IRQS 2048
72
73 #elif defined(CONFIG_ALPHA_MARVEL)
74 # define NR_IRQS (32768 + 16)
75
76 #else
77 # define NR_IRQS 16
78 #endif
79
80 static __inline__ int irq_canonicalize(int irq)
81 {
82
83
84
85
86 return ((irq == 2) ? 9 : irq);
87 }
88
89 struct pt_regs;
90 extern void (*perf_irq)(unsigned long, struct pt_regs *);
91
92 #endif