From b409a79fef52e3166729620b56e00d352e365108 Mon Sep 17 00:00:00 2001 From: "R. Belmont" Date: Fri, 7 Mar 2014 02:18:08 +0000 Subject: [PATCH] (MESS) omti8621: fixed FDC DMA hookup (nw) --- src/mess/machine/omti8621.c | 15 +++++++++++++++ src/mess/machine/omti8621.h | 4 ++++ 2 files changed, 19 insertions(+) diff --git a/src/mess/machine/omti8621.c b/src/mess/machine/omti8621.c index ef36bae9e06..1b76be197fa 100644 --- a/src/mess/machine/omti8621.c +++ b/src/mess/machine/omti8621.c @@ -1249,6 +1249,21 @@ void omti8621_device::fdc_drq_w(bool state) m_isa->drq2_w(state ? ASSERT_LINE : CLEAR_LINE); } +UINT8 omti8621_device::dack_r(int line) +{ + return m_fdc->dma_r(); +} + +void omti8621_device::dack_w(int line, UINT8 data) +{ + return m_fdc->dma_w(data); +} + +void omti8621_device::eop_w(int state) +{ + m_fdc->tc_w(state == ASSERT_LINE); +} + //########################################################################## // device type definition diff --git a/src/mess/machine/omti8621.h b/src/mess/machine/omti8621.h index 9a40de7ff61..57db103205c 100644 --- a/src/mess/machine/omti8621.h +++ b/src/mess/machine/omti8621.h @@ -78,6 +78,10 @@ protected: virtual machine_config_constructor device_mconfig_additions() const; virtual ioport_constructor device_input_ports() const; + virtual UINT8 dack_r(int line); + virtual void dack_w(int line, UINT8 data); + virtual void eop_w(int state); + void set_interrupt(enum line_state line_state); private: