summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-06-25 10:58:02 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-06-25 10:58:02 -0400
commitae2086be7298c9cb763bd4cdedeb37b9460cc141 (patch)
tree0da6a79a50991b76f78858aa3ef06e9d65aee324 /src/devices/machine
parent7abfe8ea4c6b9b18bcf39dd8f8f55159db4d75c3 (diff)
hd63450: Configure device clock (not used yet); back out custom constructor (nw)
Diffstat (limited to 'src/devices/machine')
-rw-r--r--src/devices/machine/hd63450.cpp2
-rw-r--r--src/devices/machine/hd63450.h11
2 files changed, 5 insertions, 8 deletions
diff --git a/src/devices/machine/hd63450.cpp b/src/devices/machine/hd63450.cpp
index d3921b2dd04..ecefb13f908 100644
--- a/src/devices/machine/hd63450.cpp
+++ b/src/devices/machine/hd63450.cpp
@@ -9,7 +9,7 @@
#include "emu.h"
#include "hd63450.h"
-DEFINE_DEVICE_TYPE(HD63450, hd63450_device, "hd63450", "Hitachi HD63450 DMA Controller")
+DEFINE_DEVICE_TYPE(HD63450, hd63450_device, "hd63450", "Hitachi HD63450 DMAC")
hd63450_device::hd63450_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, HD63450, tag, owner, clock),
diff --git a/src/devices/machine/hd63450.h b/src/devices/machine/hd63450.h
index cf3220b2ba1..17fe924bc9d 100644
--- a/src/devices/machine/hd63450.h
+++ b/src/devices/machine/hd63450.h
@@ -40,6 +40,9 @@
#define MCFG_HD63450_DMA_WRITE_3_CB(_devcb) \
devcb = &downcast<hd63450_device &>(*device).set_dma_write_3_callback(DEVCB_##_devcb);
+#define MCFG_HD63450_CPU(_tag) \
+ downcast<hd63450_device &>(*device).set_cpu_tag(_tag);
+
#define MCFG_HD63450_CLOCKS(_clk1, _clk2, _clk3, _clk4) \
downcast<hd63450_device &>(*device).set_our_clocks(_clk1, _clk2, _clk3, _clk4);
@@ -49,13 +52,6 @@
class hd63450_device : public device_t
{
public:
- template <typename T>
- hd63450_device(const machine_config &mconfig, const char *tag, device_t *owner, T &&cpu_tag)
- : hd63450_device(mconfig, tag, owner, (uint32_t)0)
- {
- m_cpu.set_tag(std::forward<T>(cpu_tag));
- }
-
hd63450_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
template <class Object> devcb_base &set_dma_end_callback(Object &&cb) { return m_dma_end.set_callback(std::forward<Object>(cb)); }
@@ -69,6 +65,7 @@ public:
template <class Object> devcb_base &set_dma_write_2_callback(Object &&cb) { return m_dma_write_2.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_dma_write_3_callback(Object &&cb) { return m_dma_write_3.set_callback(std::forward<Object>(cb)); }
+ template <typename T> void set_cpu_tag(T &&cpu_tag) { m_cpu.set_tag(std::forward<T>(cpu_tag)); }
void set_our_clocks(const attotime &clk1, const attotime &clk2, const attotime &clk3, const attotime &clk4)
{
m_our_clock[0] = clk1;