aboutsummaryrefslogtreecommitdiff
path: root/include/hw/irq.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/irq.h')
-rw-r--r--include/hw/irq.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/hw/irq.h b/include/hw/irq.h
index c861c1d..b301223 100644
--- a/include/hw/irq.h
+++ b/include/hw/irq.h
@@ -41,6 +41,17 @@ static inline void qemu_irq_pulse(qemu_irq irq)
void qemu_init_irq(IRQState *irq, qemu_irq_handler handler, void *opaque,
int n);
+/**
+ * qemu_init_irqs: Initialize an array of IRQs.
+ *
+ * @irq: Array of IRQs to initialize
+ * @count: number of IRQs to initialize
+ * @handler: handler to assign to each IRQ
+ * @opaque: opaque data to pass to @handler
+ */
+void qemu_init_irqs(IRQState irq[], size_t count,
+ qemu_irq_handler handler, void *opaque);
+
/* Returns an array of N IRQs. Each IRQ is assigned the argument handler and
* opaque data.
*/