1 /* 2 * arch/ppc/kernel/open_pic.h -- OpenPIC Interrupt Handling 3 * 4 * Copyright (C) 1997 Geert Uytterhoeven 5 * 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 8 * for more details. 9 * 10 */ 11 12 #ifndef _PPC64_KERNEL_OPEN_PIC_H 13 #define _PPC64_KERNEL_OPEN_PIC_H 14 15 #include <linux/config.h> 16 17 #define OPENPIC_SIZE 0x40000 18 19 /* OpenPIC IRQ controller structure */ 20 extern struct hw_interrupt_type open_pic; 21 22 /* OpenPIC IPI controller structure */ 23 #ifdef CONFIG_SMP 24 extern struct hw_interrupt_type open_pic_ipi; 25 #endif /* CONFIG_SMP */ 26 27 extern u_int OpenPIC_NumInitSenses; 28 extern u_char *OpenPIC_InitSenses; 29 extern void* OpenPIC_Addr; 30 31 /* Exported functions */ 32 extern void openpic_init(int, int, unsigned char *, int); 33 extern void openpic_request_IPIs(void); 34 extern void do_openpic_setup_cpu(void); 35 extern int openpic_get_irq(struct pt_regs *regs); 36 extern void openpic_init_processor(u_int cpumask); 37 extern void openpic_setup_ISU(int isu_num, unsigned long addr); 38 extern void openpic_cause_IPI(u_int ipi, u_int cpumask); 39 40 #endif /* _PPC64_KERNEL_OPEN_PIC_H */ 41