162306a36Sopenharmony_ci#ifndef _PPC_KERNEL_MPC8xx_H 262306a36Sopenharmony_ci#define _PPC_KERNEL_MPC8xx_H 362306a36Sopenharmony_ci 462306a36Sopenharmony_ci#include <linux/irq.h> 562306a36Sopenharmony_ci#include <linux/interrupt.h> 662306a36Sopenharmony_ci 762306a36Sopenharmony_civoid mpc8xx_pic_init(void); 862306a36Sopenharmony_ciunsigned int mpc8xx_get_irq(void); 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci/* 1162306a36Sopenharmony_ci * Some internal interrupt registers use an 8-bit mask for the interrupt 1262306a36Sopenharmony_ci * level instead of a number. 1362306a36Sopenharmony_ci */ 1462306a36Sopenharmony_cistatic inline uint mk_int_int_mask(uint mask) 1562306a36Sopenharmony_ci{ 1662306a36Sopenharmony_ci return (1 << (7 - (mask/2))); 1762306a36Sopenharmony_ci} 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci#endif /* _PPC_KERNEL_PPC8xx_H */ 20