diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-04-07 18:14:41 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-04-07 18:14:41 +0000 |
commit | d537cf6c8624b27ce2b63431d2f8937f6356f652 (patch) | |
tree | d7173d79977b4426b2ff225b35c839c8a2e4a215 /hw/i8254.c | |
parent | b6e27ab8b12ef6075d85fc505f821643804a3a79 (diff) |
Unify IRQ handling.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2635 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/i8254.c')
-rw-r--r-- | hw/i8254.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/i8254.c b/hw/i8254.c index a4097632eb..f0b41d75c9 100644 --- a/hw/i8254.c +++ b/hw/i8254.c @@ -47,7 +47,7 @@ typedef struct PITChannelState { /* irq handling */ int64_t next_transition_time; QEMUTimer *irq_timer; - int irq; + qemu_irq irq; } PITChannelState; struct PITState { @@ -366,7 +366,7 @@ static void pit_irq_timer_update(PITChannelState *s, int64_t current_time) return; expire_time = pit_get_next_transition_time(s, current_time); irq_level = pit_get_out1(s, current_time); - pic_set_irq(s->irq, irq_level); + qemu_set_irq(s->irq, irq_level); #ifdef DEBUG_PIT printf("irq_level=%d next_delay=%f\n", irq_level, @@ -460,7 +460,7 @@ static void pit_reset(void *opaque) } } -PITState *pit_init(int base, int irq) +PITState *pit_init(int base, qemu_irq irq) { PITState *pit = &pit_state; PITChannelState *s; |