summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/irqchip/irq-gic-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/irqchip/irq-gic-common.h')
-rw-r--r--kernel/drivers/irqchip/irq-gic-common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/drivers/irqchip/irq-gic-common.h b/kernel/drivers/irqchip/irq-gic-common.h
index 35a988477..fff697db8 100644
--- a/kernel/drivers/irqchip/irq-gic-common.h
+++ b/kernel/drivers/irqchip/irq-gic-common.h
@@ -20,10 +20,19 @@
#include <linux/of.h>
#include <linux/irqdomain.h>
+struct gic_quirk {
+ const char *desc;
+ void (*init)(void *data);
+ u32 iidr;
+ u32 mask;
+};
+
int gic_configure_irq(unsigned int irq, unsigned int type,
void __iomem *base, void (*sync_access)(void));
void gic_dist_config(void __iomem *base, int gic_irqs,
void (*sync_access)(void));
void gic_cpu_config(void __iomem *base, void (*sync_access)(void));
+void gic_enable_quirks(u32 iidr, const struct gic_quirk *quirks,
+ void *data);
#endif /* _IRQ_GIC_COMMON_H */