From d537cf6c8624b27ce2b63431d2f8937f6356f652 Mon Sep 17 00:00:00 2001 From: pbrook Date: Sat, 7 Apr 2007 18:14:41 +0000 Subject: Unify IRQ handling. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2635 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/parallel.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hw/parallel.c') diff --git a/hw/parallel.c b/hw/parallel.c index d751d7a3ae..c927ddd965 100644 --- a/hw/parallel.c +++ b/hw/parallel.c @@ -65,7 +65,7 @@ struct ParallelState { uint8_t datar; uint8_t status; uint8_t control; - int irq; + qemu_irq irq; int irq_pending; CharDriverState *chr; int hw_driver; @@ -76,9 +76,9 @@ struct ParallelState { static void parallel_update_irq(ParallelState *s) { if (s->irq_pending) - pic_set_irq(s->irq, 1); + qemu_irq_raise(s->irq); else - pic_set_irq(s->irq, 0); + qemu_irq_lower(s->irq); } static void @@ -401,7 +401,7 @@ static uint32_t parallel_ioport_ecp_read(void *opaque, uint32_t addr) } /* If fd is zero, it means that the parallel device uses the console */ -ParallelState *parallel_init(int base, int irq, CharDriverState *chr) +ParallelState *parallel_init(int base, qemu_irq irq, CharDriverState *chr) { ParallelState *s; uint8_t dummy; -- cgit v1.2.3