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/openpic.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/openpic.c')
-rw-r--r-- | hw/openpic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/openpic.c b/hw/openpic.c index 269b96517a..9742d54aca 100644 --- a/hw/openpic.c +++ b/hw/openpic.c @@ -1212,7 +1212,7 @@ qemu_irq *openpic_init (PCIBus *bus, int *pmem_index, int nb_cpus, pci_conf[0x3d] = 0x00; // no interrupt pin /* Register I/O spaces */ - pci_register_io_region((PCIDevice *)opp, 0, 0x40000, + pci_register_bar((PCIDevice *)opp, 0, 0x40000, PCI_ADDRESS_SPACE_MEM, &openpic_map); } else { opp = qemu_mallocz(sizeof(openpic_t)); |