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