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/smc91c111.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/smc91c111.c')
-rw-r--r-- | hw/smc91c111.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/hw/smc91c111.c b/hw/smc91c111.c index 855a9b1f1d..d90ab32f65 100644 --- a/hw/smc91c111.c +++ b/hw/smc91c111.c @@ -24,8 +24,7 @@ typedef struct { uint16_t gpr; uint16_t ptr; uint16_t ercv; - void *pic; - int irq; + qemu_irq irq; int bank; int packet_num; int tx_alloc; @@ -86,7 +85,7 @@ static void smc91c111_update(smc91c111_state *s) if (s->tx_fifo_done_len != 0) s->int_level |= INT_TX; level = (s->int_level & s->int_mask) != 0; - pic_set_irq_new(s->pic, s->irq, level); + qemu_set_irq(s->irq, level); } /* Try to allocate a packet. Returns 0x80 on failure. */ @@ -693,7 +692,7 @@ static CPUWriteMemoryFunc *smc91c111_writefn[] = { smc91c111_writel }; -void smc91c111_init(NICInfo *nd, uint32_t base, void *pic, int irq) +void smc91c111_init(NICInfo *nd, uint32_t base, qemu_irq irq) { smc91c111_state *s; int iomemtype; @@ -703,7 +702,6 @@ void smc91c111_init(NICInfo *nd, uint32_t base, void *pic, int irq) smc91c111_writefn, s); cpu_register_physical_memory(base, 16, iomemtype); s->base = base; - s->pic = pic; s->irq = irq; memcpy(s->macaddr, nd->macaddr, 6); |