diff options
Diffstat (limited to 'src/devices/machine/vt83c461.cpp')
-rw-r--r-- | src/devices/machine/vt83c461.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/devices/machine/vt83c461.cpp b/src/devices/machine/vt83c461.cpp index 781fc34b9ca..e085924e107 100644 --- a/src/devices/machine/vt83c461.cpp +++ b/src/devices/machine/vt83c461.cpp @@ -3,13 +3,8 @@ #include "emu.h" #include "vt83c461.h" -/*************************************************************************** - DEBUGGING -***************************************************************************/ - -#define VERBOSE 0 - -#define LOG(x) do { if (VERBOSE) logerror x; } while (0) +//#define VERBOSE 1 +#include "logmacro.h" #define VT83C461_CONFIG_UNK 1 @@ -17,10 +12,10 @@ #define VT83C461_CONFIG_DATA 3 -const device_type VT83C461 = device_creator<vt83c461_device>; +DEFINE_DEVICE_TYPE(VT83C461, vt83c461_device, "vt83c461", "VIA VT83C461 IDE Controller") vt83c461_device::vt83c461_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : - ide_controller_32_device(mconfig, VT83C461, "VIA VT83C461", tag, owner, clock, "vt83c461", __FILE__), + ide_controller_32_device(mconfig, VT83C461, tag, owner, clock), m_config_unknown(0), m_config_register_num(0) { @@ -45,7 +40,7 @@ READ32_MEMBER( vt83c461_device::read_config ) uint32_t result = 0; /* logit */ - LOG(("%s:IDE via config read at %X, mem_mask=%d\n", machine().describe_context(), offset, mem_mask)); + LOG("%s:IDE via config read at %X, mem_mask=%d\n", machine().describe_context(), offset, mem_mask); switch(offset) { @@ -79,7 +74,7 @@ WRITE32_MEMBER( vt83c461_device::write_config ) // printf( "vt83c461 write config %04x %08x %04x\n", offset, data, mem_mask ); /* logit */ - LOG(("%s:IDE via config write to %X = %08X, mem_mask=%d\n", machine().describe_context(), offset, data, mem_mask)); + LOG("%s:IDE via config write to %X = %08X, mem_mask=%d\n", machine().describe_context(), offset, data, mem_mask); switch (offset) { |