mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
isa bus irq changes and fixes.
Changes: (1) make isa-bus maintain isa irqs, complain when allocating already taken irqs. (2) note that (1) works only for isa devices converted to qdev already (floppy and ps2/kbd/mouse right now), so more work is needed to make this really useful. (3) split floppy init into isa and sysbus versions. (4) add sysbus->isa bridge & fix -M isapc breakage. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
3f9cb1c14d
commit
2091ba23e8
9 changed files with 110 additions and 38 deletions
4
hw/isa.h
4
hw/isa.h
|
@ -13,6 +13,7 @@ typedef struct ISADeviceInfo ISADeviceInfo;
|
|||
struct ISADevice {
|
||||
DeviceState qdev;
|
||||
uint32_t iobase[2];
|
||||
uint32_t isairq[2];
|
||||
qemu_irq *irqs[2];
|
||||
int nirqs;
|
||||
};
|
||||
|
@ -24,7 +25,8 @@ struct ISADeviceInfo {
|
|||
};
|
||||
|
||||
ISABus *isa_bus_new(DeviceState *dev);
|
||||
void isa_connect_irq(ISADevice *dev, int n, qemu_irq irq);
|
||||
void isa_bus_irqs(qemu_irq *irqs);
|
||||
void isa_connect_irq(ISADevice *dev, int devirq, int isairq);
|
||||
void isa_init_irq(ISADevice *dev, qemu_irq *p);
|
||||
void isa_qdev_register(ISADeviceInfo *info);
|
||||
ISADevice *isa_create_simple(const char *name, uint32_t iobase, uint32_t iobase2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue