GNU Linux-libre 4.14.313-gnu1
[releases.git] / include / linux / irqchip / metag.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (C) 2011 Imagination Technologies
4  */
5
6 #ifndef _LINUX_IRQCHIP_METAG_H_
7 #define _LINUX_IRQCHIP_METAG_H_
8
9 #include <linux/errno.h>
10
11 #ifdef CONFIG_METAG_PERFCOUNTER_IRQS
12 extern int init_internal_IRQ(void);
13 extern int internal_irq_map(unsigned int hw);
14 #else
15 static inline int init_internal_IRQ(void)
16 {
17         return 0;
18 }
19 static inline int internal_irq_map(unsigned int hw)
20 {
21         return -EINVAL;
22 }
23 #endif
24
25 #endif /* _LINUX_IRQCHIP_METAG_H_ */