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>
17 #define OPENPIC_SIZE 0x40000
19 /* OpenPIC IRQ controller structure */
20 extern struct hw_interrupt_type open_pic;
22 /* OpenPIC IPI controller structure */
24 extern struct hw_interrupt_type open_pic_ipi;
25 #endif /* CONFIG_SMP */
27 extern u_int OpenPIC_NumInitSenses;
28 extern u_char *OpenPIC_InitSenses;
29 extern void* OpenPIC_Addr;
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);
40 extern inline int openpic_to_irq(int irq)
42 return irq += NUM_8259_INTERRUPTS;
44 /*extern int open_pic_irq_offset;*/
45 #endif /* _PPC64_KERNEL_OPEN_PIC_H */