diff options
Diffstat (limited to 'src/mame/drivers/taitowlf.cpp')
-rw-r--r-- | src/mame/drivers/taitowlf.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mame/drivers/taitowlf.cpp b/src/mame/drivers/taitowlf.cpp index 71ff3629d2e..8b6d87bbbd0 100644 --- a/src/mame/drivers/taitowlf.cpp +++ b/src/mame/drivers/taitowlf.cpp @@ -369,8 +369,8 @@ void taitowlf_state::taitowlf_palette(palette_device &palette) const } #endif -MACHINE_CONFIG_START(taitowlf_state::taitowlf) - +void taitowlf_state::taitowlf(machine_config &config) +{ /* basic machine hardware */ PENTIUM(config, m_maincpu, 200000000); m_maincpu->set_addrmap(AS_PROGRAM, &taitowlf_state::taitowlf_map); @@ -378,9 +378,11 @@ MACHINE_CONFIG_START(taitowlf_state::taitowlf) m_maincpu->set_irq_acknowledge_callback("pic8259_1", FUNC(pic8259_device::inta_cb)); - MCFG_PCI_BUS_LEGACY_ADD("pcibus", 0) - MCFG_PCI_BUS_LEGACY_DEVICE(0, DEVICE_SELF, taitowlf_state, intel82439tx_pci_r, intel82439tx_pci_w) - MCFG_PCI_BUS_LEGACY_DEVICE(7, DEVICE_SELF, taitowlf_state, intel82371ab_pci_r, intel82371ab_pci_w) + pci_bus_legacy_device &pcibus(PCI_BUS_LEGACY(config, "pcibus", 0, 0)); + pcibus.set_device_read (0, FUNC(taitowlf_state::intel82439tx_pci_r), this); + pcibus.set_device_write(0, FUNC(taitowlf_state::intel82439tx_pci_w), this); + pcibus.set_device_read (7, FUNC(taitowlf_state::intel82371ab_pci_r), this); + pcibus.set_device_write(7, FUNC(taitowlf_state::intel82371ab_pci_w), this); pcat_common(config); @@ -397,7 +399,7 @@ MACHINE_CONFIG_START(taitowlf_state::taitowlf) screen.set_screen_update(FUNC(taitowlf_state::screen_update_taitowlf)); PALETTE(config, m_palette, FUNC(taitowlf_state::taitowlf_palette), 256); #endif -MACHINE_CONFIG_END +} void taitowlf_state::init_taitowlf() { |