summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/i82357.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/i82357.cpp')
-rw-r--r--src/devices/machine/i82357.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/devices/machine/i82357.cpp b/src/devices/machine/i82357.cpp
index c1ff793ab87..6c6c75e838d 100644
--- a/src/devices/machine/i82357.cpp
+++ b/src/devices/machine/i82357.cpp
@@ -122,15 +122,15 @@ void i82357_device::map(address_map &map)
map(0x061, 0x061).rw(FUNC(i82357_device::nmi_reg_r), FUNC(i82357_device::nmi_reg_w));
// NMI Enable Register (0x70, 72, 74, 76)
- map(0x070, 0x077).lw8("nmi_rtc",
- [this](offs_t offset, u8 data)
- {
- m_nmi_enabled = !BIT(data, 7);
+ map(0x070, 0x077).lw8(
+ [this] (offs_t offset, u8 data)
+ {
+ m_nmi_enabled = !BIT(data, 7);
- m_out_rtc(0, data & 0x7f);
+ m_out_rtc(0, data & 0x7f);
- m_nmi_check->adjust(attotime::zero);
- }).umask64(0xff);
+ m_nmi_check->adjust(attotime::zero);
+ }, "nmi_rtc").umask64(0xff);
map(0x081, 0x081).rw(m_dma[0], FUNC(eisa_dma_device::get_address_page<2>), FUNC(eisa_dma_device::set_address_page<2>));
map(0x082, 0x082).rw(m_dma[0], FUNC(eisa_dma_device::get_address_page<3>), FUNC(eisa_dma_device::set_address_page<3>));
@@ -158,16 +158,16 @@ void i82357_device::map(address_map &map)
//map(0x40f, 0x40f); // ISP Test Register
map(0x461, 0x461).rw(FUNC(i82357_device::nmi_ext_r), FUNC(i82357_device::nmi_ext_w));
- map(0x462, 0x462).lw8("nmi_ioport",
- [this](u8 data)
- {
- if (m_nmi_ext & NMI_EXT_EN_IOPORT)
+ map(0x462, 0x462).lw8(
+ [this] (u8 data)
{
- m_nmi_ext |= NMI_EXT_IOPORT;
+ if (m_nmi_ext & NMI_EXT_EN_IOPORT)
+ {
+ m_nmi_ext |= NMI_EXT_IOPORT;
- m_nmi_check->adjust(attotime::zero);
- }
- });
+ m_nmi_check->adjust(attotime::zero);
+ }
+ }, "nmi_ioport");
//map(0x464, 0x464); // Last 32-bit bus master granted (L)
map(0x481, 0x481).rw(m_dma[0], FUNC(eisa_dma_device::get_address_page_high<2>), FUNC(eisa_dma_device::set_address_page_high<2>));
@@ -183,9 +183,9 @@ void i82357_device::map(address_map &map)
map(0x4c6, 0x4c6).rw(m_dma[1], FUNC(eisa_dma_device::get_count_high<1>), FUNC(eisa_dma_device::set_count_high<1>));
map(0x4ca, 0x4ca).rw(m_dma[1], FUNC(eisa_dma_device::get_count_high<2>), FUNC(eisa_dma_device::set_count_high<2>));
map(0x4ce, 0x4ce).rw(m_dma[1], FUNC(eisa_dma_device::get_count_high<3>), FUNC(eisa_dma_device::set_count_high<3>));
- map(0x4d0, 0x4d1).lrw8("elcr",
- [this](offs_t offset) { return m_elcr[offset]; },
- [this](offs_t offset, u8 data) { m_elcr[offset] = data; });
+ map(0x4d0, 0x4d1).lrw8(
+ NAME([this] (offs_t offset) { return m_elcr[offset]; }),
+ NAME([this] (offs_t offset, u8 data) { m_elcr[offset] = data; }));
//map(0x4d4, 0x4d4); // DMA2 Set Chaining Mode
//map(0x4d6, 0x4d6); // DMA2 Ext Write Mode Register