diff options
Diffstat (limited to 'arch/powerpc/sysdev/mpc8xx_pic.h')
-rw-r--r-- | arch/powerpc/sysdev/mpc8xx_pic.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/mpc8xx_pic.h b/arch/powerpc/sysdev/mpc8xx_pic.h index afa2ee6717c1..9fe00eebdc8b 100644 --- a/arch/powerpc/sysdev/mpc8xx_pic.h +++ b/arch/powerpc/sysdev/mpc8xx_pic.h | |||
@@ -4,9 +4,16 @@ | |||
4 | #include <linux/irq.h> | 4 | #include <linux/irq.h> |
5 | #include <linux/interrupt.h> | 5 | #include <linux/interrupt.h> |
6 | 6 | ||
7 | extern struct hw_interrupt_type mpc8xx_pic; | ||
8 | |||
9 | int mpc8xx_pic_init(void); | 7 | int mpc8xx_pic_init(void); |
10 | unsigned int mpc8xx_get_irq(void); | 8 | unsigned int mpc8xx_get_irq(void); |
11 | 9 | ||
10 | /* | ||
11 | * Some internal interrupt registers use an 8-bit mask for the interrupt | ||
12 | * level instead of a number. | ||
13 | */ | ||
14 | static inline uint mk_int_int_mask(uint mask) | ||
15 | { | ||
16 | return (1 << (7 - (mask/2))); | ||
17 | } | ||
18 | |||
12 | #endif /* _PPC_KERNEL_PPC8xx_H */ | 19 | #endif /* _PPC_KERNEL_PPC8xx_H */ |