18c2ecf20Sopenharmony_ci#ifndef _PPC_KERNEL_MPC8xx_H 28c2ecf20Sopenharmony_ci#define _PPC_KERNEL_MPC8xx_H 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci#include <linux/irq.h> 58c2ecf20Sopenharmony_ci#include <linux/interrupt.h> 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ciint mpc8xx_pic_init(void); 88c2ecf20Sopenharmony_ciunsigned int mpc8xx_get_irq(void); 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci/* 118c2ecf20Sopenharmony_ci * Some internal interrupt registers use an 8-bit mask for the interrupt 128c2ecf20Sopenharmony_ci * level instead of a number. 138c2ecf20Sopenharmony_ci */ 148c2ecf20Sopenharmony_cistatic inline uint mk_int_int_mask(uint mask) 158c2ecf20Sopenharmony_ci{ 168c2ecf20Sopenharmony_ci return (1 << (7 - (mask/2))); 178c2ecf20Sopenharmony_ci} 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#endif /* _PPC_KERNEL_PPC8xx_H */ 20