aboutsummaryrefslogtreecommitdiff
path: root/hw/irq.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2011-02-21 20:57:52 +0000
committerAurelien Jarno <aurelien@aurel32.net>2011-03-06 19:01:31 +0100
commit9793212bb02b9fdc2de188a42b93b17ca2689c9a (patch)
treef0015b4cc4481c063ba17eba30e035f83bf619c4 /hw/irq.h
parent7063f49f59807ac6f32c69281cf956d14d6c0310 (diff)
downloadqemu-9793212bb02b9fdc2de188a42b93b17ca2689c9a.zip
qemu-9793212bb02b9fdc2de188a42b93b17ca2689c9a.tar.gz
qemu-9793212bb02b9fdc2de188a42b93b17ca2689c9a.tar.bz2
hw/irq: Add qemu_irq_split() so one GPIO output can feed two inputs
Add a qemu_irq_split() function which allows a board to wire a single GPIO output up to two GPIO inputs. This is needed for realview boards, where the MMC card status is visible both in a system register and via a PL061 GPIO module. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw/irq.h')
-rw-r--r--hw/irq.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/irq.h b/hw/irq.h
index f7849ed..389ed7a 100644
--- a/hw/irq.h
+++ b/hw/irq.h
@@ -30,4 +30,7 @@ void qemu_free_irqs(qemu_irq *s);
/* Returns a new IRQ with opposite polarity. */
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);
+
#endif