1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2012 Imagination Technologies
6 #ifndef _LINUX_IRQCHIP_METAG_EXT_H_
7 #define _LINUX_IRQCHIP_METAG_EXT_H_
10 struct platform_device
;
12 /* called from core irq code at init */
13 int init_external_IRQ(void);
16 * called from SoC init_irq() callback to dynamically indicate the lack of
17 * HWMASKEXT registers.
19 void meta_intc_no_mask(void);
22 * These allow SoCs to specialise the interrupt controller from their init_irq
26 extern struct irq_chip meta_intc_edge_chip
;
27 extern struct irq_chip meta_intc_level_chip
;
29 /* this should be called in the mask callback */
30 void meta_intc_mask_irq_simple(struct irq_data
*data
);
31 /* this should be called in the unmask callback */
32 void meta_intc_unmask_irq_simple(struct irq_data
*data
);
34 #endif /* _LINUX_IRQCHIP_METAG_EXT_H_ */