diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-12-05 03:23:39 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-12-05 03:23:39 +0000 |
commit | 106627d0a036f9ebe523c648686b087eb8888355 (patch) | |
tree | 42d19914a690e0bd84f4b41843d556697e7582d1 /hw/irq.h | |
parent | 577390ff4b7ca39f3780cbfd67d02bff3d4bf8e5 (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.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |