summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/68153bim.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/68153bim.cpp')
-rw-r--r--src/devices/machine/68153bim.cpp46
1 files changed, 20 insertions, 26 deletions
diff --git a/src/devices/machine/68153bim.cpp b/src/devices/machine/68153bim.cpp
index 4d9bd20d07a..85682cdeb31 100644
--- a/src/devices/machine/68153bim.cpp
+++ b/src/devices/machine/68153bim.cpp
@@ -59,9 +59,9 @@
// DEVICE DEFINITIONS
//**************************************************************************
// device type definition
-const device_type MC68153_CHANNEL = device_creator<bim68153_channel>;
-const device_type MC68153 = device_creator<bim68153_device>;
-const device_type EI68C153 = device_creator<ei68c153_device>;
+DEFINE_DEVICE_TYPE(MC68153_CHANNEL, bim68153_channel, "bim68153_channel", "68153 BIM channel")
+DEFINE_DEVICE_TYPE(MC68153, bim68153_device, "m68153bim", "Motorola MC68153 BIM")
+DEFINE_DEVICE_TYPE(EI68C153, ei68c153_device, "ei68c153", "EPIC EI68C153 BIM")
//-------------------------------------------------
// device_mconfig_additions -
@@ -86,35 +86,29 @@ machine_config_constructor bim68153_device::device_mconfig_additions() const
//-------------------------------------------------
// bim68153_device - constructor
//-------------------------------------------------
-bim68153_device::bim68153_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, uint32_t variant, const char *shortname, const char *source)
- : device_t(mconfig, type, name, tag, owner, clock, shortname, source)
- ,m_chn{{*this, CHN0_TAG}, {*this, CHN1_TAG}, {*this, CHN2_TAG}, {*this, CHN3_TAG}}
- ,m_out_int_cb(*this)
- ,m_out_intal0_cb(*this)
- ,m_out_intal1_cb(*this)
- ,m_out_iackout_cb(*this)
- ,m_iackin(ASSERT_LINE)
- ,m_irq_level(0)
+bim68153_device::bim68153_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t variant)
+ : device_t(mconfig, type, tag, owner, clock)
+ , m_chn{{*this, CHN0_TAG}, {*this, CHN1_TAG}, {*this, CHN2_TAG}, {*this, CHN3_TAG}}
+ , m_out_int_cb(*this)
+ , m_out_intal0_cb(*this)
+ , m_out_intal1_cb(*this)
+ , m_out_iackout_cb(*this)
+ , m_iackin(ASSERT_LINE)
+ , m_irq_level(0)
{
+ // FIXME: is the unused 'variant' parameter supposed to be useful for something?
LOG("%s\n", FUNCNAME);
}
bim68153_device::bim68153_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : device_t(mconfig, MC68153, "Motorola MC68153 BIM", tag, owner, clock, "m68153bim", __FILE__)
- ,m_chn{{*this, CHN0_TAG}, {*this, CHN1_TAG}, {*this, CHN2_TAG}, {*this, CHN3_TAG}}
- ,m_out_int_cb(*this)
- ,m_out_intal0_cb(*this)
- ,m_out_intal1_cb(*this)
- ,m_out_iackout_cb(*this)
- ,m_iackin(ASSERT_LINE)
- ,m_irq_level(0)
+ : bim68153_device(mconfig, MC68153, tag, owner, clock, TYPE_MC68153)
{
LOG("%s\n", FUNCNAME);
}
/* The EPIC EI68C153 is a CMOS implementation that is fully compatible with the bipolar MC68153 from Motorola */
ei68c153_device::ei68c153_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : bim68153_device(mconfig, EI68C153, "EPIC EI68C153 BIM", tag, owner, clock, TYPE_EI68C153, "ei68c153", __FILE__)
+ : bim68153_device(mconfig, EI68C153, tag, owner, clock, TYPE_EI68C153)
{
LOG("%s\n", FUNCNAME);
}
@@ -329,11 +323,11 @@ WRITE8_MEMBER( bim68153_device::write )
//**************************************************************************
bim68153_channel::bim68153_channel(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : device_t(mconfig, MC68153_CHANNEL, "BIM channel", tag, owner, clock, "bim68153_channel", __FILE__)
- ,m_out_iack_cb(*this)
- ,m_int_state(NONE)
- ,m_control(0)
- ,m_vector(0)
+ : device_t(mconfig, MC68153_CHANNEL, tag, owner, clock)
+ , m_out_iack_cb(*this)
+ , m_int_state(NONE)
+ , m_control(0)
+ , m_vector(0)
{
LOG("%s\n",FUNCNAME);
}