clean
[linux-2.4.21-pre4.git] / include / asm-ppc / ppc4xx_pic.h
1 /*
2  * BK Id: SCCS/s.ppc4xx_pic.h 1.14 08/13/02 22:03:43 paulus
3  */
4 /*
5  *
6  *    Copyright (c) 1999 Grant Erickson <grant@lcse.umn.edu>
7  *
8  *    Module name: ppc4xx_pic.h
9  *
10  *    Description:
11  *      Interrupt controller driver for PowerPC 4xx-based processors.
12  *
13  *      July 17, 2002 - Armin
14  *      added sense and polarity ability to 4xx
15  */
16
17 #ifndef __PPC4XX_PIC_H__
18 #define __PPC4XX_PIC_H__
19
20 #include <linux/config.h>
21 #include <linux/irq.h>
22
23 /* External Global Variables */
24 /*
25  * For the IBM4xxPIC_InitSenses table, we include both the sense
26  * and polarity in one number and mask out the value we want
27  * later on. -- Tom
28  */
29 #define IBM4xx_IRQ_SNS_MASK             0x1
30 #define IBM4xx_IRQ_SNS_LVL              0x0
31 #define IBM4xx_IRQ_SNS_EDG              0x1
32
33 #define IBM4xx_IRQ_POL_MASK             0x2
34 #define IBM4xx_IRQ_POL_POS              0x2
35 #define IBM4xx_IRQ_POL_NEG              0x0
36
37 extern struct hw_interrupt_type *ppc4xx_pic;
38 extern unsigned int ibm4xxPIC_NumInitSenses;
39 extern unsigned char *ibm4xxPIC_InitSenses;
40
41 /* Function Prototypes */
42
43 extern void ppc4xx_pic_init(void);
44 extern int ppc4xx_pic_get_irq(struct pt_regs *regs);
45
46 #endif                          /* __PPC4XX_PIC_H__ */