mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
Store IDE bus id in IDEBus structure for easy access.
Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
6a26e1197d
commit
3835510f10
6 changed files with 11 additions and 9 deletions
|
@ -253,8 +253,8 @@ static int pci_cmd646_ide_initfn(PCIDevice *dev)
|
|||
pci_conf[PCI_INTERRUPT_PIN] = 0x01; // interrupt on pin 1
|
||||
|
||||
irq = qemu_allocate_irqs(cmd646_set_irq, d, 2);
|
||||
ide_bus_new(&d->bus[0], &d->dev.qdev);
|
||||
ide_bus_new(&d->bus[1], &d->dev.qdev);
|
||||
ide_bus_new(&d->bus[0], &d->dev.qdev, 0);
|
||||
ide_bus_new(&d->bus[1], &d->dev.qdev, 1);
|
||||
ide_init2(&d->bus[0], irq[0]);
|
||||
ide_init2(&d->bus[1], irq[1]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue