summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/pci.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/pci.cpp')
-rw-r--r--src/devices/machine/pci.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/devices/machine/pci.cpp b/src/devices/machine/pci.cpp
index 99880eb057f..e4c582e29a8 100644
--- a/src/devices/machine/pci.cpp
+++ b/src/devices/machine/pci.cpp
@@ -524,7 +524,7 @@ void pci_bridge_device::device_start()
if(card) {
int id = slot.get_slot();
sub_devices[id << 3] = card;
- }
+ }
} else {
const char *t = d.tag();
@@ -888,6 +888,12 @@ void pci_host_device::io_configuration_access_map(address_map &map)
map(0xcfc, 0xcff).rw(FUNC(pci_host_device::config_data_r), FUNC(pci_host_device::config_data_w));
}
+void pci_host_device::set_spaces(address_space *memory, address_space *io, address_space *busmaster)
+{
+ memory_space = memory;
+ io_space = io ? io : memory;
+ m_pci_root->set_pci_busmaster_space(busmaster ? busmaster : memory);
+}
pci_host_device::pci_host_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock)
: pci_bridge_device(mconfig, type, tag, owner, clock)
@@ -1012,7 +1018,8 @@ void pci_host_device::root_config_write(uint8_t bus, uint8_t device, uint16_t re
pci_root_device::pci_root_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, PCI_ROOT, tag, owner, clock),
m_pin_mapper(*this),
- m_irq_handler(*this)
+ m_irq_handler(*this),
+ m_pci_busmaster_space(nullptr)
{
}