summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/tiki100/hdc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/tiki100/hdc.cpp')
-rw-r--r--src/devices/bus/tiki100/hdc.cpp27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/devices/bus/tiki100/hdc.cpp b/src/devices/bus/tiki100/hdc.cpp
index 9a0b10384c7..9a997119935 100644
--- a/src/devices/bus/tiki100/hdc.cpp
+++ b/src/devices/bus/tiki100/hdc.cpp
@@ -27,21 +27,22 @@ DEFINE_DEVICE_TYPE(TIKI100_HDC, tiki100_hdc_device, "tiki100_hdc", "TIKI-100 Win
//-------------------------------------------------
-// MACHINE_CONFIG_START( tiki100_hdc )
+// device_add_mconfig - add device configuration
//-------------------------------------------------
-MACHINE_CONFIG_START(tiki100_hdc_device::device_add_mconfig)
- MCFG_DEVICE_ADD(WD1010_TAG, WD2010, 5000000)
- //MCFG_WD2010_OUT_INTRQ_CB()
- MCFG_WD2010_IN_DRDY_CB(CONSTANT(1))
- MCFG_WD2010_IN_INDEX_CB(CONSTANT(1))
- MCFG_WD2010_IN_WF_CB(CONSTANT(1))
- MCFG_WD2010_IN_TK000_CB(CONSTANT(1))
- MCFG_WD2010_IN_SC_CB(CONSTANT(1))
-
- MCFG_HARDDISK_ADD("hard0")
- MCFG_HARDDISK_ADD("hard1")
-MACHINE_CONFIG_END
+void tiki100_hdc_device::device_add_mconfig(machine_config & config)
+{
+ WD2010(config, m_hdc, 5000000);
+ //m_hdc->out_intr_callback().set();
+ m_hdc->in_drdy_callback().set_constant(1);
+ m_hdc->in_index_callback().set_constant(1);
+ m_hdc->in_wf_callback().set_constant(1);
+ m_hdc->in_tk000_callback().set_constant(1);
+ m_hdc->in_sc_callback().set_constant(1);
+
+ HARDDISK(config, "hard0", 0);
+ HARDDISK(config, "hard1", 0);
+}