summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/video/i8275.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/video/i8275.h')
-rw-r--r--src/emu/video/i8275.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/emu/video/i8275.h b/src/emu/video/i8275.h
index 689a7f6b046..350b285f4de 100644
--- a/src/emu/video/i8275.h
+++ b/src/emu/video/i8275.h
@@ -18,7 +18,26 @@
MACROS
***************************************************************************/
-DECLARE_LEGACY_DEVICE(I8275, i8275);
+class i8275_device : public device_t
+{
+public:
+ i8275_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ ~i8275_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 I8275;
+
/***************************************************************************
TYPE DEFINITIONS