summaryrefslogtreecommitdiffstats
path: root/hw/vga.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-06-14 11:38:53 +0300
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-16 15:18:38 -0500
commit28c2c26495da884f534d95bfda7c9b411e1417fc (patch)
treed7966a686f993fb87dbf04cc7a18697dd1f5e13e /hw/vga.c
parente9179ce1a07ff8699fae89dc1cd87efc3dd80c9d (diff)
downloadhqemu-28c2c26495da884f534d95bfda7c9b411e1417fc.zip
hqemu-28c2c26495da884f534d95bfda7c9b411e1417fc.tar.gz
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>
Diffstat (limited to 'hw/vga.c')
-rw-r--r--hw/vga.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/vga.c b/hw/vga.c
index c07c4da..97bf1b6 100644
--- a/hw/vga.c
+++ b/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;
OpenPOWER on IntegriCloud