ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / arch / ppc64 / kernel / open_pic.h
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 #include <linux/cpumask.h>
17 #include <linux/irq.h>
18
19 #define OPENPIC_SIZE    0x40000
20
21 /* OpenPIC IRQ controller structure */
22 extern struct hw_interrupt_type open_pic;
23
24 /* OpenPIC IPI controller structure */
25 #ifdef CONFIG_SMP
26 extern struct hw_interrupt_type open_pic_ipi;
27 #endif /* CONFIG_SMP */
28
29 extern u_int OpenPIC_NumInitSenses;
30 extern u_char *OpenPIC_InitSenses;
31 extern void* OpenPIC_Addr;
32
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);
41
42 #endif /* _PPC64_KERNEL_OPEN_PIC_H */