summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/namco62.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/namco62.h')
-rw-r--r--src/mame/machine/namco62.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/mame/machine/namco62.h b/src/mame/machine/namco62.h
index 6ce390fd6f5..082a49e345d 100644
--- a/src/mame/machine/namco62.h
+++ b/src/mame/machine/namco62.h
@@ -21,7 +21,27 @@ READ8_DEVICE_HANDLER( namco_62xx_read );
WRITE8_DEVICE_HANDLER( namco_62xx_write );
-DECLARE_LEGACY_DEVICE(NAMCO_62XX, namco_62xx);
+class namco_62xx_device : public device_t
+{
+public:
+ namco_62xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ ~namco_62xx_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 const rom_entry *device_rom_region() const;
+ virtual machine_config_constructor device_mconfig_additions() const;
+private:
+ // internal state
+ void *m_token;
+};
+
+extern const device_type NAMCO_62XX;
+
#endif /* NAMCO62_H */