diff options
| author | Gerd Hoffmann <kraxel@redhat.com> | 2009-09-10 11:43:27 +0200 |
|---|---|---|
| committer | malc <av1474@comtv.ru> | 2009-09-10 19:47:59 +0400 |
| commit | 2e15e23b8a3c5da5576b7ea8631c956381eea0d5 (patch) | |
| tree | 6b58c916a271c2fa707f39210a71094a4cfafe06 /hw/isa.h | |
| parent | 86c861578453b544fa67ad50d28c4460bee068c5 (diff) | |
| download | focaccia-qemu-2e15e23b8a3c5da5576b7ea8631c956381eea0d5.tar.gz focaccia-qemu-2e15e23b8a3c5da5576b7ea8631c956381eea0d5.zip | |
qdev: simplify isa irq assignments
isa-bus owns the isa irqs now, so it can hand them out directly. There is no need for the separate isa_connect_irqs step, drop it. Also hard-code isa interrupts which can't be configured anyway. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/isa.h')
| -rw-r--r-- | hw/isa.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/hw/isa.h b/hw/isa.h index 24c5c66ca5..4582ff90c0 100644 --- a/hw/isa.h +++ b/hw/isa.h @@ -13,7 +13,6 @@ typedef struct ISADeviceInfo ISADeviceInfo; struct ISADevice { DeviceState qdev; uint32_t isairq[2]; - qemu_irq *irqs[2]; int nirqs; }; @@ -25,11 +24,10 @@ struct ISADeviceInfo { ISABus *isa_bus_new(DeviceState *dev); void isa_bus_irqs(qemu_irq *irqs); -void isa_connect_irq(ISADevice *dev, int devirq, int isairq); qemu_irq isa_reserve_irq(int isairq); -void isa_init_irq(ISADevice *dev, qemu_irq *p); +void isa_init_irq(ISADevice *dev, qemu_irq *p, int isairq); void isa_qdev_register(ISADeviceInfo *info); -ISADevice *isa_create_simple(const char *name, uint32_t irq, uint32_t irq2); +ISADevice *isa_create_simple(const char *name); extern target_phys_addr_t isa_mem_base; |