[ALSA] Merge ad1816a-lib module to ad1816a
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / asm-m68knommu / irq.h
bloba08fa9b958dab2cc122a5ca5e755454c5bd34495
1 #ifndef _M68K_IRQ_H_
2 #define _M68K_IRQ_H_
4 #include <linux/config.h>
5 #include <asm/ptrace.h>
7 #ifdef CONFIG_COLDFIRE
8 /*
9 * On the ColdFire we keep track of all vectors. That way drivers
10 * can register whatever vector number they wish, and we can deal
11 * with it.
13 #define SYS_IRQS 256
14 #define NR_IRQS SYS_IRQS
16 #else
19 * # of m68k interrupts
21 #define SYS_IRQS 8
22 #define NR_IRQS (24+SYS_IRQS)
24 #endif /* CONFIG_COLDFIRE */
27 * Interrupt source definitions
28 * General interrupt sources are the level 1-7.
29 * Adding an interrupt service routine for one of these sources
30 * results in the addition of that routine to a chain of routines.
31 * Each one is called in succession. Each individual interrupt
32 * service routine should determine if the device associated with
33 * that routine requires service.
36 #define IRQ1 (1) /* level 1 interrupt */
37 #define IRQ2 (2) /* level 2 interrupt */
38 #define IRQ3 (3) /* level 3 interrupt */
39 #define IRQ4 (4) /* level 4 interrupt */
40 #define IRQ5 (5) /* level 5 interrupt */
41 #define IRQ6 (6) /* level 6 interrupt */
42 #define IRQ7 (7) /* level 7 interrupt (non-maskable) */
45 * Machine specific interrupt sources.
47 * Adding an interrupt service routine for a source with this bit
48 * set indicates a special machine specific interrupt source.
49 * The machine specific files define these sources.
51 * The IRQ_MACHSPEC bit is now gone - the only thing it did was to
52 * introduce unnecessary overhead.
54 * All interrupt handling is actually machine specific so it is better
55 * to use function pointers, as used by the Sparc port, and select the
56 * interrupt handling functions when initializing the kernel. This way
57 * we save some unnecessary overhead at run-time.
58 * 01/11/97 - Jes
61 extern void (*mach_enable_irq)(unsigned int);
62 extern void (*mach_disable_irq)(unsigned int);
65 * various flags for request_irq() - the Amiga now uses the standard
66 * mechanism like all other architectures - SA_INTERRUPT and SA_SHIRQ
67 * are your friends.
69 #define IRQ_FLG_LOCK (0x0001) /* handler is not replaceable */
70 #define IRQ_FLG_REPLACE (0x0002) /* replace existing handler */
71 #define IRQ_FLG_FAST (0x0004)
72 #define IRQ_FLG_SLOW (0x0008)
73 #define IRQ_FLG_STD (0x8000) /* internally used */
75 #ifdef CONFIG_M68360
77 #define CPM_INTERRUPT IRQ4
79 /* see MC68360 User's Manual, p. 7-377 */
80 #define CPM_VECTOR_BASE 0x04 /* 3 MSbits of CPM vector */
82 #endif /* CONFIG_M68360 */
85 * Some drivers want these entry points
87 #define enable_irq(x) (mach_enable_irq ? (*mach_enable_irq)(x) : 0)
88 #define disable_irq(x) (mach_disable_irq ? (*mach_disable_irq)(x) : 0)
90 #define enable_irq_nosync(x) enable_irq(x)
91 #define disable_irq_nosync(x) disable_irq(x)
93 struct irqaction;
94 struct pt_regs;
95 int handle_IRQ_event(unsigned int, struct pt_regs *, struct irqaction *);
97 #endif /* _M68K_IRQ_H_ */