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