summaryrefslogtreecommitdiffstats
path: root/hw/cirrus_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/cirrus_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/cirrus_vga.c')
-rw-r--r--hw/cirrus_vga.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c
index 5591149..0a12782 100644
--- a/hw/cirrus_vga.c
+++ b/hw/cirrus_vga.c
@@ -3336,10 +3336,10 @@ void pci_cirrus_vga_init(PCIBus *bus)
/* memory #0 LFB */
/* memory #1 memory-mapped I/O */
/* XXX: s->vga.vram_size must be a power of two */
- pci_register_io_region((PCIDevice *)d, 0, 0x2000000,
+ pci_register_bar((PCIDevice *)d, 0, 0x2000000,
PCI_ADDRESS_SPACE_MEM_PREFETCH, cirrus_pci_lfb_map);
if (device_id == CIRRUS_ID_CLGD5446) {
- pci_register_io_region((PCIDevice *)d, 1, CIRRUS_PNPMMIO_SIZE,
+ pci_register_bar((PCIDevice *)d, 1, CIRRUS_PNPMMIO_SIZE,
PCI_ADDRESS_SPACE_MEM, cirrus_pci_mmio_map);
}
/* XXX: ROM BIOS */
OpenPOWER on IntegriCloud