From 5ba993152ac02c303444c47fbeb0668b5940be8d Mon Sep 17 00:00:00 2001 From: Ryan Holtz Date: Thu, 16 Aug 2018 09:41:23 +0200 Subject: -bcreader, busmouse, cdp1852, cdp1871, cdp1879, cr511b, cs4031, cs8221, cxd1095: Removed MCFG, nw --- src/devices/machine/cs8221.h | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) (limited to 'src/devices/machine/cs8221.h') diff --git a/src/devices/machine/cs8221.h b/src/devices/machine/cs8221.h index f93b2a50c58..39f5bfcd709 100644 --- a/src/devices/machine/cs8221.h +++ b/src/devices/machine/cs8221.h @@ -20,29 +20,18 @@ #pragma once - - -//************************************************************************** -// INTERFACE CONFIGURATION MACROS -//************************************************************************** - -#define MCFG_CS8221_ADD(_tag, _cputag, _isatag, _biostag) \ - MCFG_DEVICE_ADD(_tag, CS8221, 0) \ - downcast(*device).set_cputag(_cputag); \ - downcast(*device).set_isatag(_isatag); \ - downcast(*device).set_biostag(_biostag); - - -//************************************************************************** -// TYPE DEFINITIONS -//************************************************************************** - -// ======================> cs8221_device - class cs8221_device : public device_t { public: // construction/destruction + cs8221_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, const char *cputag, const char *isatag, const char *biostag) + : cs8221_device(mconfig, tag, owner, clock) + { + set_cputag(cputag); + set_isatag(isatag); + set_biostag(biostag); + } + cs8221_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // inline configuration @@ -80,8 +69,6 @@ private: DECLARE_WRITE8_MEMBER( data_w ); }; - -// device type definition DECLARE_DEVICE_TYPE(CS8221, cs8221_device) #endif // MAME_MACHINE_CS8221_H -- cgit v1.2.3-70-g09d2