diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-12-25 16:50:36 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-12-25 16:50:36 +0000 |
commit | 2e01c8cf4b076b05013c87723e3fc710b50a0a7a (patch) | |
tree | ee62f3752f5e3ebc4fd482b93bae18e6ef0be325 /hw/pci.h | |
parent | 2fe0ee97f9b138fb61dcdc2b98f0c4cf7f4dd9c7 (diff) |
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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, |