diff options
author | Olivier Galibert <galibert@pobox.com> | 2018-02-01 10:04:01 +0100 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2018-02-12 10:04:52 +0100 |
commit | c5219643162cb7d2a8688425a09008d28c8e2437 (patch) | |
tree | f2775ca3b1770ab0d3fb568f0bdd6d9212c68bf6 /src/mame/drivers/atpci.cpp | |
parent | 09b6ce46873b38de9030a3c0378ff327f17af881 (diff) |
API change: Memory maps are now methods of the owner class [O. Galibert]
Also, a lot more freedom happened, that's going to be more visible
soon.
Diffstat (limited to 'src/mame/drivers/atpci.cpp')
-rw-r--r-- | src/mame/drivers/atpci.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/atpci.cpp b/src/mame/drivers/atpci.cpp index 13d50d183f3..06ed0cab4ee 100644 --- a/src/mame/drivers/atpci.cpp +++ b/src/mame/drivers/atpci.cpp @@ -27,6 +27,8 @@ public: static void tx_config(device_t *device); static void sb_config(device_t *device); + void at586_io(address_map &map); + void at586_map(address_map &map); }; WRITE8_MEMBER(at586_state::boot_state_w) @@ -53,14 +55,14 @@ static SLOT_INTERFACE_START( pci_devices ) SLOT_INTERFACE_INTERNAL("i82371sb", I82371SB) SLOT_INTERFACE_END -static ADDRESS_MAP_START( at586_map, AS_PROGRAM, 32, at586_state ) +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 -static ADDRESS_MAP_START( at586_io, AS_IO, 32, at586_state ) +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 |