summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/atpci.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2018-03-13 07:36:43 +0100
committer Olivier Galibert <galibert@pobox.com>2018-03-14 14:07:14 +0100
commit115bb9936c5cd3faf955d7eb1e251a94e4744b7b (patch)
treef0230f547f6c750f9974c61479eef28cbe4ad571 /src/mame/drivers/atpci.cpp
parentf155992daab88ad024cec995428a67108218b51d (diff)
Address maps macros removal, pass 1 [O. Galibert]
Diffstat (limited to 'src/mame/drivers/atpci.cpp')
-rw-r--r--src/mame/drivers/atpci.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/mame/drivers/atpci.cpp b/src/mame/drivers/atpci.cpp
index 84cd58e3016..55f9d10516b 100644
--- a/src/mame/drivers/atpci.cpp
+++ b/src/mame/drivers/atpci.cpp
@@ -55,17 +55,19 @@ static SLOT_INTERFACE_START( pci_devices )
SLOT_INTERFACE_INTERNAL("i82371sb", I82371SB)
SLOT_INTERFACE_END
-ADDRESS_MAP_START(at586_state::at586_map)
- AM_RANGE(0x00000000, 0x0009ffff) AM_RAMBANK("bank10")
- AM_RANGE(0x000a0000, 0x000bffff) AM_NOP
- AM_RANGE(0x00800000, 0x00800bff) AM_RAM AM_SHARE("nvram")
- AM_RANGE(0xfffe0000, 0xffffffff) AM_ROM AM_REGION("isa", 0x20000)
-ADDRESS_MAP_END
-
-ADDRESS_MAP_START(at586_state::at586_io)
- ADDRESS_MAP_UNMAP_HIGH
- AM_RANGE(0x0cf8, 0x0cff) AM_DEVREADWRITE("pcibus", pci_bus_device, read, write)
-ADDRESS_MAP_END
+void at586_state::at586_map(address_map &map)
+{
+ map(0x00000000, 0x0009ffff).bankrw("bank10");
+ map(0x000a0000, 0x000bffff).noprw();
+ map(0x00800000, 0x00800bff).ram().share("nvram");
+ map(0xfffe0000, 0xffffffff).rom().region("isa", 0x20000);
+}
+
+void at586_state::at586_io(address_map &map)
+{
+ map.unmap_value_high();
+ map(0x0cf8, 0x0cff).rw("pcibus", FUNC(pci_bus_device::read), FUNC(pci_bus_device::write));
+}
MACHINE_CONFIG_START(at586_state::at_softlists)
/* software lists */