Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[wrt350n-kernel.git] / include / asm-h8300 / irq.h
bloba631e1c150224a0c2d85867a23daa7dfe19b4065
1 #ifndef _H8300_IRQ_H_
2 #define _H8300_IRQ_H_
4 #include <asm/ptrace.h>
6 <<<<<<< HEAD:include/asm-h8300/irq.h
7 #if defined(__H8300H__)
8 =======
9 #if defined(CONFIG_CPU_H8300H)
10 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:include/asm-h8300/irq.h
11 #define NR_IRQS 64
12 #define EXT_IRQ0 12
13 #define EXT_IRQ1 13
14 #define EXT_IRQ2 14
15 #define EXT_IRQ3 15
16 #define EXT_IRQ4 16
17 #define EXT_IRQ5 17
18 #define EXT_IRQ6 18
19 #define EXT_IRQ7 19
20 #define EXT_IRQS 5
21 <<<<<<< HEAD:include/asm-h8300/irq.h
23 #include <asm/regs306x.h>
24 #define h8300_clear_isr(irq) \
25 do { \
26 if (irq >= EXT_IRQ0 && irq <= EXT_IRQ5) \
27 *(volatile unsigned char *)ISR &= ~(1 << (irq - EXT_IRQ0)); \
28 } while(0)
30 =======
31 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:include/asm-h8300/irq.h
32 #define IER_REGS *(volatile unsigned char *)IER
33 #endif
34 #if defined(CONFIG_CPU_H8S)
35 #define NR_IRQS 128
36 #define EXT_IRQ0 16
37 #define EXT_IRQ1 17
38 #define EXT_IRQ2 18
39 #define EXT_IRQ3 19
40 #define EXT_IRQ4 20
41 #define EXT_IRQ5 21
42 #define EXT_IRQ6 22
43 #define EXT_IRQ7 23
44 #define EXT_IRQ8 24
45 #define EXT_IRQ9 25
46 #define EXT_IRQ10 26
47 #define EXT_IRQ11 27
48 #define EXT_IRQ12 28
49 #define EXT_IRQ13 29
50 #define EXT_IRQ14 30
51 #define EXT_IRQ15 31
52 #define EXT_IRQS 15
54 <<<<<<< HEAD:include/asm-h8300/irq.h
55 #include <asm/regs267x.h>
56 #define h8300_clear_isr(irq) \
57 do { \
58 if (irq >= EXT_IRQ0 && irq <= EXT_IRQ15) \
59 *(volatile unsigned short *)ISR &= ~(1 << (irq - EXT_IRQ0)); \
60 } while(0)
62 =======
63 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:include/asm-h8300/irq.h
64 #define IER_REGS *(volatile unsigned short *)IER
65 #endif
67 static __inline__ int irq_canonicalize(int irq)
69 return irq;
72 <<<<<<< HEAD:include/asm-h8300/irq.h
73 =======
74 typedef void (*h8300_vector)(void);
76 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:include/asm-h8300/irq.h
77 #endif /* _H8300_IRQ_H_ */