2 * arch/ppc/kernel/open_pic.h -- OpenPIC Interrupt Handling
4 * Copyright (C) 1997 Geert Uytterhoeven
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file COPYING in the main directory of this archive
12 #ifndef _PPC64_KERNEL_OPEN_PIC_H
13 #define _PPC64_KERNEL_OPEN_PIC_H
15 #include <linux/config.h>
16 #include <linux/cpumask.h>
17 #include <linux/irq.h>
19 #define OPENPIC_SIZE 0x40000
21 /* OpenPIC IRQ controller structure */
22 extern struct hw_interrupt_type open_pic;
24 /* OpenPIC IPI controller structure */
26 extern struct hw_interrupt_type open_pic_ipi;
27 #endif /* CONFIG_SMP */
29 extern u_int OpenPIC_NumInitSenses;
30 extern u_char *OpenPIC_InitSenses;
31 extern void* OpenPIC_Addr;
33 /* Exported functions */
34 extern void openpic_init(int, int, unsigned char *, int);
35 extern void openpic_request_IPIs(void);
36 extern void do_openpic_setup_cpu(void);
37 extern int openpic_get_irq(struct pt_regs *regs);
38 extern void openpic_init_processor(u_int cpumask);
39 extern void openpic_setup_ISU(int isu_num, unsigned long addr);
40 extern void openpic_cause_IPI(u_int ipi, u_int cpumask);
42 #endif /* _PPC64_KERNEL_OPEN_PIC_H */