| #include <asm/regs306x.h> |
| #define h8300_clear_isr(irq) \ |
| if (irq >= EXT_IRQ0 && irq <= EXT_IRQ5) \ |
| *(volatile unsigned char *)ISR &= ~(1 << (irq - EXT_IRQ0)); \ |
| #define IER_REGS *(volatile unsigned char *)IER |
| #if defined(CONFIG_CPU_H8S) |
| #include <asm/regs267x.h> |
| #define h8300_clear_isr(irq) \ |
| if (irq >= EXT_IRQ0 && irq <= EXT_IRQ15) \ |
| *(volatile unsigned short *)ISR &= ~(1 << (irq - EXT_IRQ0)); \ |
| #define IER_REGS *(volatile unsigned short *)IER |
| static __inline__ int irq_canonicalize(int irq) |
| extern void enable_irq(unsigned int); |
| extern void disable_irq(unsigned int); |
| * Some drivers want these entry points |
| #define enable_irq_nosync(x) enable_irq(x) |
| #define disable_irq_nosync(x) disable_irq(x) |
| int handle_IRQ_event(unsigned int, struct pt_regs *, struct irqaction *); |
| #endif /* _H8300_IRQ_H_ */ |