diff options
author | Avi Kivity | 2009-06-14 10:38:53 +0200 |
---|---|---|
committer | Anthony Liguori | 2009-06-16 22:18:38 +0200 |
commit | 28c2c26495da884f534d95bfda7c9b411e1417fc (patch) | |
tree | d7966a686f993fb87dbf04cc7a18697dd1f5e13e /hw/vmware_vga.c | |
parent | Rearrange io_mem_init() (diff) | |
download | qemu-28c2c26495da884f534d95bfda7c9b411e1417fc.tar.gz qemu-28c2c26495da884f534d95bfda7c9b411e1417fc.tar.xz qemu-28c2c26495da884f534d95bfda7c9b411e1417fc.zip |
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/vmware_vga.c')
-rw-r--r-- | hw/vmware_vga.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c index 5c2e524768..9c354dd108 100644 --- a/hw/vmware_vga.c +++ b/hw/vmware_vga.c @@ -1231,9 +1231,9 @@ void pci_vmsvga_init(PCIBus *bus) s->card.config[0x2f] = SVGA_PCI_DEVICE_ID >> 8; s->card.config[0x3c] = 0xff; /* End */ - pci_register_io_region(&s->card, 0, 0x10, + pci_register_bar(&s->card, 0, 0x10, PCI_ADDRESS_SPACE_IO, pci_vmsvga_map_ioport); - pci_register_io_region(&s->card, 1, VGA_RAM_SIZE, + pci_register_bar(&s->card, 1, VGA_RAM_SIZE, PCI_ADDRESS_SPACE_MEM_PREFETCH, pci_vmsvga_map_mem); vmsvga_init(&s->chip, VGA_RAM_SIZE); |