mirror of
https://github.com/holub/mame
synced 2025-04-19 15:11:37 +03:00
news_68k: incorporate dmac changes
* NEWS-OS now boots and runs in serial console mode
This commit is contained in:
parent
245c0b06b2
commit
4b9cef80f2
@ -4546,3 +4546,14 @@ if (MACHINES["ALPHA_8921"]~=null) then
|
||||
MAME_DIR .. "src/devices/machine/alpha_8921.h",
|
||||
}
|
||||
end
|
||||
|
||||
---------------------------------------------------
|
||||
--
|
||||
--@src/devices/machine/ns32202.h,MACHINES["NS32202"] = true
|
||||
---------------------------------------------------
|
||||
if (MACHINES["NS32202"]~=null) then
|
||||
files {
|
||||
MAME_DIR .. "src/devices/machine/ns32202.cpp",
|
||||
MAME_DIR .. "src/devices/machine/ns32202.h",
|
||||
}
|
||||
end
|
||||
|
@ -336,7 +336,6 @@ void news_68k_state::common(machine_config &config)
|
||||
|
||||
DMAC_0266(config, m_dma, 0);
|
||||
m_dma->set_bus(m_cpu, 0);
|
||||
m_dma->out_int_cb().set(*this, FUNC(news_68k_state::irq_w<SCSI>));
|
||||
|
||||
INPUT_MERGER_ANY_HIGH(config, m_irq5);
|
||||
m_irq5->output_handler().set_inputline(m_cpu, INPUT_LINE_IRQ5);
|
||||
@ -402,8 +401,9 @@ void news_68k_state::common(machine_config &config)
|
||||
{
|
||||
cxd1180_device &adapter = downcast<cxd1180_device &>(*device);
|
||||
|
||||
adapter.irq_handler().set(m_dma, FUNC(dmac_0266_device::irq_w));
|
||||
adapter.drq_handler().set(m_dma, FUNC(dmac_0266_device::drq_w));
|
||||
adapter.irq_handler().set(*this, FUNC(news_68k_state::irq_w<SCSI>));
|
||||
adapter.irq_handler().append(m_dma, FUNC(dmac_0266_device::eop_w));
|
||||
adapter.drq_handler().set(m_dma, FUNC(dmac_0266_device::req_w));
|
||||
|
||||
subdevice<dmac_0266_device>(":dma")->dma_r_cb().set(adapter, FUNC(cxd1180_device::dma_r));
|
||||
subdevice<dmac_0266_device>(":dma")->dma_w_cb().set(adapter, FUNC(cxd1180_device::dma_w));
|
||||
|
Loading…
Reference in New Issue
Block a user