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/ne2000.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/ne2000.c')
-rw-r--r-- | hw/ne2000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ne2000.c b/hw/ne2000.c index f5ae9d7..66ae9ab 100644 --- a/hw/ne2000.c +++ b/hw/ne2000.c @@ -816,7 +816,7 @@ static void pci_ne2000_init(PCIDevice *pci_dev) pci_conf[PCI_HEADER_TYPE] = PCI_HEADER_TYPE_NORMAL; // header_type pci_conf[0x3d] = 1; // interrupt pin 0 - pci_register_io_region(&d->dev, 0, 0x100, + pci_register_bar(&d->dev, 0, 0x100, PCI_ADDRESS_SPACE_IO, ne2000_map); s = &d->ne2000; s->irq = d->dev.irq[0]; |