summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndreas Färber2014-06-18 09:57:08 +0200
committerAndreas Färber2014-07-01 04:12:48 +0200
commit615c4895703164134379b68214130dd502721174 (patch)
tree1f45ac3f2700376c249658db152c083fdff71754 /include
parentirq: Allocate IRQs individually (diff)
downloadqemu-615c4895703164134379b68214130dd502721174.tar.gz
qemu-615c4895703164134379b68214130dd502721174.tar.xz
qemu-615c4895703164134379b68214130dd502721174.zip
irq: Slim conversion of qemu_irq to QOM
As a prequel to any big Pin refactoring plans, do an in-place conversion of qemu_irq to an Object, so that we can reference it in link<> properties. Signed-off-by: Andreas Färber <afaerber@suse.de> [ PC Changes: * Removed array-alloctor ref counting logic (limit changes just to * single IRQ allocator) * Removed WIP marking from subject line ] Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/hw/irq.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/irq.h b/include/hw/irq.h
index 9f34c96aab..6f874f5ac0 100644
--- a/include/hw/irq.h
+++ b/include/hw/irq.h
@@ -3,6 +3,8 @@
/* Generic IRQ/GPIO pin infrastructure. */
+#define TYPE_IRQ "irq"
+
typedef struct IRQState *qemu_irq;
typedef void (*qemu_irq_handler)(void *opaque, int n, int level);