aboutsummaryrefslogtreecommitdiff
path: root/hw/irq.h
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-05 03:23:39 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-05 03:23:39 +0000
commit106627d0a036f9ebe523c648686b087eb8888355 (patch)
tree42d19914a690e0bd84f4b41843d556697e7582d1 /hw/irq.h
parent577390ff4b7ca39f3780cbfd67d02bff3d4bf8e5 (diff)
Rework OMAP1 interrupt handling to allow multiple interrupt banks, by Lauro Ramos Venancio.
Add irq pulse shortcut, by Lauro Ramos Venancio. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3774 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/irq.h')
-rw-r--r--hw/irq.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/irq.h b/hw/irq.h
index d8195d520c..0880ad21b0 100644
--- a/hw/irq.h
+++ b/hw/irq.h
@@ -19,6 +19,12 @@ static inline void qemu_irq_lower(qemu_irq irq)
qemu_set_irq(irq, 0);
}
+static inline void qemu_irq_pulse(qemu_irq irq)
+{
+ qemu_set_irq(irq, 1);
+ qemu_set_irq(irq, 0);
+}
+
/* Returns an array of N IRQs. */
qemu_irq *qemu_allocate_irqs(qemu_irq_handler handler, void *opaque, int n);