summary refs log tree commit diff stats
path: root/hw/pci.h
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-12-25 16:50:36 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-12-25 16:50:36 +0000
commit2e01c8cf4b076b05013c87723e3fc710b50a0a7a (patch)
treeee62f3752f5e3ebc4fd482b93bae18e6ef0be325 /hw/pci.h
parent2fe0ee97f9b138fb61dcdc2b98f0c4cf7f4dd9c7 (diff)
downloadfocaccia-qemu-2e01c8cf4b076b05013c87723e3fc710b50a0a7a.tar.gz
focaccia-qemu-2e01c8cf4b076b05013c87723e3fc710b50a0a7a.zip
PCI: make pci_mem_base private
Make pci_mem_base private to PCIBus. Add a function to set it.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/pci.h')
-rw-r--r--hw/pci.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/pci.h b/hw/pci.h
index e52e632380..fd16460e0d 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -10,8 +10,6 @@
 
 /* PCI bus */
 
-extern target_phys_addr_t pci_mem_base;
-
 #define PCI_DEVFN(slot, func)   ((((slot) & 0x1f) << 3) | ((func) & 0x07))
 #define PCI_SLOT(devfn)         (((devfn) >> 3) & 0x1f)
 #define PCI_FUNC(devfn)         ((devfn) & 0x07)
@@ -286,6 +284,8 @@ PCIBus *pci_register_bus(DeviceState *parent, const char *name,
                          pci_set_irq_fn set_irq, pci_map_irq_fn map_irq,
                          void *irq_opaque, int devfn_min, int nirq);
 
+void pci_bus_set_mem_base(PCIBus *bus, target_phys_addr_t base);
+
 PCIDevice *pci_nic_init(NICInfo *nd, const char *default_model,
                         const char *default_devaddr);
 PCIDevice *pci_nic_init_nofail(NICInfo *nd, const char *default_model,