Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / include / linux / irqchip / metag.h
blob0adcf449e4e4ca750469c19e61b7dd79c2097859
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2011 Imagination Technologies
4 */
6 #ifndef _LINUX_IRQCHIP_METAG_H_
7 #define _LINUX_IRQCHIP_METAG_H_
9 #include <linux/errno.h>
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)
17 return 0;
19 static inline int internal_irq_map(unsigned int hw)
21 return -EINVAL;
23 #endif
25 #endif /* _LINUX_IRQCHIP_METAG_H_ */