Linux 4.6-rc6
[cris-mirror.git] / include / linux / irqchip / metag.h
blob4ebdfb3101ab8a7f311b1ad8c5b09299c5b57852
1 /*
2 * Copyright (C) 2011 Imagination Technologies
3 */
5 #ifndef _LINUX_IRQCHIP_METAG_H_
6 #define _LINUX_IRQCHIP_METAG_H_
8 #include <linux/errno.h>
10 #ifdef CONFIG_METAG_PERFCOUNTER_IRQS
11 extern int init_internal_IRQ(void);
12 extern int internal_irq_map(unsigned int hw);
13 #else
14 static inline int init_internal_IRQ(void)
16 return 0;
18 static inline int internal_irq_map(unsigned int hw)
20 return -EINVAL;
22 #endif
24 #endif /* _LINUX_IRQCHIP_METAG_H_ */