summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/mc6846.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/machine/mc6846.h')
-rw-r--r--src/mess/machine/mc6846.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/mess/machine/mc6846.h b/src/mess/machine/mc6846.h
index 7373543f1a2..892340ef78e 100644
--- a/src/mess/machine/mc6846.h
+++ b/src/mess/machine/mc6846.h
@@ -9,7 +9,26 @@
#ifndef MC6846_H
#define MC6846_H
-DECLARE_LEGACY_DEVICE(MC6846, mc6846);
+class mc6846_device : public device_t
+{
+public:
+ mc6846_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ ~mc6846_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 MC6846;
+
/* ---------- configuration ------------ */