diff options
Diffstat (limited to 'src/devices/bus/amiga/zorro/a2058.cpp')
-rw-r--r-- | src/devices/bus/amiga/zorro/a2058.cpp | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/src/devices/bus/amiga/zorro/a2058.cpp b/src/devices/bus/amiga/zorro/a2058.cpp index d0ecee24526..cb30212620f 100644 --- a/src/devices/bus/amiga/zorro/a2058.cpp +++ b/src/devices/bus/amiga/zorro/a2058.cpp @@ -11,19 +11,18 @@ #include "emu.h" #include "a2058.h" - -//************************************************************************** -// CONSTANTS / MACROS -//************************************************************************** - #define VERBOSE 1 +#include "logmacro.h" //************************************************************************** // DEVICE DEFINITIONS //************************************************************************** -DEFINE_DEVICE_TYPE(A2058, a2058_device, "a2058", "CBM A2058 Fast Memory") +DEFINE_DEVICE_TYPE_NS(ZORRO_A2058, bus::amiga::zorro, a2058_device, "zorro_a2058", "CBM A2058 Fast Memory") + + +namespace bus { namespace amiga { namespace zorro { //------------------------------------------------- // input_ports - device-specific input ports @@ -53,7 +52,7 @@ ioport_constructor a2058_device::device_input_ports() const //------------------------------------------------- a2058_device::a2058_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : - device_t(mconfig, A2058, tag, owner, clock), + device_t(mconfig, ZORRO_A2058, tag, owner, clock), device_zorro2_card_interface(mconfig, *this), m_config(*this, "config"), m_ram_size(0) @@ -71,8 +70,6 @@ void a2058_device::device_start() // register for save states save_pointer(NAME(m_ram), 0x800000/2); - - set_zorro_device(); } @@ -82,11 +79,8 @@ void a2058_device::device_start() void a2058_device::autoconfig_base_address(offs_t address) { - if (VERBOSE) - logerror("%s('%s'): autoconfig_base_address received: 0x%06x\n", shortname(), basetag(), address); - - if (VERBOSE) - logerror("-> installing a2058\n"); + LOG("%s: autoconfig_base_address received: 0x%06x\n", shortname(), address); + LOG("-> installing a2058\n"); // stop responding to default autoconfig m_slot->space().unmap_readwrite(0xe80000, 0xe8007f); @@ -100,8 +94,7 @@ void a2058_device::autoconfig_base_address(offs_t address) WRITE_LINE_MEMBER( a2058_device::cfgin_w ) { - if (VERBOSE) - logerror("%s('%s'): configin_w (%d)\n", shortname(), basetag(), state); + LOG("%s: configin_w (%d)\n", shortname(), state); if (state == 0) { @@ -145,3 +138,5 @@ WRITE_LINE_MEMBER( a2058_device::cfgin_w ) write16_delegate(*this, FUNC(amiga_autoconfig::autoconfig_write)), 0xffff); } } + +} } } // namespace bus::amiga::zorro |