From 4757d0f7468a64c94efc0eedfef868066e819cde Mon Sep 17 00:00:00 2001 From: cracyc Date: Mon, 21 May 2018 21:07:15 -0500 Subject: at:eop for second dmac (nw) --- src/mame/machine/at.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mame/machine/at.cpp b/src/mame/machine/at.cpp index cf46cc0f03c..1bb6955fdcb 100644 --- a/src/mame/machine/at.cpp +++ b/src/mame/machine/at.cpp @@ -14,6 +14,7 @@ #include "bus/pc_kbd/pc_kbdc.h" #include "softlist_dev.h" #include "speaker.h" +#include "machine/input_merger.h" #define LOG_PORT80 0 @@ -61,9 +62,12 @@ MACHINE_CONFIG_START(at_mb_device::device_add_mconfig) MCFG_PIT8253_CLK2(4772720/4) /* pio port c pin 4, and speaker polling enough */ MCFG_PIT8253_OUT2_HANDLER(WRITELINE(*this, at_mb_device, pit8254_out2_changed)) + MCFG_INPUT_MERGER_ANY_LOW("eop") + MCFG_INPUT_MERGER_OUTPUT_HANDLER(WRITELINE(*this, at_mb_device, dma8237_out_eop)) + MCFG_DEVICE_ADD( "dma8237_1", AM9517A, XTAL(14'318'181)/3 ) MCFG_I8237_OUT_HREQ_CB(WRITELINE("dma8237_2", am9517a_device, dreq0_w)) - MCFG_I8237_OUT_EOP_CB(WRITELINE(*this, at_mb_device, dma8237_out_eop)) + MCFG_I8237_OUT_EOP_CB(WRITELINE("eop", input_merger_device, in_w<0>)) MCFG_I8237_IN_MEMR_CB(READ8(*this, at_mb_device, dma_read_byte)) MCFG_I8237_OUT_MEMW_CB(WRITE8(*this, at_mb_device, dma_write_byte)) MCFG_I8237_IN_IOR_0_CB(READ8(*this, at_mb_device, dma8237_0_dack_r)) @@ -80,6 +84,7 @@ MACHINE_CONFIG_START(at_mb_device::device_add_mconfig) MCFG_I8237_OUT_DACK_3_CB(WRITELINE(*this, at_mb_device, dack3_w)) MCFG_DEVICE_ADD( "dma8237_2", AM9517A, XTAL(14'318'181)/3 ) MCFG_I8237_OUT_HREQ_CB(WRITELINE(*this, at_mb_device, dma_hrq_changed)) + MCFG_I8237_OUT_EOP_CB(WRITELINE("eop", input_merger_device, in_w<1>)) MCFG_I8237_IN_MEMR_CB(READ8(*this, at_mb_device, dma_read_word)) MCFG_I8237_OUT_MEMW_CB(WRITE8(*this, at_mb_device, dma_write_word)) MCFG_I8237_IN_IOR_1_CB(READ8(*this, at_mb_device, dma8237_5_dack_r)) -- cgit v1.2.3