diff options
author | Avi Kivity <avi@redhat.com> | 2009-06-14 11:38:53 +0300 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-06-16 15:18:38 -0500 |
commit | 28c2c26495da884f534d95bfda7c9b411e1417fc (patch) | |
tree | d7966a686f993fb87dbf04cc7a18697dd1f5e13e /hw/rtl8139.c | |
parent | e9179ce1a07ff8699fae89dc1cd87efc3dd80c9d (diff) | |
download | hqemu-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/rtl8139.c')
-rw-r--r-- | hw/rtl8139.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/rtl8139.c b/hw/rtl8139.c index e2516ba..1364606 100644 --- a/hw/rtl8139.c +++ b/hw/rtl8139.c @@ -3471,10 +3471,10 @@ static void pci_rtl8139_init(PCIDevice *dev) s->rtl8139_mmio_io_addr = cpu_register_io_memory(rtl8139_mmio_read, rtl8139_mmio_write, s); - pci_register_io_region(&d->dev, 0, 0x100, + pci_register_bar(&d->dev, 0, 0x100, PCI_ADDRESS_SPACE_IO, rtl8139_ioport_map); - pci_register_io_region(&d->dev, 1, 0x100, + pci_register_bar(&d->dev, 1, 0x100, PCI_ADDRESS_SPACE_MEM, rtl8139_mmio_map); s->pci_dev = (PCIDevice *)d; |