blob: 9fe00eebdc8b8cd150c11f0b1c836b092dc39b0e [file] [log] [blame]
Vitaly Bordugf2a0bd32007-01-24 22:41:24 +03001#ifndef _PPC_KERNEL_MPC8xx_H
2#define _PPC_KERNEL_MPC8xx_H
3
4#include <linux/irq.h>
5#include <linux/interrupt.h>
6
Vitaly Bordugf2a0bd32007-01-24 22:41:24 +03007int mpc8xx_pic_init(void);
8unsigned int mpc8xx_get_irq(void);
9
Vitaly Bordug80128ff2007-07-09 11:37:35 -070010/*
11 * Some internal interrupt registers use an 8-bit mask for the interrupt
12 * level instead of a number.
13 */
14static inline uint mk_int_int_mask(uint mask)
15{
16 return (1 << (7 - (mask/2)));
17}
18
Vitaly Bordugf2a0bd32007-01-24 22:41:24 +030019#endif /* _PPC_KERNEL_PPC8xx_H */