diff options
Diffstat (limited to 'src/devices/bus/svi3x8/expander/sv602.cpp')
-rw-r--r-- | src/devices/bus/svi3x8/expander/sv602.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/devices/bus/svi3x8/expander/sv602.cpp b/src/devices/bus/svi3x8/expander/sv602.cpp index b7c657bddce..25624a83e9a 100644 --- a/src/devices/bus/svi3x8/expander/sv602.cpp +++ b/src/devices/bus/svi3x8/expander/sv602.cpp @@ -20,13 +20,14 @@ DEFINE_DEVICE_TYPE(SV602, sv602_device, "sv602", "SV-602 Single Slot Expander") // device_add_mconfig - add device configuration //------------------------------------------------- -MACHINE_CONFIG_START(sv602_device::device_add_mconfig) - MCFG_SVI_SLOT_BUS_ADD - MCFG_SVI_SLOT_INT_HANDLER(WRITELINE(*this, sv602_device, int_w)) - MCFG_SVI_SLOT_ROMDIS_HANDLER(WRITELINE(*this, sv602_device, romdis_w)) - MCFG_SVI_SLOT_RAMDIS_HANDLER(WRITELINE(*this, sv602_device, ramdis_w)) - MCFG_SVI_SLOT_ADD("0", sv602_slot_cards, nullptr) -MACHINE_CONFIG_END +void sv602_device::device_add_mconfig(machine_config &config) +{ + SVI_SLOT_BUS(config, m_slotbus, 0); + m_slotbus->int_handler().set(FUNC(sv602_device::int_w)); + m_slotbus->romdis_handler().set(FUNC(sv602_device::romdis_w)); + m_slotbus->ramdis_handler().set(FUNC(sv602_device::ramdis_w)); + SVI_SLOT(config, "0", sv602_slot_cards, nullptr); +} //************************************************************************** @@ -61,10 +62,10 @@ WRITE_LINE_MEMBER( sv602_device::int_w ) { m_expander->int_w(state); } WRITE_LINE_MEMBER( sv602_device::romdis_w ) { m_expander->romdis_w(state); } WRITE_LINE_MEMBER( sv602_device::ramdis_w ) { m_expander->ramdis_w(state); } -READ8_MEMBER( sv602_device::mreq_r ) { return m_slotbus->mreq_r(space, offset); } -WRITE8_MEMBER( sv602_device::mreq_w ) { m_slotbus->mreq_w(space, offset, data); } -READ8_MEMBER( sv602_device::iorq_r ) { return m_slotbus->iorq_r(space, offset); } -WRITE8_MEMBER( sv602_device::iorq_w ) { m_slotbus->iorq_w(space, offset, data); } +uint8_t sv602_device::mreq_r(offs_t offset) { return m_slotbus->mreq_r(offset); } +void sv602_device::mreq_w(offs_t offset, uint8_t data) { m_slotbus->mreq_w(offset, data); } +uint8_t sv602_device::iorq_r(offs_t offset) { return m_slotbus->iorq_r(offset); } +void sv602_device::iorq_w(offs_t offset, uint8_t data) { m_slotbus->iorq_w(offset, data); } void sv602_device::bk21_w(int state) { m_slotbus->bk21_w(state); } void sv602_device::bk22_w(int state) { m_slotbus->bk22_w(state); } |