diff options
Diffstat (limited to 'src/devices/bus/hexbus/hexbus.cpp')
-rw-r--r-- | src/devices/bus/hexbus/hexbus.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/devices/bus/hexbus/hexbus.cpp b/src/devices/bus/hexbus/hexbus.cpp index 6b6f19b7d98..768910752a2 100644 --- a/src/devices/bus/hexbus/hexbus.cpp +++ b/src/devices/bus/hexbus/hexbus.cpp @@ -161,16 +161,23 @@ DEFINE_DEVICE_TYPE_NS(HEXBUS, bus::hexbus, hexbus_device, "hexbus", "Hexbus co namespace bus { namespace hexbus { +device_hexbus_interface::device_hexbus_interface(const machine_config &mconfig, device_t &device) : + device_interface(device, "hexbus") +{ +} + + hexbus_device::hexbus_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, HEXBUS, tag, owner, clock), - device_slot_interface(mconfig, *this), - m_next_dev(nullptr) + device_single_card_slot_interface<device_hexbus_interface>(mconfig, *this), + m_next_dev(nullptr), + m_chain_element(nullptr) { } void hexbus_device::device_start() { - m_next_dev = dynamic_cast<device_hexbus_interface *>(get_card_device()); + m_next_dev = get_card_device(); } /* |