mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
pci: rename pci_register_bar_region() to pci_register_bar()
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
50181f10da
commit
e824b2cc3b
29 changed files with 68 additions and 89 deletions
6
hw/pci.c
6
hw/pci.c
|
@ -881,8 +881,8 @@ static int pci_unregister_device(DeviceState *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void pci_register_bar_region(PCIDevice *pci_dev, int region_num,
|
||||
uint8_t type, MemoryRegion *memory)
|
||||
void pci_register_bar(PCIDevice *pci_dev, int region_num,
|
||||
uint8_t type, MemoryRegion *memory)
|
||||
{
|
||||
PCIIORegion *r;
|
||||
uint32_t addr;
|
||||
|
@ -1956,7 +1956,7 @@ static int pci_add_option_rom(PCIDevice *pdev, bool is_default_rom)
|
|||
|
||||
qemu_put_ram_ptr(ptr);
|
||||
|
||||
pci_register_bar_region(pdev, PCI_ROM_SLOT, 0, &pdev->rom);
|
||||
pci_register_bar(pdev, PCI_ROM_SLOT, 0, &pdev->rom);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue