From 106627d0a036f9ebe523c648686b087eb8888355 Mon Sep 17 00:00:00 2001 From: balrog Date: Wed, 5 Dec 2007 03:23:39 +0000 Subject: 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 --- hw/irq.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hw/irq.h') 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); -- cgit v1.2.1