1 #ifndef _ALPHA_IRQ_H
2 #define _ALPHA_IRQ_H
3
4 /*
5 * linux/include/alpha/irq.h
6 *
7 * (C) 1994 Linus Torvalds
8 */
9
10 #include <linux/linkage.h>
11 #include <linux/config.h>
12
13 #if defined(CONFIG_ALPHA_GENERIC)
14
15 /* Here NR_IRQS is not exact, but rather an upper bound. This is used
16 many places throughout the kernel to size static arrays. That's ok,
17 we'll use alpha_mv.nr_irqs when we want the real thing. */
18
19 # define NR_IRQS 2048 /* enuff for WILDFIRE with 8 QBBs */
20
21 #elif defined(CONFIG_ALPHA_CABRIOLET) || \
22 defined(CONFIG_ALPHA_EB66P) || \
23 defined(CONFIG_ALPHA_EB164) || \
24 defined(CONFIG_ALPHA_PC164) || \
25 defined(CONFIG_ALPHA_LX164)
26 # define NR_IRQS 35
27
28 #elif defined(CONFIG_ALPHA_EB66) || \
29 defined(CONFIG_ALPHA_EB64P) || \
30 defined(CONFIG_ALPHA_MIKASA)
31 # define NR_IRQS 32
32
33 #elif defined(CONFIG_ALPHA_ALCOR) || \
34 defined(CONFIG_ALPHA_XLT) || \
35 defined(CONFIG_ALPHA_MIATA) || \
36 defined(CONFIG_ALPHA_RUFFIAN) || \
37 defined(CONFIG_ALPHA_RX164) || \
38 defined(CONFIG_ALPHA_NORITAKE)
39 # define NR_IRQS 48
40
41 #elif defined(CONFIG_ALPHA_SABLE) || \
42 defined(CONFIG_ALPHA_SX164)
43 # define NR_IRQS 40
44
45 #elif defined(CONFIG_ALPHA_DP264) || \
46 defined(CONFIG_ALPHA_EIGER)
47 # define NR_IRQS 64
48
49 #elif defined(CONFIG_ALPHA_TITAN)
50 #define NR_IRQS 80
51
52 #elif defined(CONFIG_ALPHA_RAWHIDE) || \
53 defined(CONFIG_ALPHA_TAKARA)
54 # define NR_IRQS 128
55
56 #elif defined(CONFIG_ALPHA_WILDFIRE)
57 # define NR_IRQS 2048 /* enuff for 8 QBBs */
58
59 #else /* everyone else */
60 # define NR_IRQS 16
61 #endif
62
63 static __inline__ int irq_cannonicalize(int irq)
64 {
65 /*
66 * XXX is this true for all Alpha's? The old serial driver
67 * did it this way for years without any complaints, so....
68 */
69 return ((irq == 2) ? 9 : irq);
70 }
71
72 extern void disable_irq(unsigned int);
73 extern void disable_irq_nosync(unsigned int);
74 extern void enable_irq(unsigned int);
75
76 struct pt_regs;
77 extern void (*perf_irq)(unsigned long, struct pt_regs *);
78
79
80 #endif /* _ALPHA_IRQ_H */
81
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.