summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/upd71071.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/machine/upd71071.h')
-rw-r--r--src/mess/machine/upd71071.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/mess/machine/upd71071.h b/src/mess/machine/upd71071.h
index a5b644a557f..fad69044281 100644
--- a/src/mess/machine/upd71071.h
+++ b/src/mess/machine/upd71071.h
@@ -14,7 +14,25 @@ struct _upd71071_interface
int upd71071_dmarq(device_t* device,int state,int channel);
-DECLARE_LEGACY_DEVICE(UPD71071, upd71071);
+class upd71071_device : public device_t
+{
+public:
+ upd71071_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ ~upd71071_device() { global_free(m_token); }
+
+ // access to legacy token
+ void *token() const { assert(m_token != NULL); return m_token; }
+protected:
+ // device-level overrides
+ virtual void device_config_complete();
+ virtual void device_start();
+private:
+ // internal state
+ void *m_token;
+};
+
+extern const device_type UPD71071;
+
#define MCFG_UPD71071_ADD(_tag, _config) \
MCFG_DEVICE_ADD(_tag, UPD71071, 0) \