summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/adc1038.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/machine/adc1038.h')
-rw-r--r--src/emu/machine/adc1038.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/emu/machine/adc1038.h b/src/emu/machine/adc1038.h
index 47dcee0d862..a154af090e9 100644
--- a/src/emu/machine/adc1038.h
+++ b/src/emu/machine/adc1038.h
@@ -31,7 +31,26 @@ struct _adc1038_interface
MACROS / CONSTANTS
***************************************************************************/
-DECLARE_LEGACY_DEVICE(ADC1038, adc1038);
+class adc1038_device : public device_t
+{
+public:
+ adc1038_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ ~adc1038_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 ADC1038;
+
#define MCFG_ADC1038_ADD(_tag, _config) \
MCFG_DEVICE_ADD(_tag, ADC1038, 0) \