blob: db1362f8c603c2576dffefbe6e23a8c410057984 [file] [log] [blame]
Paul Mackerras3b341c12005-10-11 09:28:16 +10001#ifndef _ASM_POWERPC_I8259_H
2#define _ASM_POWERPC_I8259_H
Arnd Bergmann88ced032005-12-16 22:43:46 +01003#ifdef __KERNEL__
Linus Torvalds1da177e2005-04-16 15:20:36 -07004
5#include <linux/irq.h>
6
Benjamin Herrenschmidt0ebfff12006-07-03 21:36:01 +10007#ifdef CONFIG_PPC_MERGE
8extern void i8259_init(struct device_node *node, unsigned long intack_addr);
Olaf Hering35a84c22006-10-07 22:08:26 +10009extern unsigned int i8259_irq(void);
Benjamin Herrenschmidtf4d4c352006-10-25 13:22:27 +100010extern struct irq_host *i8259_get_host(void);
Benjamin Herrenschmidt0ebfff12006-07-03 21:36:01 +100011#else
Paul Mackerrasf9bd1702005-10-26 16:47:42 +100012extern void i8259_init(unsigned long intack_addr, int offset);
Olaf Hering35a84c22006-10-07 22:08:26 +100013extern int i8259_irq(void);
Benjamin Herrenschmidt0ebfff12006-07-03 21:36:01 +100014#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070015
Arnd Bergmann88ced032005-12-16 22:43:46 +010016#endif /* __KERNEL__ */
Paul Mackerras3b341c12005-10-11 09:28:16 +100017#endif /* _ASM_POWERPC_I8259_H */