aboutsummaryrefslogtreecommitdiff
path: root/hw/irq.h
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2012-10-16 03:57:21 +0200
committerAndreas Färber <afaerber@suse.de>2012-11-15 01:57:02 +0100
commit5202ef942fb986011a31d9366fbf93a56f0056e4 (patch)
treed7dc9a8bee1cbce041f0bfae8c320e23d472f731 /hw/irq.h
parent04509ad939a7878b487b29e3500b79b5e2c1de35 (diff)
Move qemu_irq typedef out of qemu-common.h
It's necessary for making CPU child of DEVICE without causing circular header deps. Signed-off-by: Igor Mammedov <imammedo@redhat.com> [ehabkost: re-added the typedef to hw/irq.h after rebasing] Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/irq.h')
-rw-r--r--hw/irq.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/irq.h b/hw/irq.h
index e640c105e7..610e6b7623 100644
--- a/hw/irq.h
+++ b/hw/irq.h
@@ -3,6 +3,8 @@
/* Generic IRQ/GPIO pin infrastructure. */
+typedef struct IRQState *qemu_irq;
+
typedef void (*qemu_irq_handler)(void *opaque, int n, int level);
void qemu_set_irq(qemu_irq irq, int level);