diff options
author | Gerd Hoffmann | 2009-09-10 11:43:27 +0200 |
---|---|---|
committer | malc | 2009-09-10 17:47:59 +0200 |
commit | 2e15e23b8a3c5da5576b7ea8631c956381eea0d5 (patch) | |
tree | 6b58c916a271c2fa707f39210a71094a4cfafe06 /hw/isa.h | |
parent | qdev: drop iobase properties from isa bus (diff) | |
download | qemu-2e15e23b8a3c5da5576b7ea8631c956381eea0d5.tar.gz qemu-2e15e23b8a3c5da5576b7ea8631c956381eea0d5.tar.xz 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
@@ -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; |