summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/video/dl1416.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/video/dl1416.h')
-rw-r--r--src/mess/video/dl1416.h36
1 files changed, 34 insertions, 2 deletions
diff --git a/src/mess/video/dl1416.h b/src/mess/video/dl1416.h
index 85169cba8aa..a0fd4766bc7 100644
--- a/src/mess/video/dl1416.h
+++ b/src/mess/video/dl1416.h
@@ -53,7 +53,39 @@ WRITE_LINE_DEVICE_HANDLER( dl1416_cu_w ); /* cursor enable */
WRITE8_DEVICE_HANDLER( dl1416_data_w );
/* device get info callback */
-DECLARE_LEGACY_DEVICE(DL1416B, dl1416b);
-DECLARE_LEGACY_DEVICE(DL1416T, dl1416t);
+class dl1416_device : public device_t
+{
+public:
+ dl1416_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
+ ~dl1416_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;
+};
+
+class dl1416b_device : public dl1416_device
+{
+public:
+ dl1416b_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+};
+
+extern const device_type DL1416B;
+
+class dl1416t_device : public dl1416_device
+{
+public:
+ dl1416t_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+};
+
+extern const device_type DL1416T;
+
#endif /* DL1416_H_ */