diff options
Diffstat (limited to 'kernel/include/linux/irqchip/metag.h')
-rw-r--r-- | kernel/include/linux/irqchip/metag.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/kernel/include/linux/irqchip/metag.h b/kernel/include/linux/irqchip/metag.h new file mode 100644 index 000000000..4ebdfb310 --- /dev/null +++ b/kernel/include/linux/irqchip/metag.h @@ -0,0 +1,24 @@ +/* + * 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_ */ |