aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-alpha/irq.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-alpha/irq.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/asm-alpha/irq.h')
-rw-r--r--include/asm-alpha/irq.h100
1 files changed, 100 insertions, 0 deletions
diff --git a/include/asm-alpha/irq.h b/include/asm-alpha/irq.h
new file mode 100644
index 000000000000..566db720000a
--- /dev/null
+++ b/include/asm-alpha/irq.h
@@ -0,0 +1,100 @@
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/* When LEGACY_START_ADDRESS is selected, we leave out:
20 TITAN
21 WILDFIRE
22 MARVEL
23
24 This helps keep the kernel object size reasonable for the majority
25 of machines.
26*/
27
28# if defined(CONFIG_ALPHA_LEGACY_START_ADDRESS)
29# define NR_IRQS (128) /* max is RAWHIDE/TAKARA */
30# else
31# define NR_IRQS (32768 + 16) /* marvel - 32 pids */
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 defined(CONFIG_ALPHA_EIGER)
61# define NR_IRQS 64
62
63#elif defined(CONFIG_ALPHA_TITAN)
64#define NR_IRQS 80
65
66#elif defined(CONFIG_ALPHA_RAWHIDE) || \
67 defined(CONFIG_ALPHA_TAKARA)
68# define NR_IRQS 128
69
70#elif defined(CONFIG_ALPHA_WILDFIRE)
71# define NR_IRQS 2048 /* enuff for 8 QBBs */
72
73#elif defined(CONFIG_ALPHA_MARVEL)
74# define NR_IRQS (32768 + 16) /* marvel - 32 pids*/
75
76#else /* everyone else */
77# define NR_IRQS 16
78#endif
79
80static __inline__ int irq_canonicalize(int irq)
81{
82 /*
83 * XXX is this true for all Alpha's? The old serial driver
84 * did it this way for years without any complaints, so....
85 */
86 return ((irq == 2) ? 9 : irq);
87}
88
89extern void disable_irq(unsigned int);
90extern void disable_irq_nosync(unsigned int);
91extern void enable_irq(unsigned int);
92
93struct pt_regs;
94extern void (*perf_irq)(unsigned long, struct pt_regs *);
95
96struct irqaction;
97int handle_IRQ_event(unsigned int, struct pt_regs *, struct irqaction *);
98
99
100#endif /* _ALPHA_IRQ_H */