summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/ti99/internal/ioport.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/ti99/internal/ioport.h')
-rw-r--r--src/devices/bus/ti99/internal/ioport.h26
1 files changed, 6 insertions, 20 deletions
diff --git a/src/devices/bus/ti99/internal/ioport.h b/src/devices/bus/ti99/internal/ioport.h
index 0468649a72f..0cfac6a9419 100644
--- a/src/devices/bus/ti99/internal/ioport.h
+++ b/src/devices/bus/ti99/internal/ioport.h
@@ -59,9 +59,6 @@ class ioport_device : public device_t, public device_slot_interface
public:
ioport_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- template<class Object> devcb_base &set_extint_callback(Object &&cb) { return m_console_extint.set_callback(std::forward<Object>(cb)); }
- template<class Object> devcb_base &set_ready_callback(Object &&cb) { return m_console_ready.set_callback(std::forward<Object>(cb)); }
-
// Methods called from the console
DECLARE_READ8Z_MEMBER( readz );
DECLARE_WRITE8_MEMBER( write );
@@ -72,6 +69,12 @@ public:
DECLARE_WRITE_LINE_MEMBER( msast_in );
DECLARE_WRITE_LINE_MEMBER( clock_in );
+ // Callbacks
+ auto extint_cb() { return m_console_extint.bind(); }
+ auto ready_cb() { return m_console_ready.bind(); }
+
+ void configure_slot(bool withevpc);
+
protected:
void device_start() override;
void device_config_complete() override;
@@ -87,21 +90,4 @@ private:
DECLARE_DEVICE_TYPE_NS(TI99_IOPORT, bus::ti99::internal, ioport_device)
-void ti99_io_port(device_slot_interface &device);
-void ti99_io_port_ev(device_slot_interface &device);
-
-#define MCFG_IOPORT_ADD( _tag ) \
- MCFG_DEVICE_ADD(_tag, TI99_IOPORT, 0) \
- MCFG_DEVICE_SLOT_INTERFACE(ti99_io_port, nullptr, false)
-
-#define MCFG_IOPORT_ADD_WITH_PEB( _tag ) \
- MCFG_DEVICE_ADD(_tag, TI99_IOPORT, 0) \
- MCFG_DEVICE_SLOT_INTERFACE(ti99_io_port_ev, "peb", false)
-
-#define MCFG_IOPORT_EXTINT_HANDLER( _extint ) \
- downcast<bus::ti99::internal::ioport_device &>(*device).set_extint_callback(DEVCB_##_extint);
-
-#define MCFG_IOPORT_READY_HANDLER( _ready ) \
- downcast<bus::ti99::internal::ioport_device &>(*device).set_ready_callback(DEVCB_##_ready);
-
#endif /* __TI99IOPORT__ */