mpc8xx_pic.h 401 B

1234567891011121314151617181920
  1. #ifndef _PPC_KERNEL_MPC8xx_H
  2. #define _PPC_KERNEL_MPC8xx_H
  3. #include <linux/irq.h>
  4. #include <linux/interrupt.h>
  5. int mpc8xx_pic_init(void);
  6. unsigned int mpc8xx_get_irq(void);
  7. /*
  8. * Some internal interrupt registers use an 8-bit mask for the interrupt
  9. * level instead of a number.
  10. */
  11. static inline uint mk_int_int_mask(uint mask)
  12. {
  13. return (1 << (7 - (mask/2)));
  14. }
  15. #endif /* _PPC_KERNEL_PPC8xx_H */