mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
ahci: convert to memory API
Reviewed-by: Richard Henderson <rth@twiddle.net> Reviewed-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
da146d0aad
commit
67e576c262
3 changed files with 15 additions and 21 deletions
|
@ -98,8 +98,7 @@ static int pci_ich9_ahci_init(PCIDevice *dev)
|
|||
msi_init(dev, 0x50, 1, true, false);
|
||||
d->ahci.irq = d->card.irq[0];
|
||||
|
||||
/* XXX BAR size should be 1k, but that breaks, so bump it to 4k for now */
|
||||
pci_register_bar_simple(&d->card, 5, 0x1000, 0, d->ahci.mem);
|
||||
pci_register_bar_region(&d->card, 5, 0, &d->ahci.mem);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue