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
4
hw/vga.c
4
hw/vga.c
|
@ -2510,7 +2510,7 @@ int pci_vga_init(PCIBus *bus,
|
|||
pci_conf[PCI_HEADER_TYPE] = PCI_HEADER_TYPE_NORMAL; // header_type
|
||||
|
||||
/* XXX: VGA_RAM_SIZE must be a power of two */
|
||||
pci_register_io_region(&d->dev, 0, VGA_RAM_SIZE,
|
||||
pci_register_bar(&d->dev, 0, VGA_RAM_SIZE,
|
||||
PCI_ADDRESS_SPACE_MEM_PREFETCH, vga_map);
|
||||
if (vga_bios_size != 0) {
|
||||
unsigned int bios_total_size;
|
||||
|
@ -2520,7 +2520,7 @@ int pci_vga_init(PCIBus *bus,
|
|||
bios_total_size = 1;
|
||||
while (bios_total_size < vga_bios_size)
|
||||
bios_total_size <<= 1;
|
||||
pci_register_io_region(&d->dev, PCI_ROM_SLOT, bios_total_size,
|
||||
pci_register_bar(&d->dev, PCI_ROM_SLOT, bios_total_size,
|
||||
PCI_ADDRESS_SPACE_MEM_PREFETCH, vga_map);
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue