Make GET_SAVED_SP lowercase.
[linux-2.6/linux-mips.git] / include / asm-alpha / irq.h
blob4b6bb44f41c8404aa1ebb8d5362444b2cfcfb352
1 #ifndef _ALPHA_IRQ_H
2 #define _ALPHA_IRQ_H
4 /*
5 * linux/include/alpha/irq.h
7 * (C) 1994 Linus Torvalds
8 */
10 #include <linux/linkage.h>
11 #include <linux/config.h>
13 #if defined(CONFIG_ALPHA_GENERIC)
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. */
19 # define NR_IRQS (32768 + 16) /* marvel - 32 pids*/
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
28 #elif defined(CONFIG_ALPHA_EB66) || \
29 defined(CONFIG_ALPHA_EB64P) || \
30 defined(CONFIG_ALPHA_MIKASA)
31 # define NR_IRQS 32
33 #elif defined(CONFIG_ALPHA_ALCOR) || \
34 defined(CONFIG_ALPHA_MIATA) || \
35 defined(CONFIG_ALPHA_RUFFIAN) || \
36 defined(CONFIG_ALPHA_RX164) || \
37 defined(CONFIG_ALPHA_NORITAKE)
38 # define NR_IRQS 48
40 #elif defined(CONFIG_ALPHA_SABLE) || \
41 defined(CONFIG_ALPHA_SX164)
42 # define NR_IRQS 40
44 #elif defined(CONFIG_ALPHA_DP264) || \
45 defined(CONFIG_ALPHA_LYNX) || \
46 defined(CONFIG_ALPHA_SHARK) || \
47 defined(CONFIG_ALPHA_EIGER)
48 # define NR_IRQS 64
50 #elif defined(CONFIG_ALPHA_TITAN)
51 #define NR_IRQS 80
53 #elif defined(CONFIG_ALPHA_RAWHIDE) || \
54 defined(CONFIG_ALPHA_TAKARA)
55 # define NR_IRQS 128
57 #elif defined(CONFIG_ALPHA_WILDFIRE)
58 # define NR_IRQS 2048 /* enuff for 8 QBBs */
60 #elif defined(CONFIG_ALPHA_MARVEL)
61 # define NR_IRQS (32768 + 16) /* marvel - 32 pids*/
63 #else /* everyone else */
64 # define NR_IRQS 16
65 #endif
67 static __inline__ int irq_canonicalize(int irq)
70 * XXX is this true for all Alpha's? The old serial driver
71 * did it this way for years without any complaints, so....
73 return ((irq == 2) ? 9 : irq);
76 extern void disable_irq(unsigned int);
77 extern void disable_irq_nosync(unsigned int);
78 extern void enable_irq(unsigned int);
80 struct pt_regs;
81 extern void (*perf_irq)(unsigned long, struct pt_regs *);
84 #endif /* _ALPHA_IRQ_H */