diff options
Diffstat (limited to 'src/devices/bus/intv_ctrl/ctrl.cpp')
-rw-r--r-- | src/devices/bus/intv_ctrl/ctrl.cpp | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/devices/bus/intv_ctrl/ctrl.cpp b/src/devices/bus/intv_ctrl/ctrl.cpp index 122c98cf2ed..287789296a9 100644 --- a/src/devices/bus/intv_ctrl/ctrl.cpp +++ b/src/devices/bus/intv_ctrl/ctrl.cpp @@ -27,8 +27,8 @@ DEFINE_DEVICE_TYPE(INTV_CONTROL_PORT, intv_control_port_device, "intv_control_po // device_intv_control_port_interface - constructor //------------------------------------------------- -device_intv_control_port_interface::device_intv_control_port_interface(const machine_config &mconfig, device_t &device) - : device_slot_card_interface(mconfig,device) +device_intv_control_port_interface::device_intv_control_port_interface(const machine_config &mconfig, device_t &device) : + device_interface(device, "intvctrl") { m_port = dynamic_cast<intv_control_port_device *>(device.owner()); } @@ -53,7 +53,7 @@ device_intv_control_port_interface::~device_intv_control_port_interface() intv_control_port_device::intv_control_port_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, INTV_CONTROL_PORT, tag, owner, clock), - device_slot_interface(mconfig, *this), + device_single_card_slot_interface<device_intv_control_port_interface>(mconfig, *this), m_device(nullptr) { } @@ -74,16 +74,7 @@ intv_control_port_device::~intv_control_port_device() void intv_control_port_device::device_start() { - m_device = dynamic_cast<device_intv_control_port_interface *>(get_card_device()); -} - - -uint8_t intv_control_port_device::read_ctrl() -{ - uint8_t data = 0; - if (m_device) - data |= m_device->read_ctrl(); - return data; + m_device = get_card_device(); } |