summaryrefslogtreecommitdiff
path: root/hw/pci_host.c
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-12-08 13:35:00 +0200
committerBlue Swirl <blauwirbel@gmail.com>2010-12-11 21:32:41 +0000
commitc646f74ffdc2c514bc12e0c241faf08fab10d181 (patch)
treef81c3eadc57a1a6dad65209cdd6ecc8403ca6cef /hw/pci_host.c
parentdc1a46b60941e137b3194936540790b720952055 (diff)
downloadqemu-c646f74ffdc2c514bc12e0c241faf08fab10d181.tar.gz
qemu-c646f74ffdc2c514bc12e0c241faf08fab10d181.tar.bz2
qemu-c646f74ffdc2c514bc12e0c241faf08fab10d181.zip
Add get_fw_dev_path callback for system bus.
Prints out mmio or pio used to access child device. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/pci_host.c')
-rw-r--r--hw/pci_host.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/pci_host.c b/hw/pci_host.c
index eebff7ab92..7c40155b95 100644
--- a/hw/pci_host.c
+++ b/hw/pci_host.c
@@ -140,6 +140,7 @@ void pci_host_conf_register_ioport(pio_addr_t ioport, PCIHostState *s)
{
pci_host_init(s);
register_ioport_simple(&s->conf_handler, ioport, 4, 4);
+ sysbus_init_ioports(&s->busdev, ioport, 4);
}
int pci_host_data_register_mmio(PCIHostState *s, int endian)
@@ -154,4 +155,5 @@ void pci_host_data_register_ioport(pio_addr_t ioport, PCIHostState *s)
register_ioport_simple(&s->data_handler, ioport, 4, 1);
register_ioport_simple(&s->data_handler, ioport, 4, 2);
register_ioport_simple(&s->data_handler, ioport, 4, 4);
+ sysbus_init_ioports(&s->busdev, ioport, 4);
}