metag.h 446 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (C) 2011 Imagination Technologies
  3. */
  4. #ifndef _LINUX_IRQCHIP_METAG_H_
  5. #define _LINUX_IRQCHIP_METAG_H_
  6. #include <linux/errno.h>
  7. #ifdef CONFIG_METAG_PERFCOUNTER_IRQS
  8. extern int init_internal_IRQ(void);
  9. extern int internal_irq_map(unsigned int hw);
  10. #else
  11. static inline int init_internal_IRQ(void)
  12. {
  13. return 0;
  14. }
  15. static inline int internal_irq_map(unsigned int hw)
  16. {
  17. return -EINVAL;
  18. }
  19. #endif
  20. #endif /* _LINUX_IRQCHIP_METAG_H_ */