summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/ti99/datamux.h
diff options
context:
space:
mode:
author Michael Zapf <michael.zapf@mizapf.de>2014-03-15 23:15:30 +0000
committer Michael Zapf <michael.zapf@mizapf.de>2014-03-15 23:15:30 +0000
commit6c2a8df26a080cdfaa551b7484680f0d80db0a4a (patch)
tree6450c25f7a6264ddb2f9961c13c8778b759cbf0a /src/mess/machine/ti99/datamux.h
parent3d65a90c9e2bb9e102de0289d14f9c2e0ead8de7 (diff)
(MESS) Some more devcb2 edits. (nw)
Diffstat (limited to 'src/mess/machine/ti99/datamux.h')
-rw-r--r--src/mess/machine/ti99/datamux.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/mess/machine/ti99/datamux.h b/src/mess/machine/ti99/datamux.h
index a10dcd63b48..f16148efc9b 100644
--- a/src/mess/machine/ti99/datamux.h
+++ b/src/mess/machine/ti99/datamux.h
@@ -41,7 +41,6 @@ struct dmux_device_list_entry
struct datamux_config
{
- devcb_write_line ready;
const dmux_device_list_entry *devlist;
};
@@ -78,12 +77,16 @@ public:
DECLARE_WRITE_LINE_MEMBER( dbin_in );
DECLARE_WRITE_LINE_MEMBER( ready_line );
+ template<class _Object> static devcb2_base &static_set_ready_callback(device_t &device, _Object object)
+ {
+ return downcast<ti99_datamux_device &>(device).m_ready.set_callback(object);
+ }
+
protected:
/* Constructor */
void device_start();
void device_stop();
void device_reset();
- void device_config_complete();
ioport_constructor device_input_ports() const;
private:
@@ -107,7 +110,7 @@ private:
void ready_join();
// Ready line to the CPU
- devcb_resolved_write_line m_ready;
+ devcb2_write_line m_ready;
// Own ready state.
line_state m_muxready;
@@ -149,3 +152,6 @@ private:
MCFG_DEVICE_ADD(_tag, DATAMUX, 0) \
MCFG_DEVICE_CONFIG( _devices )
#endif
+
+#define MCFG_DMUX_READY_HANDLER( _intcallb ) \
+ devcb = &ti99_datamux_device::static_set_ready_callback( *device, DEVCB2_##_intcallb );