summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/k056800.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/k056800.h')
-rw-r--r--src/emu/sound/k056800.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/emu/sound/k056800.h b/src/emu/sound/k056800.h
index 81afa200ae3..a36f8712d80 100644
--- a/src/emu/sound/k056800.h
+++ b/src/emu/sound/k056800.h
@@ -23,7 +23,26 @@ struct _k056800_interface
k056800_irq_cb irq_cb;
};
-DECLARE_LEGACY_DEVICE(K056800, k056800);
+class k056800_device : public device_t
+{
+public:
+ k056800_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ ~k056800_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();
+ virtual void device_reset();
+private:
+ // internal state
+ void *m_token;
+};
+
+extern const device_type K056800;
+
/***************************************************************************