summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/sst39vfx.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/machine/sst39vfx.h')
-rw-r--r--src/mess/machine/sst39vfx.h33
1 files changed, 31 insertions, 2 deletions
diff --git a/src/mess/machine/sst39vfx.h b/src/mess/machine/sst39vfx.h
index c4e9d10ecbe..59fdf3ed75b 100644
--- a/src/mess/machine/sst39vfx.h
+++ b/src/mess/machine/sst39vfx.h
@@ -29,7 +29,26 @@ struct _sst39vfx_config
MACROS
***************************************************************************/
-DECLARE_LEGACY_DEVICE(SST39VF020, sst39vf020);
+class sst39vf020_device : public device_t
+{
+public:
+ sst39vf020_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ sst39vf020_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
+ ~sst39vf020_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 SST39VF020;
+
#define MCFG_SST39VF020_ADD(_tag, _config) \
MCFG_DEVICE_ADD(_tag, SST39VF020, 0) \
@@ -38,7 +57,17 @@ DECLARE_LEGACY_DEVICE(SST39VF020, sst39vf020);
#define MCFG_SST39VF020_REMOVE(_tag) \
MCFG_DEVICE_REMOVE(_tag)
-DECLARE_LEGACY_DEVICE(SST39VF400A, sst39vf400a);
+class sst39vf400a_device : public sst39vf020_device
+{
+public:
+ sst39vf400a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+protected:
+ // device-level overrides
+ virtual void device_start();
+};
+
+extern const device_type SST39VF400A;
+
#define MCFG_SST39VF400A_ADD(_tag,_config) \
MCFG_DEVICE_ADD(_tag, SST39VF400A, 0) \