summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/einstein/pipe/pipe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/einstein/pipe/pipe.cpp')
-rw-r--r--src/devices/bus/einstein/pipe/pipe.cpp21
1 files changed, 4 insertions, 17 deletions
diff --git a/src/devices/bus/einstein/pipe/pipe.cpp b/src/devices/bus/einstein/pipe/pipe.cpp
index d521d146325..05196ac2d49 100644
--- a/src/devices/bus/einstein/pipe/pipe.cpp
+++ b/src/devices/bus/einstein/pipe/pipe.cpp
@@ -32,7 +32,7 @@ DEFINE_DEVICE_TYPE(TATUNG_PIPE, tatung_pipe_device, "tatung_pipe", "Tatung Pipe
tatung_pipe_device::tatung_pipe_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
device_t(mconfig, TATUNG_PIPE, tag, owner, clock),
- device_slot_interface(mconfig, *this),
+ device_single_card_slot_interface<device_tatung_pipe_interface>(mconfig, *this),
m_program(*this, finder_base::DUMMY_TAG, -1),
m_io(*this, finder_base::DUMMY_TAG, -1),
m_card(nullptr),
@@ -79,27 +79,14 @@ void tatung_pipe_device::device_config_complete()
void tatung_pipe_device::device_start()
{
// get inserted module
- m_card = dynamic_cast<device_tatung_pipe_interface *>(get_card_device());
-
- // resolve callbacks
- m_int_handler.resolve_safe();
- m_nmi_handler.resolve_safe();
- m_reset_handler.resolve_safe();
-}
-
-//-------------------------------------------------
-// device_reset - device-specific reset
-//-------------------------------------------------
-
-void tatung_pipe_device::device_reset()
-{
+ m_card = get_card_device();
}
//-------------------------------------------------
// host to module interface
//-------------------------------------------------
-WRITE_LINE_MEMBER( tatung_pipe_device::host_int_w )
+void tatung_pipe_device::host_int_w(int state)
{
if (m_card)
m_card->int_w(state);
@@ -115,7 +102,7 @@ WRITE_LINE_MEMBER( tatung_pipe_device::host_int_w )
//-------------------------------------------------
device_tatung_pipe_interface::device_tatung_pipe_interface(const machine_config &mconfig, device_t &device) :
- device_slot_card_interface(mconfig, device)
+ device_interface(device, "tatungpipe")
{
m_slot = dynamic_cast<tatung_pipe_device *>(device.owner());
}