summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/hd63450.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/hd63450.cpp')
-rw-r--r--src/devices/machine/hd63450.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/devices/machine/hd63450.cpp b/src/devices/machine/hd63450.cpp
index 2185103a484..9ff3e0ad107 100644
--- a/src/devices/machine/hd63450.cpp
+++ b/src/devices/machine/hd63450.cpp
@@ -9,10 +9,10 @@
#include "emu.h"
#include "hd63450.h"
-const device_type HD63450 = device_creator<hd63450_device>;
+DEFINE_DEVICE_TYPE(HD63450, hd63450_device, "hd63450", "Hitachi HD63450 DMA Controller")
hd63450_device::hd63450_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : device_t(mconfig, HD63450, "Hitachi HD63450", tag, owner, clock, "hd63450", __FILE__),
+ : device_t(mconfig, HD63450, tag, owner, clock),
m_dma_end(*this),
m_dma_error(*this),
m_dma_read_0(*this),
@@ -27,15 +27,15 @@ hd63450_device::hd63450_device(const machine_config &mconfig, const char *tag, d
m_cpu(nullptr)
{
for (int i = 0; i < 4; i++)
- {
- memset(&m_reg[i], 0, sizeof(m_reg[i]));
- m_timer[i] = nullptr;
- m_in_progress[i] = 0;
- m_transfer_size[i] = 0;
- m_halted[i] = 0;
- m_our_clock[i] = attotime::zero;
- m_burst_clock[i] = attotime::zero;
- }
+ {
+ memset(&m_reg[i], 0, sizeof(m_reg[i]));
+ m_timer[i] = nullptr;
+ m_in_progress[i] = 0;
+ m_transfer_size[i] = 0;
+ m_halted[i] = 0;
+ m_our_clock[i] = attotime::zero;
+ m_burst_clock[i] = attotime::zero;
+ }
}
//-------------------------------------------------