diff options
author | Avi Kivity <avi@redhat.com> | 2011-09-18 15:58:26 +0300 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-09-23 11:51:05 -0500 |
commit | eca6713416033687d37a6051c121b75310a5954d (patch) | |
tree | 79557ca07b0d21f73ff43c4b7258e47b5ec971dc /hw/irq.h | |
parent | 174fe83a847b88369fbd4ea23710128e08613e6a (diff) | |
download | qemu-eca6713416033687d37a6051c121b75310a5954d.tar.gz qemu-eca6713416033687d37a6051c121b75310a5954d.tar.bz2 qemu-eca6713416033687d37a6051c121b75310a5954d.zip |
irq: introduce qemu_irq_proxy()
In some cases we have a circular dependency involving irqs - the irq
controller depends on a bus, which in turn depends on the irq controller.
Add qemu_irq_proxy() which acts as a passthrough, except that the target
irq may be set later on.
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/irq.h')
-rw-r--r-- | hw/irq.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -33,4 +33,9 @@ qemu_irq qemu_irq_invert(qemu_irq irq); /* Returns a new IRQ which feeds into both the passed IRQs */ qemu_irq qemu_irq_split(qemu_irq irq1, qemu_irq irq2); +/* Returns a new IRQ set which connects 1:1 to another IRQ set, which + * may be set later. + */ +qemu_irq *qemu_irq_proxy(qemu_irq **target, int n); + #endif |