diff options
author | Yoshinori Sato <ysato@users.sourceforge.jp> | 2008-02-23 18:23:59 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-23 20:12:16 -0500 |
commit | 5cc265a5de169d8e61ad5ba009610467e158fcec (patch) | |
tree | a0952af6ad79129a051655f67b022e911f8bbcd4 /include/asm-h8300/irq.h | |
parent | 4223cc34365e46f5e50d5496623367c552cd8a51 (diff) |
h8300: IRQ handling update
- add missing file and declare.
- remove unused file and macros.
- some cleanup.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-h8300/irq.h')
-rw-r--r-- | include/asm-h8300/irq.h | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/include/asm-h8300/irq.h b/include/asm-h8300/irq.h index 56eec28cc2c4..13d7c601cd0a 100644 --- a/include/asm-h8300/irq.h +++ b/include/asm-h8300/irq.h | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | #include <asm/ptrace.h> | 4 | #include <asm/ptrace.h> |
5 | 5 | ||
6 | #if defined(__H8300H__) | 6 | #if defined(CONFIG_CPU_H8300H) |
7 | #define NR_IRQS 64 | 7 | #define NR_IRQS 64 |
8 | #define EXT_IRQ0 12 | 8 | #define EXT_IRQ0 12 |
9 | #define EXT_IRQ1 13 | 9 | #define EXT_IRQ1 13 |
@@ -14,14 +14,6 @@ | |||
14 | #define EXT_IRQ6 18 | 14 | #define EXT_IRQ6 18 |
15 | #define EXT_IRQ7 19 | 15 | #define EXT_IRQ7 19 |
16 | #define EXT_IRQS 5 | 16 | #define EXT_IRQS 5 |
17 | |||
18 | #include <asm/regs306x.h> | ||
19 | #define h8300_clear_isr(irq) \ | ||
20 | do { \ | ||
21 | if (irq >= EXT_IRQ0 && irq <= EXT_IRQ5) \ | ||
22 | *(volatile unsigned char *)ISR &= ~(1 << (irq - EXT_IRQ0)); \ | ||
23 | } while(0) | ||
24 | |||
25 | #define IER_REGS *(volatile unsigned char *)IER | 17 | #define IER_REGS *(volatile unsigned char *)IER |
26 | #endif | 18 | #endif |
27 | #if defined(CONFIG_CPU_H8S) | 19 | #if defined(CONFIG_CPU_H8S) |
@@ -44,13 +36,6 @@ do { \ | |||
44 | #define EXT_IRQ15 31 | 36 | #define EXT_IRQ15 31 |
45 | #define EXT_IRQS 15 | 37 | #define EXT_IRQS 15 |
46 | 38 | ||
47 | #include <asm/regs267x.h> | ||
48 | #define h8300_clear_isr(irq) \ | ||
49 | do { \ | ||
50 | if (irq >= EXT_IRQ0 && irq <= EXT_IRQ15) \ | ||
51 | *(volatile unsigned short *)ISR &= ~(1 << (irq - EXT_IRQ0)); \ | ||
52 | } while(0) | ||
53 | |||
54 | #define IER_REGS *(volatile unsigned short *)IER | 39 | #define IER_REGS *(volatile unsigned short *)IER |
55 | #endif | 40 | #endif |
56 | 41 | ||
@@ -59,4 +44,6 @@ static __inline__ int irq_canonicalize(int irq) | |||
59 | return irq; | 44 | return irq; |
60 | } | 45 | } |
61 | 46 | ||
47 | typedef void (*h8300_vector)(void); | ||
48 | |||
62 | #endif /* _H8300_IRQ_H_ */ | 49 | #endif /* _H8300_IRQ_H_ */ |