Paul Mackerras | 3b341c1 | 2005-10-11 09:28:16 +1000 | [diff] [blame] | 1 | #ifndef _ASM_POWERPC_I8259_H |
| 2 | #define _ASM_POWERPC_I8259_H |
Arnd Bergmann | 88ced03 | 2005-12-16 22:43:46 +0100 | [diff] [blame] | 3 | #ifdef __KERNEL__ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | |
| 5 | #include <linux/irq.h> |
| 6 | |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 7 | #ifdef CONFIG_PPC_MERGE |
| 8 | extern void i8259_init(struct device_node *node, unsigned long intack_addr); |
| 9 | extern unsigned int i8259_irq(struct pt_regs *regs); |
| 10 | #else |
Paul Mackerras | f9bd170 | 2005-10-26 16:47:42 +1000 | [diff] [blame] | 11 | extern void i8259_init(unsigned long intack_addr, int offset); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | extern int i8259_irq(struct pt_regs *regs); |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 13 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | |
Arnd Bergmann | 88ced03 | 2005-12-16 22:43:46 +0100 | [diff] [blame] | 15 | #endif /* __KERNEL__ */ |
Paul Mackerras | 3b341c1 | 2005-10-11 09:28:16 +1000 | [diff] [blame] | 16 | #endif /* _ASM_POWERPC_I8259_H */ |