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); |
Olaf Hering | 35a84c2 | 2006-10-07 22:08:26 +1000 | [diff] [blame] | 9 | extern unsigned int i8259_irq(void); |
Benjamin Herrenschmidt | f4d4c35 | 2006-10-25 13:22:27 +1000 | [diff] [blame] | 10 | extern struct irq_host *i8259_get_host(void); |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 11 | #else |
Paul Mackerras | f9bd170 | 2005-10-26 16:47:42 +1000 | [diff] [blame] | 12 | extern void i8259_init(unsigned long intack_addr, int offset); |
Olaf Hering | 35a84c2 | 2006-10-07 22:08:26 +1000 | [diff] [blame] | 13 | extern int i8259_irq(void); |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 14 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | |
Arnd Bergmann | 88ced03 | 2005-12-16 22:43:46 +0100 | [diff] [blame] | 16 | #endif /* __KERNEL__ */ |
Paul Mackerras | 3b341c1 | 2005-10-11 09:28:16 +1000 | [diff] [blame] | 17 | #endif /* _ASM_POWERPC_I8259_H */ |