mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
Rename pci_register_io_region() to pci_register_bar()
This function is used to manage a PCI BAR, so make the more generic pci_register_io_region() available to other uses. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
e9179ce1a0
commit
28c2c26495
21 changed files with 40 additions and 40 deletions
|
@ -1732,7 +1732,7 @@ void usb_ohci_init_pci(struct PCIBus *bus, int num_ports, int devfn)
|
|||
usb_ohci_init(&ohci->state, num_ports, devfn, ohci->pci_dev.irq[0],
|
||||
OHCI_TYPE_PCI, ohci->pci_dev.name, 0);
|
||||
|
||||
pci_register_io_region((struct PCIDevice *)ohci, 0, 256,
|
||||
pci_register_bar((struct PCIDevice *)ohci, 0, 256,
|
||||
PCI_ADDRESS_SPACE_MEM, ohci_mapfunc);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue