summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatarGravatar Aaron Giles <aaron@aarongiles.com>2010-06-11 20:37:50 +0000
committerGravatarGravatar Aaron Giles <aaron@aarongiles.com>2010-06-11 20:37:50 +0000
commit10f5966ea5b9745b9c8eb7ed1f7d901eaf586865 (patch) (github)
tree5c3f9e329d621341ea885a758adb1c40e3d600f8 /src
parent6e075a382388de032a1dd3ad8271d70728590a27 (diff)
downloadmame-10f5966ea5b9745b9c8eb7ed1f7d901eaf586865.tar.bz2
mame-10f5966ea5b9745b9c8eb7ed1f7d901eaf586865.zip
Split implementation for legacy devices into a separate macro. Updated all
devices to use this macro in their .c file. This greatly reduces the amount of work the linker has to do to combine all the instances, and reduces the final binary size when building with symbols. Unfortunately, in order to do it I had to switch back to macros from templates, but I can live with that for legacy devices.
Diffstat (limited to 'src')
-rw-r--r--src/emu/devlegcy.h178
-rw-r--r--src/emu/dimemory.h2
-rw-r--r--src/emu/machine/6522via.c3
-rw-r--r--src/emu/machine/6526cia.c4
-rw-r--r--src/emu/machine/6532riot.c3
-rw-r--r--src/emu/machine/6821pia.c3
-rw-r--r--src/emu/machine/6840ptm.c2
-rw-r--r--src/emu/machine/6850acia.c2
-rw-r--r--src/emu/machine/68681.c2
-rw-r--r--src/emu/machine/74123.c2
-rw-r--r--src/emu/machine/74148.c2
-rw-r--r--src/emu/machine/74153.c2
-rw-r--r--src/emu/machine/7474.c2
-rw-r--r--src/emu/machine/8237dma.c2
-rw-r--r--src/emu/machine/8255ppi.c2
-rw-r--r--src/emu/machine/8257dma.c3
-rw-r--r--src/emu/machine/adc083x.c6
-rw-r--r--src/emu/machine/adc1038.c3
-rw-r--r--src/emu/machine/adc1213x.c5
-rw-r--r--src/emu/machine/at28c16.c3
-rw-r--r--src/emu/machine/cdp1852.c3
-rw-r--r--src/emu/machine/ds1302.c3
-rw-r--r--src/emu/machine/ds2404.c3
-rw-r--r--src/emu/machine/f3853.c2
-rw-r--r--src/emu/machine/i2cmemdev.c3
-rw-r--r--src/emu/machine/i8243.c3
-rw-r--r--src/emu/machine/i8255a.c3
-rw-r--r--src/emu/machine/idectrl.c3
-rw-r--r--src/emu/machine/ins8154.c3
-rw-r--r--src/emu/machine/ins8250.c8
-rw-r--r--src/emu/machine/k033906.c3
-rw-r--r--src/emu/machine/k056230.c3
-rw-r--r--src/emu/machine/latch8.c3
-rw-r--r--src/emu/machine/ldcore.c4
-rw-r--r--src/emu/machine/mb14241.c3
-rw-r--r--src/emu/machine/mb3773.c3
-rw-r--r--src/emu/machine/mb87078.c2
-rw-r--r--src/emu/machine/msm6242.c3
-rw-r--r--src/emu/machine/pci.c3
-rw-r--r--src/emu/machine/pd4990a.c3
-rw-r--r--src/emu/machine/pic8259.c2
-rw-r--r--src/emu/machine/pit8253.c4
-rw-r--r--src/emu/machine/rp5h01.c3
-rw-r--r--src/emu/machine/rtc65271.c3
-rw-r--r--src/emu/machine/smc91c9x.c5
-rw-r--r--src/emu/machine/timekpr.c6
-rw-r--r--src/emu/machine/tms6100.c3
-rw-r--r--src/emu/machine/upd4701.c3
-rw-r--r--src/emu/machine/x2212.c2
-rw-r--r--src/emu/sound/2151intf.c3
-rw-r--r--src/emu/sound/2203intf.c3
-rw-r--r--src/emu/sound/2413intf.c3
-rw-r--r--src/emu/sound/2608intf.c3
-rw-r--r--src/emu/sound/2610intf.c4
-rw-r--r--src/emu/sound/2612intf.c4
-rw-r--r--src/emu/sound/262intf.c2
-rw-r--r--src/emu/sound/3526intf.c3
-rw-r--r--src/emu/sound/3812intf.c3
-rw-r--r--src/emu/sound/8950intf.c3
-rw-r--r--src/emu/sound/aica.c3
-rw-r--r--src/emu/sound/astrocde.c3
-rw-r--r--src/emu/sound/ay8910.c10
-rw-r--r--src/emu/sound/beep.c3
-rw-r--r--src/emu/sound/bsmt2000.c3
-rw-r--r--src/emu/sound/c140.c2
-rw-r--r--src/emu/sound/c352.c2
-rw-r--r--src/emu/sound/c6280.c2
-rw-r--r--src/emu/sound/cdda.c2
-rw-r--r--src/emu/sound/cdp1863.c3
-rw-r--r--src/emu/sound/cdp1864.c3
-rw-r--r--src/emu/sound/cdp1869.c3
-rw-r--r--src/emu/sound/cem3394.c2
-rw-r--r--src/emu/sound/dac.c3
-rw-r--r--src/emu/sound/digitalk.c3
-rw-r--r--src/emu/sound/discrete.c2
-rw-r--r--src/emu/sound/dmadac.c2
-rw-r--r--src/emu/sound/es5503.c2
-rw-r--r--src/emu/sound/es5506.c3
-rw-r--r--src/emu/sound/es8712.c2
-rw-r--r--src/emu/sound/flt_rc.c2
-rw-r--r--src/emu/sound/flt_vol.c2
-rw-r--r--src/emu/sound/gaelco.c3
-rw-r--r--src/emu/sound/hc55516.c5
-rw-r--r--src/emu/sound/ics2115.c2
-rw-r--r--src/emu/sound/iremga20.c2
-rw-r--r--src/emu/sound/k005289.c2
-rw-r--r--src/emu/sound/k007232.c2
-rw-r--r--src/emu/sound/k051649.c2
-rw-r--r--src/emu/sound/k053260.c2
-rw-r--r--src/emu/sound/k054539.c2
-rw-r--r--src/emu/sound/k056800.c3
-rw-r--r--src/emu/sound/mos6560.c3
-rw-r--r--src/emu/sound/msm5205.c2
-rw-r--r--src/emu/sound/msm5232.c2
-rw-r--r--src/emu/sound/multipcm.c1
-rw-r--r--src/emu/sound/n63701x.c2
-rw-r--r--src/emu/sound/namco.c4
-rw-r--r--src/emu/sound/nes_apu.c2
-rw-r--r--src/emu/sound/nile.c2
-rw-r--r--src/emu/sound/okim6258.c2
-rw-r--r--src/emu/sound/okim6376.c2
-rw-r--r--src/emu/sound/pokey.c2
-rw-r--r--src/emu/sound/psx.c2
-rw-r--r--src/emu/sound/qsound.c2
-rw-r--r--src/emu/sound/rf5c400.c2
-rw-r--r--src/emu/sound/rf5c68.c2
-rw-r--r--src/emu/sound/s14001a.c2
-rw-r--r--src/emu/sound/saa1099.c2
-rw-r--r--src/emu/sound/samples.c2
-rw-r--r--src/emu/sound/scsp.c2
-rw-r--r--src/emu/sound/segapcm.c3
-rw-r--r--src/emu/sound/sid6581.c3
-rw-r--r--src/emu/sound/sn76477.c2
-rw-r--r--src/emu/sound/sn76496.c10
-rw-r--r--src/emu/sound/snkwave.c2
-rw-r--r--src/emu/sound/sp0250.c3
-rw-r--r--src/emu/sound/sp0256.c2
-rw-r--r--src/emu/sound/speaker.c3
-rw-r--r--src/emu/sound/st0016.c2
-rw-r--r--src/emu/sound/t6w28.c2
-rw-r--r--src/emu/sound/tiaintf.c2
-rw-r--r--src/emu/sound/tms3615.c3
-rw-r--r--src/emu/sound/tms36xx.c2
-rw-r--r--src/emu/sound/tms5110.c10
-rw-r--r--src/emu/sound/tms5220.c6
-rw-r--r--src/emu/sound/upd7759.c2
-rw-r--r--src/emu/sound/vlm5030.c2
-rw-r--r--src/emu/sound/votrax.c2
-rw-r--r--src/emu/sound/vrender0.c2
-rw-r--r--src/emu/sound/wave.c3
-rw-r--r--src/emu/sound/x1_010.c2
-rw-r--r--src/emu/sound/ymf271.c3
-rw-r--r--src/emu/sound/ymf278b.c2
-rw-r--r--src/emu/sound/ymz280b.c2
-rw-r--r--src/emu/sound/zsg2.c2
-rw-r--r--src/emu/video/hd63484.c2
-rw-r--r--src/emu/video/mc6845.c9
-rw-r--r--src/emu/video/s2636.c2
-rw-r--r--src/emu/video/saa5050.c2
-rw-r--r--src/emu/video/tms9927.c6
-rw-r--r--src/emu/video/voodoo.c1
-rw-r--r--src/mame/audio/amiga.c1
-rw-r--r--src/mame/audio/cps3.c3
-rw-r--r--src/mame/audio/exidy.c3
-rw-r--r--src/mame/audio/exidy440.c1
-rw-r--r--src/mame/audio/flower.c3
-rw-r--r--src/mame/audio/geebee.c1
-rw-r--r--src/mame/audio/gomoku.c3
-rw-r--r--src/mame/audio/gridlee.c3
-rw-r--r--src/mame/audio/leland.c5
-rw-r--r--src/mame/audio/micro3d.c3
-rw-r--r--src/mame/audio/namco52.c3
-rw-r--r--src/mame/audio/namco54.c3
-rw-r--r--src/mame/audio/phoenix.c3
-rw-r--r--src/mame/audio/pleiads.c5
-rw-r--r--src/mame/audio/polepos.c3
-rw-r--r--src/mame/audio/redbaron.c1
-rw-r--r--src/mame/audio/segag80r.c1
-rw-r--r--src/mame/audio/segasnd.c1
-rw-r--r--src/mame/audio/seibu.c3
-rw-r--r--src/mame/audio/snes_snd.c3
-rw-r--r--src/mame/audio/snk6502.c3
-rw-r--r--src/mame/audio/taitosnd.c2
-rw-r--r--src/mame/audio/tiamc1.c2
-rw-r--r--src/mame/audio/tx1.c2
-rw-r--r--src/mame/audio/warpwarp.c1
-rw-r--r--src/mame/audio/wiping.c3
-rw-r--r--src/mame/drivers/mjkjidai.c1
-rw-r--r--src/mame/drivers/ninjaw.c1
-rw-r--r--src/mame/drivers/renegade.c1
-rw-r--r--src/mame/machine/atari_vg.c3
-rw-r--r--src/mame/machine/decocass.c3
-rw-r--r--src/mame/machine/mathbox.c3
-rw-r--r--src/mame/machine/namco06.c3
-rw-r--r--src/mame/machine/namco50.c3
-rw-r--r--src/mame/machine/namco51.c3
-rw-r--r--src/mame/machine/namco53.c3
-rw-r--r--src/mame/machine/namcoio.c3
-rw-r--r--src/mame/machine/namcoio.h4
-rw-r--r--src/mame/machine/naomibd.c3
-rw-r--r--src/mame/machine/nmk112.c3
-rw-r--r--src/mame/machine/segaic16.c5
-rw-r--r--src/mame/machine/taitoio.c5
-rw-r--r--src/mame/machine/ticket.c3
-rw-r--r--src/mame/tiny.mak1
-rw-r--r--src/mame/video/deco16ic.c3
-rw-r--r--src/mame/video/kan_pand.c3
-rw-r--r--src/mame/video/konicdev.c24
-rw-r--r--src/mame/video/konicdev.h4
-rw-r--r--src/mame/video/ppu2c0x.c11
-rw-r--r--src/mame/video/segaic16.c3
-rw-r--r--src/mame/video/taitoic.c12
-rw-r--r--src/mame/video/taitoic.h2
-rw-r--r--src/mame/video/vrender0.c3
194 files changed, 640 insertions, 124 deletions
diff --git a/src/emu/devlegcy.h b/src/emu/devlegcy.h
index e89325661b3..8093436a4a9 100644
--- a/src/emu/devlegcy.h
+++ b/src/emu/devlegcy.h
@@ -139,6 +139,66 @@ enum
// MACROS
//**************************************************************************
+// macro for declaring the configuration and device classes of a legacy device
+#define _DECLARE_LEGACY_DEVICE(name, basename, configclass, deviceclass, baseconfigclass, basedeviceclass) \
+ \
+DEVICE_GET_INFO( basename ); \
+ \
+class configclass; \
+ \
+class deviceclass : public basedeviceclass \
+{ \
+ friend class configclass; \
+ deviceclass(running_machine &_machine, const configclass &config); \
+}; \
+ \
+class configclass : public baseconfigclass \
+{ \
+ configclass(const machine_config &mconfig, device_type type, const char *tag, const device_config *owner, UINT32 clock); \
+ \
+public: \
+ static device_config *static_alloc_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock); \
+ virtual device_t *alloc_device(running_machine &machine) const; \
+}; \
+ \
+const device_type name = configclass::static_alloc_device_config
+
+// macro for defining the implementation needed for configuration and device classes
+#define _DEFINE_LEGACY_DEVICE(name, basename, configclass, deviceclass, baseconfigclass, basedeviceclass) \
+ \
+deviceclass::deviceclass(running_machine &_machine, const configclass &config) \
+ : basedeviceclass(_machine, config) \
+ { \
+ } \
+ \
+configclass::configclass(const machine_config &mconfig, device_type type, const char *tag, const device_config *owner, UINT32 clock) \
+ : baseconfigclass(mconfig, type, tag, owner, clock, DEVICE_GET_INFO_NAME(basename)) \
+{ \
+} \
+ \
+device_config *configclass::static_alloc_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock) \
+{ \
+ return global_alloc(configclass(mconfig, static_alloc_device_config, tag, owner, clock)); \
+} \
+ \
+device_t *configclass::alloc_device(running_machine &machine) const \
+{ \
+ return pool_alloc(machine_get_pool(machine), deviceclass(machine, *this)); \
+}
+
+// reduced macros that are easier to use, and map to the above two macros
+#define DECLARE_LEGACY_DEVICE(name, basename) _DECLARE_LEGACY_DEVICE(name, basename, basename##_device_config, basename##_device, legacy_device_config_base, legacy_device_base)
+#define DECLARE_LEGACY_SOUND_DEVICE(name, basename) _DECLARE_LEGACY_DEVICE(SOUND_##name, basename, basename##_sound_device_config, basename##_sound_device, legacy_sound_device_config_base, legacy_sound_device_base)
+#define DECLARE_LEGACY_NVRAM_DEVICE(name, basename) _DECLARE_LEGACY_DEVICE(name, basename, basename##_device_config, basename##_device, legacy_memory_device_config_base, legacy_memory_device_base)
+#define DECLARE_LEGACY_MEMORY_DEVICE(name, basename) _DECLARE_LEGACY_DEVICE(name, basename, basename##_device_config, basename##_device, legacy_nvram_device_config_base, legacy_nvram_device_base)
+
+#define DEFINE_LEGACY_DEVICE(name, basename) _DEFINE_LEGACY_DEVICE(name, basename, basename##_device_config, basename##_device, legacy_device_config_base, legacy_device_base)
+#define DEFINE_LEGACY_SOUND_DEVICE(name, basename) _DEFINE_LEGACY_DEVICE(SOUND_##name, basename, basename##_sound_device_config, basename##_sound_device, legacy_sound_device_config_base, legacy_sound_device_base)
+#define DEFINE_LEGACY_NVRAM_DEVICE(name, basename) _DEFINE_LEGACY_DEVICE(name, basename, basename##_device_config, basename##_device, legacy_memory_device_config_base, legacy_memory_device_base)
+#define DEFINE_LEGACY_MEMORY_DEVICE(name, basename) _DEFINE_LEGACY_DEVICE(name, basename, basename##_device_config, basename##_device, legacy_nvram_device_config_base, legacy_nvram_device_base)
+
+
+// macros to wrap legacy device functions
#define DEVICE_GET_INFO_NAME(name) device_get_config_##name
#define DEVICE_GET_INFO(name) void DEVICE_GET_INFO_NAME(name)(const device_config *device, UINT32 state, deviceinfo *info)
#define DEVICE_GET_INFO_CALL(name) DEVICE_GET_INFO_NAME(name)(device, state, info)
@@ -168,66 +228,6 @@ enum
#define DEVICE_NVRAM_CALL(name) DEVICE_NVRAM_NAME(name)(device, file, read_or_write)
-// defined types and such for a standard legacy device
-#define DECLARE_LEGACY_DEVICE(name, basename) \
- DEVICE_GET_INFO( basename ); \
- typedef legacy_device< \
- DEVICE_GET_INFO_NAME(basename), \
- legacy_device_base \
- > basename##_device; \
- typedef legacy_device_config< \
- DEVICE_GET_INFO_NAME(basename), \
- legacy_device_config_base, \
- basename##_device \
- > basename##_device_config; \
- const device_type name = basename##_device_config::static_alloc_device_config
-
-
-// defined types and such for a sound legacy device
-#define DECLARE_LEGACY_SOUND_DEVICE(name, basename) \
- DEVICE_GET_INFO( basename ); \
- typedef legacy_device< \
- DEVICE_GET_INFO_NAME(basename), \
- legacy_sound_device_base \
- > basename##_sound_device; \
- typedef legacy_device_config< \
- DEVICE_GET_INFO_NAME(basename), \
- legacy_sound_device_config_base, \
- basename##_sound_device \
- > basename##_sound_device_config; \
- const device_type SOUND_##name = basename##_sound_device_config::static_alloc_device_config
-
-
-// defined types and such for a memory legacy device
-#define DECLARE_LEGACY_MEMORY_DEVICE(name, basename) \
- DEVICE_GET_INFO( basename ); \
- typedef legacy_device< \
- DEVICE_GET_INFO_NAME(basename), \
- legacy_memory_device_base \
- > basename##_device; \
- typedef legacy_device_config< \
- DEVICE_GET_INFO_NAME(basename), \
- legacy_memory_device_config_base, \
- basename##_device \
- > basename##_device_config; \
- const device_type name = basename##_device_config::static_alloc_device_config
-
-
-// defined types and such for a memory legacy device
-#define DECLARE_LEGACY_NVRAM_DEVICE(name, basename) \
- DEVICE_GET_INFO( basename ); \
- typedef legacy_device< \
- DEVICE_GET_INFO_NAME(basename), \
- legacy_nvram_device_base \
- > basename##_device; \
- typedef legacy_device_config< \
- DEVICE_GET_INFO_NAME(basename), \
- legacy_nvram_device_config_base, \
- basename##_device \
- > basename##_device_config; \
- const device_type name = basename##_device_config::static_alloc_device_config
-
-
//**************************************************************************
// DEVICE_CONFIGURATION_MACROS
@@ -531,62 +531,4 @@ protected:
};
-// ======================> legacy_device_config
-
-// legacy_device_config template describes a new device_config derivative that implements
-// the old device callbacks
-template<
- device_get_config_func _get_config,
- class _config_base,
- class _running_class
->
-class legacy_device_config : public _config_base
-{
- // construction/destruction
- legacy_device_config(const machine_config &mconfig, device_type type, const char *tag, const device_config *owner, UINT32 clock)
- : _config_base(mconfig, type, tag, owner, clock, _get_config)
- {
- }
-
-public:
- // allocators
- static device_config *static_alloc_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
- {
- return global_alloc(legacy_device_config(mconfig, static_alloc_device_config, tag, owner, clock));
- }
-
- virtual device_t *alloc_device(running_machine &machine) const
- {
- return pool_alloc(machine_get_pool(machine), _running_class(machine, *this));
-// return auto_alloc(&machine, device_t(machine, *this));
- }
-};
-
-
-
-// ======================> legacy_device
-
-// legacy_device template describes a new device_t derivative that implements
-// the old device callbacks
-template<
- device_get_config_func _get_config,
- class _device_base
->
-class legacy_device : public _device_base
-{
- template<
- device_get_config_func __get_config,
- class __config_base,
- class __running_class
- >
- friend class legacy_device_config;
-
- legacy_device(running_machine &_machine, const legacy_device_config_base &config)
- : _device_base(_machine, config)
- {
- }
-};
-
-
-
#endif /* __DEVLEGCY_H__ */
diff --git a/src/emu/dimemory.h b/src/emu/dimemory.h
index 30223eedabe..013f813dcac 100644
--- a/src/emu/dimemory.h
+++ b/src/emu/dimemory.h
@@ -127,7 +127,7 @@ public:
m_internal_map(internal),
m_default_map(defmap) { }
- address_space_config(const char *name, endianness_t endian, UINT8 datawidth, UINT8 addrwidth, INT8 addrshift, UINT8 logwidth, UINT8 pageshift = 0, const addrmap_token *internal = NULL, const addrmap_token *defmap = NULL)
+ address_space_config(const char *name, endianness_t endian, UINT8 datawidth, UINT8 addrwidth, INT8 addrshift, UINT8 logwidth, UINT8 pageshift, const addrmap_token *internal = NULL, const addrmap_token *defmap = NULL)
: m_name(name),
m_endianness(endian),
m_databus_width(datawidth),
diff --git a/src/emu/machine/6522via.c b/src/emu/machine/6522via.c
index 5c539b00ace..0eafd16b8e5 100644
--- a/src/emu/machine/6522via.c
+++ b/src/emu/machine/6522via.c
@@ -1181,3 +1181,6 @@ DEVICE_GET_INFO(via6522)
case DEVINFO_STR_CREDITS: /* Nothing */ break;
}
}
+
+
+DEFINE_LEGACY_DEVICE(VIA6522, via6522);
diff --git a/src/emu/machine/6526cia.c b/src/emu/machine/6526cia.c
index 4f10566850d..a972aad0ab7 100644
--- a/src/emu/machine/6526cia.c
+++ b/src/emu/machine/6526cia.c
@@ -1001,3 +1001,7 @@ DEVICE_GET_INFO(cia8520)
default: DEVICE_GET_INFO_CALL(cia6526r1); break;
}
}
+
+DEFINE_LEGACY_DEVICE(MOS6526R1, cia6526r1);
+DEFINE_LEGACY_DEVICE(MOS6526R2, cia6526r2);
+DEFINE_LEGACY_DEVICE(MOS8520, cia8520);
diff --git a/src/emu/machine/6532riot.c b/src/emu/machine/6532riot.c
index a8298803a18..2dfbb37aff6 100644
--- a/src/emu/machine/6532riot.c
+++ b/src/emu/machine/6532riot.c
@@ -512,3 +512,6 @@ DEVICE_GET_INFO( riot6532 )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_DEVICE(RIOT6532, riot6532);
diff --git a/src/emu/machine/6821pia.c b/src/emu/machine/6821pia.c
index 444afaa96a4..317440f7dd9 100644
--- a/src/emu/machine/6821pia.c
+++ b/src/emu/machine/6821pia.c
@@ -1335,3 +1335,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_DERIVED_FEATURES 0
#define DEVTEMPLATE_DERIVED_NAME "6822 PIA"
#include "devtempl.h"
+
+DEFINE_LEGACY_DEVICE(PIA6821, pia6821);
+DEFINE_LEGACY_DEVICE(PIA6822, pia6822);
diff --git a/src/emu/machine/6840ptm.c b/src/emu/machine/6840ptm.c
index 26573634bd5..b61989c0405 100644
--- a/src/emu/machine/6840ptm.c
+++ b/src/emu/machine/6840ptm.c
@@ -843,3 +843,5 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_RESET
#define DEVTEMPLATE_NAME "6840 PTM"
#include "devtempl.h"
+
+DEFINE_LEGACY_DEVICE(PTM6840, ptm6840);
diff --git a/src/emu/machine/6850acia.c b/src/emu/machine/6850acia.c
index 2e49c15df89..aab140713ff 100644
--- a/src/emu/machine/6850acia.c
+++ b/src/emu/machine/6850acia.c
@@ -837,3 +837,5 @@ DEVICE_GET_INFO( acia6850 )
case DEVINFO_STR_CREDITS: /* Nothing */ break;
}
}
+
+DEFINE_LEGACY_DEVICE(ACIA6850, acia6850);
diff --git a/src/emu/machine/68681.c b/src/emu/machine/68681.c
index f31bc93da36..f9879fea708 100644
--- a/src/emu/machine/68681.c
+++ b/src/emu/machine/68681.c
@@ -794,3 +794,5 @@ DEVICE_GET_INFO(duart68681)
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+DEFINE_LEGACY_DEVICE(DUART68681, duart68681);
diff --git a/src/emu/machine/74123.c b/src/emu/machine/74123.c
index fd899470fd0..72cca0f23eb 100644
--- a/src/emu/machine/74123.c
+++ b/src/emu/machine/74123.c
@@ -237,3 +237,5 @@ DEVICE_GET_INFO( ttl74123 )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+DEFINE_LEGACY_DEVICE(TTL74123, ttl74123);
diff --git a/src/emu/machine/74148.c b/src/emu/machine/74148.c
index 7a9ff3cf085..14996123019 100644
--- a/src/emu/machine/74148.c
+++ b/src/emu/machine/74148.c
@@ -222,3 +222,5 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "74148"
#define DEVTEMPLATE_FAMILY "TTL"
#include "devtempl.h"
+
+DEFINE_LEGACY_DEVICE(TTL74148, ttl74148);
diff --git a/src/emu/machine/74153.c b/src/emu/machine/74153.c
index 897d5ea0126..eca2a2d6491 100644
--- a/src/emu/machine/74153.c
+++ b/src/emu/machine/74153.c
@@ -184,3 +184,5 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "74153"
#define DEVTEMPLATE_FAMILY "TTL"
#include "devtempl.h"
+
+DEFINE_LEGACY_DEVICE(TTL74153, ttl74153);
diff --git a/src/emu/machine/7474.c b/src/emu/machine/7474.c
index 4409dcee8d5..8c51a4a76e2 100644
--- a/src/emu/machine/7474.c
+++ b/src/emu/machine/7474.c
@@ -205,3 +205,5 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "7474"
#define DEVTEMPLATE_FAMILY "TTL"
#include "devtempl.h"
+
+DEFINE_LEGACY_DEVICE(TTL7474, ttl7474);
diff --git a/src/emu/machine/8237dma.c b/src/emu/machine/8237dma.c
index bce04b61cf7..880400c9396 100644
--- a/src/emu/machine/8237dma.c
+++ b/src/emu/machine/8237dma.c
@@ -673,3 +673,5 @@ DEVICE_GET_INFO( i8237 ) {
}
}
+
+DEFINE_LEGACY_DEVICE(I8237, i8237);
diff --git a/src/emu/machine/8255ppi.c b/src/emu/machine/8255ppi.c
index 5589fb46f8c..bf8fb52fbd5 100644
--- a/src/emu/machine/8255ppi.c
+++ b/src/emu/machine/8255ppi.c
@@ -640,3 +640,5 @@ DEVICE_GET_INFO(ppi8255) {
}
}
+
+DEFINE_LEGACY_DEVICE(PPI8255, ppi8255);
diff --git a/src/emu/machine/8257dma.c b/src/emu/machine/8257dma.c
index 6092244269e..5b6b3226d32 100644
--- a/src/emu/machine/8257dma.c
+++ b/src/emu/machine/8257dma.c
@@ -451,3 +451,6 @@ DEVICE_GET_INFO( i8257 )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_DEVICE(I8257, i8257);
diff --git a/src/emu/machine/adc083x.c b/src/emu/machine/adc083x.c
index af8dc183b34..d339826cc6b 100644
--- a/src/emu/machine/adc083x.c
+++ b/src/emu/machine/adc083x.c
@@ -531,3 +531,9 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_DERIVED_FEATURES 0
#define DEVTEMPLATE_DERIVED_NAME "A/D Converters 0838"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(ADC0831, adc0831);
+DEFINE_LEGACY_DEVICE(ADC0832, adc0832);
+DEFINE_LEGACY_DEVICE(ADC0834, adc0834);
+DEFINE_LEGACY_DEVICE(ADC0838, adc0838);
diff --git a/src/emu/machine/adc1038.c b/src/emu/machine/adc1038.c
index 5ffee842037..f2a1e7daf0d 100644
--- a/src/emu/machine/adc1038.c
+++ b/src/emu/machine/adc1038.c
@@ -172,3 +172,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "A/D Converters 1038"
#define DEVTEMPLATE_FAMILY "National Semiconductor A/D Converters 1038"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(ADC1038, adc1038);
diff --git a/src/emu/machine/adc1213x.c b/src/emu/machine/adc1213x.c
index bca94ed6606..56294b29785 100644
--- a/src/emu/machine/adc1213x.c
+++ b/src/emu/machine/adc1213x.c
@@ -370,3 +370,8 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_DERIVED_FEATURES 0
#define DEVTEMPLATE_DERIVED_NAME "A/D Converter 12132"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(ADC12130, adc12130);
+DEFINE_LEGACY_DEVICE(ADC12132, adc12132);
+DEFINE_LEGACY_DEVICE(ADC12138, adc12138);
diff --git a/src/emu/machine/at28c16.c b/src/emu/machine/at28c16.c
index 0b241aada45..2efb403c46a 100644
--- a/src/emu/machine/at28c16.c
+++ b/src/emu/machine/at28c16.c
@@ -229,3 +229,6 @@ DEVICE_GET_INFO(at28c16)
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_NVRAM_DEVICE(AT28C16, at28c16);
diff --git a/src/emu/machine/cdp1852.c b/src/emu/machine/cdp1852.c
index 2ad3b41ea7c..a6b0ee5c8a5 100644
--- a/src/emu/machine/cdp1852.c
+++ b/src/emu/machine/cdp1852.c
@@ -228,3 +228,6 @@ DEVICE_GET_INFO( cdp1852 )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_DEVICE(CDP1852, cdp1852);
diff --git a/src/emu/machine/ds1302.c b/src/emu/machine/ds1302.c
index fdad770932f..3ebaab9450c 100644
--- a/src/emu/machine/ds1302.c
+++ b/src/emu/machine/ds1302.c
@@ -225,3 +225,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "Dallas DS1302 RTC"
#define DEVTEMPLATE_FAMILY "Dallas DS1302 RTC"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(DS1302, ds1302);
diff --git a/src/emu/machine/ds2404.c b/src/emu/machine/ds2404.c
index b8b66bda455..5ab5ea5714c 100644
--- a/src/emu/machine/ds2404.c
+++ b/src/emu/machine/ds2404.c
@@ -353,3 +353,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "DS2404"
#define DEVTEMPLATE_FAMILY "NVRAM"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_NVRAM_DEVICE(DS2404, ds2404);
diff --git a/src/emu/machine/f3853.c b/src/emu/machine/f3853.c
index 81af2777716..13747c9c864 100644
--- a/src/emu/machine/f3853.c
+++ b/src/emu/machine/f3853.c
@@ -229,3 +229,5 @@ DEVICE_GET_INFO( f3853 )
}
}
+
+DEFINE_LEGACY_DEVICE(F3853, f3853);
diff --git a/src/emu/machine/i2cmemdev.c b/src/emu/machine/i2cmemdev.c
index 34ba2d1ae55..2f3f1d500ed 100644
--- a/src/emu/machine/i2cmemdev.c
+++ b/src/emu/machine/i2cmemdev.c
@@ -474,3 +474,6 @@ DEVICE_GET_INFO( i2cmem )
case DEVINFO_STR_CREDITS: strcpy( info->s, "Copyright Nicola Salmoria and the MAME Team" ); break;
}
}
+
+
+DEFINE_LEGACY_NVRAM_DEVICE(I2CMEM, i2cmem);
diff --git a/src/emu/machine/i8243.c b/src/emu/machine/i8243.c
index 7103977ddce..af3c137de10 100644
--- a/src/emu/machine/i8243.c
+++ b/src/emu/machine/i8243.c
@@ -184,3 +184,6 @@ DEVICE_GET_INFO( i8243 )
case DEVINFO_STR_CREDITS: /* Nothing */ break;
}
}
+
+
+DEFINE_LEGACY_DEVICE(I8243, i8243);
diff --git a/src/emu/machine/i8255a.c b/src/emu/machine/i8255a.c
index 2c7285613ce..b9c631a92e5 100644
--- a/src/emu/machine/i8255a.c
+++ b/src/emu/machine/i8255a.c
@@ -904,3 +904,6 @@ DEVICE_GET_INFO( i8255a )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright MESS Team"); break;
}
}
+
+
+DEFINE_LEGACY_DEVICE(I8255A, i8255a);
diff --git a/src/emu/machine/idectrl.c b/src/emu/machine/idectrl.c
index 811297bc7b7..9f443c31189 100644
--- a/src/emu/machine/idectrl.c
+++ b/src/emu/machine/idectrl.c
@@ -1979,3 +1979,6 @@ DEVICE_GET_INFO( ide_controller )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_DEVICE(IDE_CONTROLLER, ide_controller);
diff --git a/src/emu/machine/ins8154.c b/src/emu/machine/ins8154.c
index ba5173edcb6..27d3e80c5ee 100644
--- a/src/emu/machine/ins8154.c
+++ b/src/emu/machine/ins8154.c
@@ -267,3 +267,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_VERSION "1.1"
#define DEVTEMPLATE_CREDITS "Copyright MESS Team"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(INS8154, ins8154);
diff --git a/src/emu/machine/ins8250.c b/src/emu/machine/ins8250.c
index 568f3b7b9d4..41102ebd792 100644
--- a/src/emu/machine/ins8250.c
+++ b/src/emu/machine/ins8250.c
@@ -700,3 +700,11 @@ DEVICE_GET_INFO( pc16550d )
}
}
+
+
+DEFINE_LEGACY_DEVICE(INS8250, ins8250);
+DEFINE_LEGACY_DEVICE(INS8250A, ins8250a);
+DEFINE_LEGACY_DEVICE(NS16450, ns16450);
+DEFINE_LEGACY_DEVICE(NS16550, ns16550);
+DEFINE_LEGACY_DEVICE(NS16550A, ns16550a);
+DEFINE_LEGACY_DEVICE(PC16550D, pc16550d);
diff --git a/src/emu/machine/k033906.c b/src/emu/machine/k033906.c
index 5b4b4c631c7..eae724bb235 100644
--- a/src/emu/machine/k033906.c
+++ b/src/emu/machine/k033906.c
@@ -167,3 +167,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "Konami 033906"
#define DEVTEMPLATE_FAMILY "Konami PCI Bridge 033906"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(K033906, k033906);
diff --git a/src/emu/machine/k056230.c b/src/emu/machine/k056230.c
index 3d254225346..f5a5dbbed32 100644
--- a/src/emu/machine/k056230.c
+++ b/src/emu/machine/k056230.c
@@ -141,3 +141,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "Konami 056230"
#define DEVTEMPLATE_FAMILY "Konami Network Board 056230"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(K056230, k056230);
diff --git a/src/emu/machine/latch8.c b/src/emu/machine/latch8.c
index a2b66670bf8..0bdb024145f 100644
--- a/src/emu/machine/latch8.c
+++ b/src/emu/machine/latch8.c
@@ -254,3 +254,6 @@ DEVICE_GET_INFO( latch8 )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_DEVICE(LATCH8, latch8);
diff --git a/src/emu/machine/ldcore.c b/src/emu/machine/ldcore.c
index 365c2eab5f8..beb1921bf1a 100644
--- a/src/emu/machine/ldcore.c
+++ b/src/emu/machine/ldcore.c
@@ -1662,3 +1662,7 @@ DEVICE_GET_INFO( laserdisc )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_DEVICE(LASERDISC, laserdisc);
+DEFINE_LEGACY_SOUND_DEVICE(LASERDISC, laserdisc_sound);
diff --git a/src/emu/machine/mb14241.c b/src/emu/machine/mb14241.c
index 1023951fc9c..593bdae58a4 100644
--- a/src/emu/machine/mb14241.c
+++ b/src/emu/machine/mb14241.c
@@ -75,3 +75,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "MB14241"
#define DEVTEMPLATE_FAMILY "MB14241 Shifter IC"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(MB14241, mb14241);
diff --git a/src/emu/machine/mb3773.c b/src/emu/machine/mb3773.c
index c0edb5148b8..74a402ee4c1 100644
--- a/src/emu/machine/mb3773.c
+++ b/src/emu/machine/mb3773.c
@@ -112,3 +112,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "Fujistu MB3773"
#define DEVTEMPLATE_FAMILY "Fujistu Power Supply Monitor"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(MB3773, mb3773);
diff --git a/src/emu/machine/mb87078.c b/src/emu/machine/mb87078.c
index 81f518f17e2..3d5165b735b 100644
--- a/src/emu/machine/mb87078.c
+++ b/src/emu/machine/mb87078.c
@@ -274,3 +274,5 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_FAMILY "Fujitsu Volume Controller MB87078"
#include "devtempl.h"
+
+DEFINE_LEGACY_DEVICE(MB87078, mb87078);
diff --git a/src/emu/machine/msm6242.c b/src/emu/machine/msm6242.c
index cd1f1a4d190..2f84a309729 100644
--- a/src/emu/machine/msm6242.c
+++ b/src/emu/machine/msm6242.c
@@ -199,3 +199,6 @@ WRITE16_HANDLER( msm6242_lsb_w )
msm6242_w(space, offset, data);
}
#endif
+
+
+DEFINE_LEGACY_DEVICE(MSM6242, msm6242);
diff --git a/src/emu/machine/pci.c b/src/emu/machine/pci.c
index 5ebe0c3b038..4fb5a3989b2 100644
--- a/src/emu/machine/pci.c
+++ b/src/emu/machine/pci.c
@@ -263,3 +263,6 @@ DEVICE_GET_INFO( pci_bus )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_DEVICE(PCI_BUS, pci_bus);
diff --git a/src/emu/machine/pd4990a.c b/src/emu/machine/pd4990a.c
index dcb7c62adec..47996a3c0a7 100644
--- a/src/emu/machine/pd4990a.c
+++ b/src/emu/machine/pd4990a.c
@@ -532,3 +532,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "NEC uPD4990A"
#define DEVTEMPLATE_FAMILY "NEC uPD4990A Calendar & Clock"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(UPD4990A, upd4990a);
diff --git a/src/emu/machine/pic8259.c b/src/emu/machine/pic8259.c
index 88fcc9b9d3f..473a70d34d9 100644
--- a/src/emu/machine/pic8259.c
+++ b/src/emu/machine/pic8259.c
@@ -458,3 +458,5 @@ DEVICE_GET_INFO( pic8259 ) {
}
}
+
+DEFINE_LEGACY_DEVICE(PIC8259, pic8259);
diff --git a/src/emu/machine/pit8253.c b/src/emu/machine/pit8253.c
index f2e82cd031c..b7dd4c2f44e 100644
--- a/src/emu/machine/pit8253.c
+++ b/src/emu/machine/pit8253.c
@@ -1188,3 +1188,7 @@ DEVICE_GET_INFO( pit8254 ) {
default: DEVICE_GET_INFO_CALL(pit8253); break;
}
}
+
+
+DEFINE_LEGACY_DEVICE(PIT8253, pit8253);
+DEFINE_LEGACY_DEVICE(PIT8254, pit8254);
diff --git a/src/emu/machine/rp5h01.c b/src/emu/machine/rp5h01.c
index 08aee97d11c..504d5890967 100644
--- a/src/emu/machine/rp5h01.c
+++ b/src/emu/machine/rp5h01.c
@@ -211,3 +211,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "RP5H01"
#define DEVTEMPLATE_FAMILY "RP5H01"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(RP5H01, rp5h01);
diff --git a/src/emu/machine/rtc65271.c b/src/emu/machine/rtc65271.c
index 0e584d32fb6..ea43f512df9 100644
--- a/src/emu/machine/rtc65271.c
+++ b/src/emu/machine/rtc65271.c
@@ -717,3 +717,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "RTC65271"
#define DEVTEMPLATE_FAMILY "RTC"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_NVRAM_DEVICE(RTC65271, rtc65271);
diff --git a/src/emu/machine/smc91c9x.c b/src/emu/machine/smc91c9x.c
index 8bfc815ef7a..d04864ace2e 100644
--- a/src/emu/machine/smc91c9x.c
+++ b/src/emu/machine/smc91c9x.c
@@ -632,3 +632,8 @@ DEVICE_GET_INFO( smc91c96 )
default: DEVICE_GET_INFO_CALL(smc91c9x); break;
}
}
+
+
+DEFINE_LEGACY_DEVICE(SMC91C94, smc91c94);
+DEFINE_LEGACY_DEVICE(SMC91C96, smc91c96);
+
diff --git a/src/emu/machine/timekpr.c b/src/emu/machine/timekpr.c
index 6de5be00cab..4dfafc7370d 100644
--- a/src/emu/machine/timekpr.c
+++ b/src/emu/machine/timekpr.c
@@ -524,3 +524,9 @@ DEVICE_GET_INFO( mk48t08 )
default: DEVICE_GET_INFO_CALL(timekeeper); break;
}
}
+
+
+DEFINE_LEGACY_NVRAM_DEVICE(M48T02, m48t02);
+DEFINE_LEGACY_NVRAM_DEVICE(M48T35, m48t35);
+DEFINE_LEGACY_NVRAM_DEVICE(M48T58, m48t58);
+DEFINE_LEGACY_NVRAM_DEVICE(MK48T08, mk48t08);
diff --git a/src/emu/machine/tms6100.c b/src/emu/machine/tms6100.c
index 863a2219de0..90f61c0bedb 100644
--- a/src/emu/machine/tms6100.c
+++ b/src/emu/machine/tms6100.c
@@ -277,3 +277,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_DERIVED_NAME "M58819"
#include "devtempl.h"
+
+DEFINE_LEGACY_DEVICE(TMS6100, tms6100);
+DEFINE_LEGACY_DEVICE(M58819, m58819);
diff --git a/src/emu/machine/upd4701.c b/src/emu/machine/upd4701.c
index 27c8928305d..e96abb52ad3 100644
--- a/src/emu/machine/upd4701.c
+++ b/src/emu/machine/upd4701.c
@@ -312,3 +312,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "NEC uPD4701 Encoder"
#define DEVTEMPLATE_FAMILY "NEC uPD4701 Encoder"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(UPD4701, upd4701);
diff --git a/src/emu/machine/x2212.c b/src/emu/machine/x2212.c
index 735492b0a74..c32dde91ab6 100644
--- a/src/emu/machine/x2212.c
+++ b/src/emu/machine/x2212.c
@@ -152,3 +152,5 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_CLASS DEVICE_CLASS_PERIPHERAL
#include "devtempl.h"
+
+DEFINE_LEGACY_NVRAM_DEVICE(X2212, x2212);
diff --git a/src/emu/sound/2151intf.c b/src/emu/sound/2151intf.c
index 62cf396c4f9..996dafd1eea 100644
--- a/src/emu/sound/2151intf.c
+++ b/src/emu/sound/2151intf.c
@@ -140,3 +140,6 @@ DEVICE_GET_INFO( ym2151 )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(YM2151, ym2151);
diff --git a/src/emu/sound/2203intf.c b/src/emu/sound/2203intf.c
index 87b718d8b09..0b8175c3c41 100644
--- a/src/emu/sound/2203intf.c
+++ b/src/emu/sound/2203intf.c
@@ -206,3 +206,6 @@ DEVICE_GET_INFO( ym2203 )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(YM2203, ym2203);
diff --git a/src/emu/sound/2413intf.c b/src/emu/sound/2413intf.c
index f13eda13093..ab0309968cf 100644
--- a/src/emu/sound/2413intf.c
+++ b/src/emu/sound/2413intf.c
@@ -141,3 +141,6 @@ DEVICE_GET_INFO( ym2413 )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(YM2413, ym2413);
diff --git a/src/emu/sound/2608intf.c b/src/emu/sound/2608intf.c
index c593c1c80f2..21d099b6639 100644
--- a/src/emu/sound/2608intf.c
+++ b/src/emu/sound/2608intf.c
@@ -232,3 +232,6 @@ DEVICE_GET_INFO( ym2608 )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(YM2608, ym2608);
diff --git a/src/emu/sound/2610intf.c b/src/emu/sound/2610intf.c
index 6dbb4984f28..4031498acc3 100644
--- a/src/emu/sound/2610intf.c
+++ b/src/emu/sound/2610intf.c
@@ -256,3 +256,7 @@ DEVICE_GET_INFO( ym2610b )
default: DEVICE_GET_INFO_CALL(ym2610); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(YM2610, ym2610);
+DEFINE_LEGACY_SOUND_DEVICE(YM2610B, ym2610b);
diff --git a/src/emu/sound/2612intf.c b/src/emu/sound/2612intf.c
index 79a3d2fab2a..7c83c400e10 100644
--- a/src/emu/sound/2612intf.c
+++ b/src/emu/sound/2612intf.c
@@ -198,3 +198,7 @@ DEVICE_GET_INFO( ym3438 )
default: DEVICE_GET_INFO_CALL(ym2612); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(YM2612, ym2612);
+DEFINE_LEGACY_SOUND_DEVICE(YM3438, ym3438);
diff --git a/src/emu/sound/262intf.c b/src/emu/sound/262intf.c
index cd0013a3ed1..e2af706ef5a 100644
--- a/src/emu/sound/262intf.c
+++ b/src/emu/sound/262intf.c
@@ -158,3 +158,5 @@ DEVICE_GET_INFO( ymf262 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(YMF262, ymf262);
diff --git a/src/emu/sound/3526intf.c b/src/emu/sound/3526intf.c
index c0be65abb6e..d5bce06f4a4 100644
--- a/src/emu/sound/3526intf.c
+++ b/src/emu/sound/3526intf.c
@@ -165,3 +165,6 @@ DEVICE_GET_INFO( ym3526 )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(YM3526, ym3526);
diff --git a/src/emu/sound/3812intf.c b/src/emu/sound/3812intf.c
index a10be06165d..0a01ab59c5d 100644
--- a/src/emu/sound/3812intf.c
+++ b/src/emu/sound/3812intf.c
@@ -166,3 +166,6 @@ DEVICE_GET_INFO( ym3812 )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(YM3812, ym3812);
diff --git a/src/emu/sound/8950intf.c b/src/emu/sound/8950intf.c
index 92790fb24ab..83ffd3d5348 100644
--- a/src/emu/sound/8950intf.c
+++ b/src/emu/sound/8950intf.c
@@ -200,3 +200,6 @@ DEVICE_GET_INFO( y8950 )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(Y8950, y8950);
diff --git a/src/emu/sound/aica.c b/src/emu/sound/aica.c
index bab1fe77800..2455d8df731 100644
--- a/src/emu/sound/aica.c
+++ b/src/emu/sound/aica.c
@@ -1334,3 +1334,6 @@ DEVICE_GET_INFO( aica )
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(AICA, aica);
diff --git a/src/emu/sound/astrocde.c b/src/emu/sound/astrocde.c
index 527350c27e3..68ecfc5977a 100644
--- a/src/emu/sound/astrocde.c
+++ b/src/emu/sound/astrocde.c
@@ -330,3 +330,6 @@ DEVICE_GET_INFO( astrocade )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(ASTROCADE, astrocade);
diff --git a/src/emu/sound/ay8910.c b/src/emu/sound/ay8910.c
index 78a6f1c9235..38ef166a5fa 100644
--- a/src/emu/sound/ay8910.c
+++ b/src/emu/sound/ay8910.c
@@ -1071,3 +1071,13 @@ WRITE8_DEVICE_HANDLER( ay8910_data_w )
ay8910_data_address_w(device, 0, data);
#endif
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(AY8910, ay8910);
+DEFINE_LEGACY_SOUND_DEVICE(AY8912, ay8912);
+DEFINE_LEGACY_SOUND_DEVICE(AY8913, ay8913);
+DEFINE_LEGACY_SOUND_DEVICE(AY8930, ay8930);
+DEFINE_LEGACY_SOUND_DEVICE(YM2149, ym2149);
+DEFINE_LEGACY_SOUND_DEVICE(YM3439, ym3439);
+DEFINE_LEGACY_SOUND_DEVICE(YMZ284, ymz284);
+DEFINE_LEGACY_SOUND_DEVICE(YMZ294, ymz294);
diff --git a/src/emu/sound/beep.c b/src/emu/sound/beep.c
index c4df30a1889..61f6492b278 100644
--- a/src/emu/sound/beep.c
+++ b/src/emu/sound/beep.c
@@ -188,3 +188,6 @@ DEVICE_GET_INFO( beep )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright The MESS Team"); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(BEEP, beep);
diff --git a/src/emu/sound/bsmt2000.c b/src/emu/sound/bsmt2000.c
index d9255cb1f7f..f65deac88b3 100644
--- a/src/emu/sound/bsmt2000.c
+++ b/src/emu/sound/bsmt2000.c
@@ -482,3 +482,6 @@ DEVICE_GET_INFO( bsmt2000 )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(BSMT2000, bsmt2000);
diff --git a/src/emu/sound/c140.c b/src/emu/sound/c140.c
index 7ede0d62d15..fae9cbdbeeb 100644
--- a/src/emu/sound/c140.c
+++ b/src/emu/sound/c140.c
@@ -525,3 +525,5 @@ DEVICE_GET_INFO( c140 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(C140, c140);
diff --git a/src/emu/sound/c352.c b/src/emu/sound/c352.c
index 44e6c42dbcc..648c6805c0e 100644
--- a/src/emu/sound/c352.c
+++ b/src/emu/sound/c352.c
@@ -600,3 +600,5 @@ DEVICE_GET_INFO( c352 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(C352, c352);
diff --git a/src/emu/sound/c6280.c b/src/emu/sound/c6280.c
index 1898cca7bd8..705e2eacb34 100644
--- a/src/emu/sound/c6280.c
+++ b/src/emu/sound/c6280.c
@@ -372,3 +372,5 @@ DEVICE_GET_INFO( c6280 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(C6280, c6280);
diff --git a/src/emu/sound/cdda.c b/src/emu/sound/cdda.c
index a0b2eb353af..0a1863cdc82 100644
--- a/src/emu/sound/cdda.c
+++ b/src/emu/sound/cdda.c
@@ -317,3 +317,5 @@ DEVICE_GET_INFO( cdda )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(CDDA, cdda);
diff --git a/src/emu/sound/cdp1863.c b/src/emu/sound/cdp1863.c
index fb438e70141..17ddef13301 100644
--- a/src/emu/sound/cdp1863.c
+++ b/src/emu/sound/cdp1863.c
@@ -227,3 +227,6 @@ DEVICE_GET_INFO( cdp1863 )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright MESS Team"); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(CDP1863, cdp1863);
diff --git a/src/emu/sound/cdp1864.c b/src/emu/sound/cdp1864.c
index 6326020d202..dfb8b4d18fe 100644
--- a/src/emu/sound/cdp1864.c
+++ b/src/emu/sound/cdp1864.c
@@ -518,3 +518,6 @@ DEVICE_GET_INFO( cdp1864 )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright MESS Team"); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(CDP1864, cdp1864);
diff --git a/src/emu/sound/cdp1869.c b/src/emu/sound/cdp1869.c
index fca2cabcc6b..ae2a95682a8 100644
--- a/src/emu/sound/cdp1869.c
+++ b/src/emu/sound/cdp1869.c
@@ -943,3 +943,6 @@ DEVICE_GET_INFO( cdp1869 )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(CDP1869, cdp1869);
diff --git a/src/emu/sound/cem3394.c b/src/emu/sound/cem3394.c
index 7a8ddd6e4f5..908ea2a2fca 100644
--- a/src/emu/sound/cem3394.c
+++ b/src/emu/sound/cem3394.c
@@ -586,3 +586,5 @@ DEVICE_GET_INFO( cem3394 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(CEM3394, cem3394);
diff --git a/src/emu/sound/dac.c b/src/emu/sound/dac.c
index 04febd88d40..2d943b86a72 100644
--- a/src/emu/sound/dac.c
+++ b/src/emu/sound/dac.c
@@ -155,3 +155,6 @@ DEVICE_GET_INFO( dac )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(DAC, dac);
diff --git a/src/emu/sound/digitalk.c b/src/emu/sound/digitalk.c
index 1e2aa70b0f9..2b35232f99f 100644
--- a/src/emu/sound/digitalk.c
+++ b/src/emu/sound/digitalk.c
@@ -704,3 +704,6 @@ WRITE8_DEVICE_HANDLER( digitalker_data_w )
digitalker *dg = get_safe_token(device);
dg->data = data;
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(DIGITALKER, digitalker);
diff --git a/src/emu/sound/discrete.c b/src/emu/sound/discrete.c
index 907f0cf9e32..055cf721bfa 100644
--- a/src/emu/sound/discrete.c
+++ b/src/emu/sound/discrete.c
@@ -1087,3 +1087,5 @@ DEVICE_GET_INFO( discrete )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(DISCRETE, discrete);
diff --git a/src/emu/sound/dmadac.c b/src/emu/sound/dmadac.c
index 7d6ccef08b0..6f89c20a7f3 100644
--- a/src/emu/sound/dmadac.c
+++ b/src/emu/sound/dmadac.c
@@ -262,3 +262,5 @@ DEVICE_GET_INFO( dmadac )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(DMADAC, dmadac);
diff --git a/src/emu/sound/es5503.c b/src/emu/sound/es5503.c
index 82cb295016f..70b6839c6bf 100644
--- a/src/emu/sound/es5503.c
+++ b/src/emu/sound/es5503.c
@@ -527,3 +527,5 @@ DEVICE_GET_INFO( es5503 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(ES5503, es5503);
diff --git a/src/emu/sound/es5506.c b/src/emu/sound/es5506.c
index 49e7ced6d6b..dd34f7b389b 100644
--- a/src/emu/sound/es5506.c
+++ b/src/emu/sound/es5506.c
@@ -2130,3 +2130,6 @@ DEVICE_GET_INFO( es5506 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(ES5505, es5505);
+DEFINE_LEGACY_SOUND_DEVICE(ES5506, es5506);
diff --git a/src/emu/sound/es8712.c b/src/emu/sound/es8712.c
index 355faaf7bd4..2c3af96e35b 100644
--- a/src/emu/sound/es8712.c
+++ b/src/emu/sound/es8712.c
@@ -407,3 +407,5 @@ DEVICE_GET_INFO( es8712 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(ES8712, es8712);
diff --git a/src/emu/sound/flt_rc.c b/src/emu/sound/flt_rc.c
index 097a03586f7..f5010fd91ef 100644
--- a/src/emu/sound/flt_rc.c
+++ b/src/emu/sound/flt_rc.c
@@ -137,3 +137,5 @@ DEVICE_GET_INFO( filter_rc )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(FILTER_RC, filter_rc);
diff --git a/src/emu/sound/flt_vol.c b/src/emu/sound/flt_vol.c
index 1f4311db1e4..3c97eba0ebe 100644
--- a/src/emu/sound/flt_vol.c
+++ b/src/emu/sound/flt_vol.c
@@ -72,3 +72,5 @@ DEVICE_GET_INFO( filter_volume )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(FILTER_VOLUME, filter_volume);
diff --git a/src/emu/sound/gaelco.c b/src/emu/sound/gaelco.c
index bcfa8ed731c..da5890f0e6c 100644
--- a/src/emu/sound/gaelco.c
+++ b/src/emu/sound/gaelco.c
@@ -337,3 +337,6 @@ DEVICE_GET_INFO( gaelco_cg1v )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(GAELCO_GAE1, gaelco_gae1);
+DEFINE_LEGACY_SOUND_DEVICE(GAELCO_CG1V, gaelco_cg1v);
diff --git a/src/emu/sound/hc55516.c b/src/emu/sound/hc55516.c
index d719d136d2e..8f835ac74d4 100644
--- a/src/emu/sound/hc55516.c
+++ b/src/emu/sound/hc55516.c
@@ -343,3 +343,8 @@ DEVICE_GET_INFO( mc3418 )
default: DEVICE_GET_INFO_CALL(hc55516); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(HC55516, hc55516);
+DEFINE_LEGACY_SOUND_DEVICE(MC3417, mc3417);
+DEFINE_LEGACY_SOUND_DEVICE(MC3418, mc3418);
diff --git a/src/emu/sound/ics2115.c b/src/emu/sound/ics2115.c
index d86dc101b84..41244621798 100644
--- a/src/emu/sound/ics2115.c
+++ b/src/emu/sound/ics2115.c
@@ -618,3 +618,5 @@ DEVICE_GET_INFO( ics2115 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(ICS2115, ics2115);
diff --git a/src/emu/sound/iremga20.c b/src/emu/sound/iremga20.c
index 6bf09c152c4..a2610bd2289 100644
--- a/src/emu/sound/iremga20.c
+++ b/src/emu/sound/iremga20.c
@@ -293,3 +293,5 @@ DEVICE_GET_INFO( iremga20 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(IREMGA20, iremga20);
diff --git a/src/emu/sound/k005289.c b/src/emu/sound/k005289.c
index 11cceaed88d..7f1ae7d2fed 100644
--- a/src/emu/sound/k005289.c
+++ b/src/emu/sound/k005289.c
@@ -274,3 +274,5 @@ DEVICE_GET_INFO( k005289 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(K005289, k005289);
diff --git a/src/emu/sound/k007232.c b/src/emu/sound/k007232.c
index f22f19179c8..dc7d3fe23af 100644
--- a/src/emu/sound/k007232.c
+++ b/src/emu/sound/k007232.c
@@ -473,3 +473,5 @@ DEVICE_GET_INFO( k007232 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(K007232, k007232);
diff --git a/src/emu/sound/k051649.c b/src/emu/sound/k051649.c
index d16a13ba430..9a23376b986 100644
--- a/src/emu/sound/k051649.c
+++ b/src/emu/sound/k051649.c
@@ -244,3 +244,5 @@ DEVICE_GET_INFO( k051649 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(K051649, k051649);
diff --git a/src/emu/sound/k053260.c b/src/emu/sound/k053260.c
index a85398ccb43..2ed29c5f4b0 100644
--- a/src/emu/sound/k053260.c
+++ b/src/emu/sound/k053260.c
@@ -438,3 +438,5 @@ DEVICE_GET_INFO( k053260 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(K053260, k053260);
diff --git a/src/emu/sound/k054539.c b/src/emu/sound/k054539.c
index b80b80fc0ec..376a54bda9a 100644
--- a/src/emu/sound/k054539.c
+++ b/src/emu/sound/k054539.c
@@ -706,3 +706,5 @@ DEVICE_GET_INFO( k054539 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(K054539, k054539);
diff --git a/src/emu/sound/k056800.c b/src/emu/sound/k056800.c
index 959c426fb5b..1283830673b 100644
--- a/src/emu/sound/k056800.c
+++ b/src/emu/sound/k056800.c
@@ -172,3 +172,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "Konami 056800 MIRAC"
#define DEVTEMPLATE_FAMILY "Konami custom"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(K056800, k056800);
diff --git a/src/emu/sound/mos6560.c b/src/emu/sound/mos6560.c
index 63c73d383b1..ed50d20ed30 100644
--- a/src/emu/sound/mos6560.c
+++ b/src/emu/sound/mos6560.c
@@ -952,3 +952,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "MOS 6560 / 6561 VIC"
#define DEVTEMPLATE_FAMILY "MOS Video Interface Chip"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_SOUND_DEVICE(MOS656X, mos6560);
diff --git a/src/emu/sound/msm5205.c b/src/emu/sound/msm5205.c
index 071a4d69214..7e5920884e7 100644
--- a/src/emu/sound/msm5205.c
+++ b/src/emu/sound/msm5205.c
@@ -326,3 +326,5 @@ DEVICE_GET_INFO( msm5205 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(MSM5205, msm5205);
diff --git a/src/emu/sound/msm5232.c b/src/emu/sound/msm5232.c
index 14d4d119624..264e46db179 100644
--- a/src/emu/sound/msm5232.c
+++ b/src/emu/sound/msm5232.c
@@ -835,3 +835,5 @@ DEVICE_GET_INFO( msm5232 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(MSM5232, msm5232);
diff --git a/src/emu/sound/multipcm.c b/src/emu/sound/multipcm.c
index 8f9ccf56dc6..4dc47863e8a 100644
--- a/src/emu/sound/multipcm.c
+++ b/src/emu/sound/multipcm.c
@@ -700,3 +700,4 @@ DEVICE_GET_INFO( multipcm )
}
+DEFINE_LEGACY_SOUND_DEVICE(MULTIPCM, multipcm);
diff --git a/src/emu/sound/n63701x.c b/src/emu/sound/n63701x.c
index 5cbbb7510c4..2a0b6a98e76 100644
--- a/src/emu/sound/n63701x.c
+++ b/src/emu/sound/n63701x.c
@@ -185,3 +185,5 @@ DEVICE_GET_INFO( namco_63701x )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(NAMCO_63701X, namco_63701x);
diff --git a/src/emu/sound/namco.c b/src/emu/sound/namco.c
index ac42f5cf3e8..9e01a71f376 100644
--- a/src/emu/sound/namco.c
+++ b/src/emu/sound/namco.c
@@ -877,3 +877,7 @@ DEVICE_GET_INFO( namco_cus30 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(NAMCO, namco);
+DEFINE_LEGACY_SOUND_DEVICE(NAMCO_15XX, namco_15xx);
+DEFINE_LEGACY_SOUND_DEVICE(NAMCO_CUS30, namco_cus30);
diff --git a/src/emu/sound/nes_apu.c b/src/emu/sound/nes_apu.c
index 8190538a055..6e36f64f53a 100644
--- a/src/emu/sound/nes_apu.c
+++ b/src/emu/sound/nes_apu.c
@@ -792,3 +792,5 @@ DEVICE_GET_INFO( nesapu )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(NES, nesapu);
diff --git a/src/emu/sound/nile.c b/src/emu/sound/nile.c
index 5b4ebfaf1aa..bf39ee41abb 100644
--- a/src/emu/sound/nile.c
+++ b/src/emu/sound/nile.c
@@ -259,3 +259,5 @@ DEVICE_GET_INFO( nile )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(NILE, nile);
diff --git a/src/emu/sound/okim6258.c b/src/emu/sound/okim6258.c
index 6cd2f1464b8..2b263d50e9b 100644
--- a/src/emu/sound/okim6258.c
+++ b/src/emu/sound/okim6258.c
@@ -381,3 +381,5 @@ DEVICE_GET_INFO( okim6258 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(OKIM6258, okim6258);
diff --git a/src/emu/sound/okim6376.c b/src/emu/sound/okim6376.c
index 719f1ed29e1..aa925c4cf75 100644
--- a/src/emu/sound/okim6376.c
+++ b/src/emu/sound/okim6376.c
@@ -493,3 +493,5 @@ DEVICE_GET_INFO( okim6376 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(OKIM6376, okim6376);
diff --git a/src/emu/sound/pokey.c b/src/emu/sound/pokey.c
index 522f972c3f1..3df772adc77 100644
--- a/src/emu/sound/pokey.c
+++ b/src/emu/sound/pokey.c
@@ -1417,3 +1417,5 @@ DEVICE_GET_INFO( pokey )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(POKEY, pokey);
diff --git a/src/emu/sound/psx.c b/src/emu/sound/psx.c
index 63cfb6e4925..47ec3b1a670 100644
--- a/src/emu/sound/psx.c
+++ b/src/emu/sound/psx.c
@@ -728,3 +728,5 @@ DEVICE_GET_INFO( psxspu )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(PSXSPU, psxspu);
diff --git a/src/emu/sound/qsound.c b/src/emu/sound/qsound.c
index 9f8fe9912b2..cf46e358581 100644
--- a/src/emu/sound/qsound.c
+++ b/src/emu/sound/qsound.c
@@ -399,3 +399,5 @@ DEVICE_GET_INFO( qsound )
}
/**************** end of file ****************/
+
+DEFINE_LEGACY_SOUND_DEVICE(QSOUND, qsound);
diff --git a/src/emu/sound/rf5c400.c b/src/emu/sound/rf5c400.c
index d38afca6ebe..1dccd13583f 100644
--- a/src/emu/sound/rf5c400.c
+++ b/src/emu/sound/rf5c400.c
@@ -583,3 +583,5 @@ DEVICE_GET_INFO( rf5c400 )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team & hoot development team"); break;
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(RF5C400, rf5c400);
diff --git a/src/emu/sound/rf5c68.c b/src/emu/sound/rf5c68.c
index ea286477321..4e15188200e 100644
--- a/src/emu/sound/rf5c68.c
+++ b/src/emu/sound/rf5c68.c
@@ -273,3 +273,5 @@ DEVICE_GET_INFO( rf5c68 )
}
/**************** end of file ****************/
+
+DEFINE_LEGACY_SOUND_DEVICE(RF5C68, rf5c68);
diff --git a/src/emu/sound/s14001a.c b/src/emu/sound/s14001a.c
index 3d7bd1012f9..d9f79e0cab6 100644
--- a/src/emu/sound/s14001a.c
+++ b/src/emu/sound/s14001a.c
@@ -653,3 +653,5 @@ DEVICE_GET_INFO( s14001a )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Jonathan Gevaryahu"); break;
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(S14001A, s14001a);
diff --git a/src/emu/sound/saa1099.c b/src/emu/sound/saa1099.c
index 3320cee1d0a..bfe2c825800 100644
--- a/src/emu/sound/saa1099.c
+++ b/src/emu/sound/saa1099.c
@@ -463,3 +463,5 @@ DEVICE_GET_INFO( saa1099 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(SAA1099, saa1099);
diff --git a/src/emu/sound/samples.c b/src/emu/sound/samples.c
index de1e85c8fbe..0d64b2d4a02 100644
--- a/src/emu/sound/samples.c
+++ b/src/emu/sound/samples.c
@@ -536,3 +536,5 @@ DEVICE_GET_INFO( samples )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(SAMPLES, samples);
diff --git a/src/emu/sound/scsp.c b/src/emu/sound/scsp.c
index 90882dd95e7..7ba69bef6b5 100644
--- a/src/emu/sound/scsp.c
+++ b/src/emu/sound/scsp.c
@@ -1386,3 +1386,5 @@ DEVICE_GET_INFO( scsp )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(SCSP, scsp);
diff --git a/src/emu/sound/segapcm.c b/src/emu/sound/segapcm.c
index 3e2836b2d2c..13d73bc29aa 100644
--- a/src/emu/sound/segapcm.c
+++ b/src/emu/sound/segapcm.c
@@ -158,3 +158,6 @@ DEVICE_GET_INFO( segapcm )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(SEGAPCM, segapcm);
diff --git a/src/emu/sound/sid6581.c b/src/emu/sound/sid6581.c
index b7861311474..878db6e7519 100644
--- a/src/emu/sound/sid6581.c
+++ b/src/emu/sound/sid6581.c
@@ -121,3 +121,6 @@ DEVICE_GET_INFO( sid8580 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(SID6581, sid6581);
+DEFINE_LEGACY_SOUND_DEVICE(SID8580, sid8580);
diff --git a/src/emu/sound/sn76477.c b/src/emu/sound/sn76477.c
index 82170c8a499..a4bb9e4dd53 100644
--- a/src/emu/sound/sn76477.c
+++ b/src/emu/sound/sn76477.c
@@ -2484,3 +2484,5 @@ DEVICE_GET_INFO( sn76477 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(SN76477, sn76477);
diff --git a/src/emu/sound/sn76496.c b/src/emu/sound/sn76496.c
index 408c2b2b3e8..894a57e75a0 100644
--- a/src/emu/sound/sn76496.c
+++ b/src/emu/sound/sn76496.c
@@ -553,3 +553,13 @@ DEVICE_GET_INFO( smsiii )
default: DEVICE_GET_INFO_CALL(sn76496); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(SN76496, sn76496);
+DEFINE_LEGACY_SOUND_DEVICE(SN76489, sn76489);
+DEFINE_LEGACY_SOUND_DEVICE(SN76489A, sn76489a);
+DEFINE_LEGACY_SOUND_DEVICE(SN76494, sn76494);
+DEFINE_LEGACY_SOUND_DEVICE(SN94624, sn94624);
+DEFINE_LEGACY_SOUND_DEVICE(NCR7496, ncr7496);
+DEFINE_LEGACY_SOUND_DEVICE(GAMEGEAR, gamegear);
+DEFINE_LEGACY_SOUND_DEVICE(SMSIII, smsiii);
diff --git a/src/emu/sound/snkwave.c b/src/emu/sound/snkwave.c
index 14a3d31e661..0b9a30abf3c 100644
--- a/src/emu/sound/snkwave.c
+++ b/src/emu/sound/snkwave.c
@@ -186,3 +186,5 @@ DEVICE_GET_INFO( snkwave )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(SNKWAVE, snkwave);
diff --git a/src/emu/sound/sp0250.c b/src/emu/sound/sp0250.c
index 17b6bfc6a5f..2722bfef4ba 100644
--- a/src/emu/sound/sp0250.c
+++ b/src/emu/sound/sp0250.c
@@ -265,3 +265,6 @@ DEVICE_GET_INFO( sp0250 )
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(SP0250, sp0250);
diff --git a/src/emu/sound/sp0256.c b/src/emu/sound/sp0256.c
index c3b45eb5bd6..3814aeba898 100644
--- a/src/emu/sound/sp0256.c
+++ b/src/emu/sound/sp0256.c
@@ -1365,3 +1365,5 @@ DEVICE_GET_INFO( sp0256 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(SP0256, sp0256);
diff --git a/src/emu/sound/speaker.c b/src/emu/sound/speaker.c
index e48306e7d45..59e25e8f0ae 100644
--- a/src/emu/sound/speaker.c
+++ b/src/emu/sound/speaker.c
@@ -444,3 +444,6 @@ DEVICE_GET_INFO( speaker )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright The MESS Team"); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(SPEAKER, speaker);
diff --git a/src/emu/sound/st0016.c b/src/emu/sound/st0016.c
index e91562dce9d..7be3d5f4d31 100644
--- a/src/emu/sound/st0016.c
+++ b/src/emu/sound/st0016.c
@@ -173,3 +173,5 @@ DEVICE_GET_INFO( st0016 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(ST0016, st0016);
diff --git a/src/emu/sound/t6w28.c b/src/emu/sound/t6w28.c
index 4242febb1d9..b55a41e6ff8 100644
--- a/src/emu/sound/t6w28.c
+++ b/src/emu/sound/t6w28.c
@@ -392,3 +392,5 @@ DEVICE_GET_INFO( t6w28 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(T6W28, t6w28);
diff --git a/src/emu/sound/tiaintf.c b/src/emu/sound/tiaintf.c
index a26d9581809..96ff0cd0930 100644
--- a/src/emu/sound/tiaintf.c
+++ b/src/emu/sound/tiaintf.c
@@ -76,3 +76,5 @@ DEVICE_GET_INFO( tia )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(TIA, tia);
diff --git a/src/emu/sound/tms3615.c b/src/emu/sound/tms3615.c
index 6c9f12a468c..44b03223a18 100644
--- a/src/emu/sound/tms3615.c
+++ b/src/emu/sound/tms3615.c
@@ -119,3 +119,6 @@ DEVICE_GET_INFO( tms3615 )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(TMS3615, tms3615);
diff --git a/src/emu/sound/tms36xx.c b/src/emu/sound/tms36xx.c
index f245a7db53a..1cb8f74616c 100644
--- a/src/emu/sound/tms36xx.c
+++ b/src/emu/sound/tms36xx.c
@@ -552,3 +552,5 @@ DEVICE_GET_INFO( tms36xx )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(TMS36XX, tms36xx);
diff --git a/src/emu/sound/tms5110.c b/src/emu/sound/tms5110.c
index a8e5dcd7046..55d98c1a77e 100644
--- a/src/emu/sound/tms5110.c
+++ b/src/emu/sound/tms5110.c
@@ -1550,3 +1550,13 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_FAMILY "TI Speech"
#include "devtempl.h"
+
+DEFINE_LEGACY_SOUND_DEVICE(TMS5110, tms5110);
+DEFINE_LEGACY_SOUND_DEVICE(TMS5100, tms5100);
+DEFINE_LEGACY_SOUND_DEVICE(TMS5110A, tms5110a);
+DEFINE_LEGACY_SOUND_DEVICE(CD2801, cd2801);
+DEFINE_LEGACY_SOUND_DEVICE(TMC0281, tmc0281);
+DEFINE_LEGACY_SOUND_DEVICE(CD2802, cd2802);
+DEFINE_LEGACY_SOUND_DEVICE(M58817, m58817);
+
+DEFINE_LEGACY_DEVICE(TMSPROM, tmsprom);
diff --git a/src/emu/sound/tms5220.c b/src/emu/sound/tms5220.c
index 9bccd11e569..a04c47eeee7 100644
--- a/src/emu/sound/tms5220.c
+++ b/src/emu/sound/tms5220.c
@@ -1850,3 +1850,9 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_DERIVED_FEATURES DT_HAS_START
#define DEVTEMPLATE_DERIVED_NAME "TMS5200"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_SOUND_DEVICE(TMS5220C, tms5220c);
+DEFINE_LEGACY_SOUND_DEVICE(TMS5220, tms5220);
+DEFINE_LEGACY_SOUND_DEVICE(TMC0285, tmc0285);
+DEFINE_LEGACY_SOUND_DEVICE(TMS5200, tms5200);
diff --git a/src/emu/sound/upd7759.c b/src/emu/sound/upd7759.c
index 06e885e3d38..4a40daede82 100644
--- a/src/emu/sound/upd7759.c
+++ b/src/emu/sound/upd7759.c
@@ -768,3 +768,5 @@ DEVICE_GET_INFO( upd7759 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(UPD7759, upd7759);
diff --git a/src/emu/sound/vlm5030.c b/src/emu/sound/vlm5030.c
index 2ba587cf8d3..c62581c4bf4 100644
--- a/src/emu/sound/vlm5030.c
+++ b/src/emu/sound/vlm5030.c
@@ -722,3 +722,5 @@ DEVICE_GET_INFO( vlm5030 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(VLM5030, vlm5030);
diff --git a/src/emu/sound/votrax.c b/src/emu/sound/votrax.c
index 6166d518f5d..ad933245597 100644
--- a/src/emu/sound/votrax.c
+++ b/src/emu/sound/votrax.c
@@ -184,3 +184,5 @@ DEVICE_GET_INFO( votrax )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(VOTRAX, votrax);
diff --git a/src/emu/sound/vrender0.c b/src/emu/sound/vrender0.c
index 4c1445b7dc4..3945e170a98 100644
--- a/src/emu/sound/vrender0.c
+++ b/src/emu/sound/vrender0.c
@@ -267,3 +267,5 @@ DEVICE_GET_INFO( vrender0 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(VRENDER0, vrender0);
diff --git a/src/emu/sound/wave.c b/src/emu/sound/wave.c
index 25a0dbf1e98..8f629f1eaed 100644
--- a/src/emu/sound/wave.c
+++ b/src/emu/sound/wave.c
@@ -99,3 +99,6 @@ DEVICE_GET_INFO( wave )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright The MESS Team"); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(WAVE, wave);
diff --git a/src/emu/sound/x1_010.c b/src/emu/sound/x1_010.c
index 38c72704d99..25f5b19b978 100644
--- a/src/emu/sound/x1_010.c
+++ b/src/emu/sound/x1_010.c
@@ -311,3 +311,5 @@ DEVICE_GET_INFO( x1_010 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(X1_010, x1_010);
diff --git a/src/emu/sound/ymf271.c b/src/emu/sound/ymf271.c
index fd521708b14..700e73f9ae3 100644
--- a/src/emu/sound/ymf271.c
+++ b/src/emu/sound/ymf271.c
@@ -1832,3 +1832,6 @@ DEVICE_GET_INFO( ymf271 )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(YMF271, ymf271);
diff --git a/src/emu/sound/ymf278b.c b/src/emu/sound/ymf278b.c
index 2f573b1d23e..53237521333 100644
--- a/src/emu/sound/ymf278b.c
+++ b/src/emu/sound/ymf278b.c
@@ -736,3 +736,5 @@ DEVICE_GET_INFO( ymf278b )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(YMF278B, ymf278b);
diff --git a/src/emu/sound/ymz280b.c b/src/emu/sound/ymz280b.c
index dcb3a05d27b..9310d6c493c 100644
--- a/src/emu/sound/ymz280b.c
+++ b/src/emu/sound/ymz280b.c
@@ -970,3 +970,5 @@ DEVICE_GET_INFO( ymz280b )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(YMZ280B, ymz280b);
diff --git a/src/emu/sound/zsg2.c b/src/emu/sound/zsg2.c
index 7c5f01e973d..ca556352565 100644
--- a/src/emu/sound/zsg2.c
+++ b/src/emu/sound/zsg2.c
@@ -257,3 +257,5 @@ DEVICE_GET_INFO( zsg2 )
}
}
+
+DEFINE_LEGACY_SOUND_DEVICE(ZSG2, zsg2);
diff --git a/src/emu/video/hd63484.c b/src/emu/video/hd63484.c
index f099cbfd6d3..f532b3be7a4 100644
--- a/src/emu/video/hd63484.c
+++ b/src/emu/video/hd63484.c
@@ -1584,3 +1584,5 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_FAMILY "HD63484 Video Controller"
#include "devtempl.h"
+
+DEFINE_LEGACY_DEVICE(HD63484, hd63484);
diff --git a/src/emu/video/mc6845.c b/src/emu/video/mc6845.c
index 106b74dcab5..3a259f0b183 100644
--- a/src/emu/video/mc6845.c
+++ b/src/emu/video/mc6845.c
@@ -1132,3 +1132,12 @@ DEVICE_GET_INFO( sy6545_1 )
default: DEVICE_GET_INFO_CALL(mc6845); break;
}
}
+
+
+DEFINE_LEGACY_DEVICE(MC6845, mc6845);
+DEFINE_LEGACY_DEVICE(MC6845_1, mc6845_1);
+DEFINE_LEGACY_DEVICE(R6545_1, r6545_1);
+DEFINE_LEGACY_DEVICE(C6545_1, c6545_1);
+DEFINE_LEGACY_DEVICE(H46505, h46505);
+DEFINE_LEGACY_DEVICE(HD6845, hd6845);
+DEFINE_LEGACY_DEVICE(SY6545_1, sy6545_1);
diff --git a/src/emu/video/s2636.c b/src/emu/video/s2636.c
index 28d219e23f4..0d9be1439a9 100644
--- a/src/emu/video/s2636.c
+++ b/src/emu/video/s2636.c
@@ -368,3 +368,5 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_FAMILY "Signetics Video Chips"
#include "devtempl.h"
+
+DEFINE_LEGACY_DEVICE(S2636, s2636);
diff --git a/src/emu/video/saa5050.c b/src/emu/video/saa5050.c
index 0a1e6d503e0..52a1ad650d2 100644
--- a/src/emu/video/saa5050.c
+++ b/src/emu/video/saa5050.c
@@ -386,3 +386,5 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_FAMILY "SAA5050 Teletext Character Generator"
#include "devtempl.h"
+
+DEFINE_LEGACY_DEVICE(SAA5050, saa5050);
diff --git a/src/emu/video/tms9927.c b/src/emu/video/tms9927.c
index a756411fc8b..d4a6502254e 100644
--- a/src/emu/video/tms9927.c
+++ b/src/emu/video/tms9927.c
@@ -359,3 +359,9 @@ DEVICE_GET_INFO( crt5057 )
default: DEVICE_GET_INFO_CALL(tms9927); break;
}
}
+
+
+DEFINE_LEGACY_DEVICE(TMS9927, tms9927);
+DEFINE_LEGACY_DEVICE(CRT5027, crt5027);
+DEFINE_LEGACY_DEVICE(CRT5037, crt5037);
+DEFINE_LEGACY_DEVICE(CRT5057, crt5057);
diff --git a/src/emu/video/voodoo.c b/src/emu/video/voodoo.c
index 0b12b4328ba..38192c4981a 100644
--- a/src/emu/video/voodoo.c
+++ b/src/emu/video/voodoo.c
@@ -5294,6 +5294,7 @@ static void dump_rasterizer_stats(voodoo_state *v)
}
}
+DEFINE_LEGACY_DEVICE(VOODOO_GRAPHICS, voodoo);
/***************************************************************************
diff --git a/src/mame/audio/amiga.c b/src/mame/audio/amiga.c
index bfba8f19584..c2449ca7fdd 100644
--- a/src/mame/audio/amiga.c
+++ b/src/mame/audio/amiga.c
@@ -296,3 +296,4 @@ DEVICE_GET_INFO( amiga_sound )
}
+DEFINE_LEGACY_SOUND_DEVICE(AMIGA, amiga_sound);
diff --git a/src/mame/audio/cps3.c b/src/mame/audio/cps3.c
index cbe370c287c..7ae4d6620c9 100644
--- a/src/mame/audio/cps3.c
+++ b/src/mame/audio/cps3.c
@@ -171,3 +171,6 @@ READ32_HANDLER( cps3_sound_r )
return 0;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(CPS3, cps3_sound);
diff --git a/src/mame/audio/exidy.c b/src/mame/audio/exidy.c
index 35b6a78bd5c..52bd31b16fe 100644
--- a/src/mame/audio/exidy.c
+++ b/src/mame/audio/exidy.c
@@ -393,6 +393,7 @@ static DEVICE_START( exidy_sound )
DEVICE_START_CALL(common_sh_start);
}
+DEFINE_LEGACY_SOUND_DEVICE(EXIDY, exidy_sound);
/*************************************
*
@@ -816,6 +817,7 @@ DEVICE_GET_INFO( venture_sound )
}
DECLARE_LEGACY_SOUND_DEVICE(EXIDY_VENTURE, venture_sound);
+DEFINE_LEGACY_SOUND_DEVICE(EXIDY_VENTURE, venture_sound);
static ADDRESS_MAP_START( venture_audio_map, ADDRESS_SPACE_PROGRAM, 8 )
@@ -1042,6 +1044,7 @@ DEVICE_GET_INFO( victory_sound )
DECLARE_LEGACY_SOUND_DEVICE(EXIDY_VICTORY, victory_sound);
+DEFINE_LEGACY_SOUND_DEVICE(EXIDY_VICTORY, victory_sound);
static ADDRESS_MAP_START( victory_audio_map, ADDRESS_SPACE_PROGRAM, 8 )
diff --git a/src/mame/audio/exidy440.c b/src/mame/audio/exidy440.c
index f1ae102501f..ba57f0d5bde 100644
--- a/src/mame/audio/exidy440.c
+++ b/src/mame/audio/exidy440.c
@@ -929,6 +929,7 @@ DEVICE_GET_INFO( exidy440_sound )
DECLARE_LEGACY_SOUND_DEVICE(EXIDY440, exidy440_sound);
+DEFINE_LEGACY_SOUND_DEVICE(EXIDY440, exidy440_sound);
diff --git a/src/mame/audio/flower.c b/src/mame/audio/flower.c
index a02deadef89..2976115f142 100644
--- a/src/mame/audio/flower.c
+++ b/src/mame/audio/flower.c
@@ -308,3 +308,6 @@ popmessage("%02x%02x %02x%02x %02x%02x %02x%02x %02x%02x %02x%02x %02x%02x %02x%
voice->oneshotplaying = 0;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(FLOWER, flower_sound);
diff --git a/src/mame/audio/geebee.c b/src/mame/audio/geebee.c
index 6640986008d..334605a1c95 100644
--- a/src/mame/audio/geebee.c
+++ b/src/mame/audio/geebee.c
@@ -141,3 +141,4 @@ DEVICE_GET_INFO( geebee_sound )
}
+DEFINE_LEGACY_SOUND_DEVICE(GEEBEE, geebee_sound);
diff --git a/src/mame/audio/gomoku.c b/src/mame/audio/gomoku.c
index 74165d06418..ccba706bd72 100644
--- a/src/mame/audio/gomoku.c
+++ b/src/mame/audio/gomoku.c
@@ -275,3 +275,6 @@ WRITE8_HANDLER( gomoku_sound2_w )
voice->oneshotplaying = 0;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(GOMOKU, gomoku_sound);
diff --git a/src/mame/audio/gridlee.c b/src/mame/audio/gridlee.c
index a338706d296..33a1f0a87e5 100644
--- a/src/mame/audio/gridlee.c
+++ b/src/mame/audio/gridlee.c
@@ -184,3 +184,6 @@ fclose(f);
}
#endif
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(GRIDLEE, gridlee_sound);
diff --git a/src/mame/audio/leland.c b/src/mame/audio/leland.c
index 086e64cecff..3bdc9e35b01 100644
--- a/src/mame/audio/leland.c
+++ b/src/mame/audio/leland.c
@@ -586,6 +586,11 @@ DEVICE_GET_INFO( redline_80186_sound )
}
+DEFINE_LEGACY_SOUND_DEVICE(LELAND, leland_sound);
+DEFINE_LEGACY_SOUND_DEVICE(LELAND_80186, leland_80186_sound);
+DEFINE_LEGACY_SOUND_DEVICE(REDLINE_80186, redline_80186_sound);
+
+
static void leland_80186_reset(void)
{
struct i80186_state oldstate = i80186;
diff --git a/src/mame/audio/micro3d.c b/src/mame/audio/micro3d.c
index 3ab6f2461dd..103a88ecbd5 100644
--- a/src/mame/audio/micro3d.c
+++ b/src/mame/audio/micro3d.c
@@ -423,3 +423,6 @@ WRITE8_DEVICE_HANDLER( micro3d_upd7759_w )
upd7759_start_w(device, 0);
upd7759_start_w(device, 1);
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(MICRO3D, micro3d_sound);
diff --git a/src/mame/audio/namco52.c b/src/mame/audio/namco52.c
index 4e466c2e815..21f2dde38f7 100644
--- a/src/mame/audio/namco52.c
+++ b/src/mame/audio/namco52.c
@@ -235,3 +235,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "Namco 52xx"
#define DEVTEMPLATE_FAMILY "Namco I/O"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(NAMCO_52XX, namco_52xx);
diff --git a/src/mame/audio/namco54.c b/src/mame/audio/namco54.c
index 8779566b2b5..d26e9e354c1 100644
--- a/src/mame/audio/namco54.c
+++ b/src/mame/audio/namco54.c
@@ -191,3 +191,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "Namco 54xx"
#define DEVTEMPLATE_FAMILY "Namco I/O"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(NAMCO_54XX, namco_54xx);
diff --git a/src/mame/audio/phoenix.c b/src/mame/audio/phoenix.c
index 6366313fdc9..fbeb4e8dd41 100644
--- a/src/mame/audio/phoenix.c
+++ b/src/mame/audio/phoenix.c
@@ -554,3 +554,6 @@ DEVICE_GET_INFO( phoenix_sound )
case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(PHOENIX, phoenix_sound);
diff --git a/src/mame/audio/pleiads.c b/src/mame/audio/pleiads.c
index e4e4c3f4f7f..e4e5e861ec4 100644
--- a/src/mame/audio/pleiads.c
+++ b/src/mame/audio/pleiads.c
@@ -694,3 +694,8 @@ DEVICE_GET_INFO( popflame_sound )
case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break;
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(PLEIADS, pleiads_sound);
+DEFINE_LEGACY_SOUND_DEVICE(NAUGHTYB, naughtyb_sound);
+DEFINE_LEGACY_SOUND_DEVICE(POPFLAME, popflame_sound);
diff --git a/src/mame/audio/polepos.c b/src/mame/audio/polepos.c
index a878d609b1d..625eb9e1261 100644
--- a/src/mame/audio/polepos.c
+++ b/src/mame/audio/polepos.c
@@ -348,3 +348,6 @@ DISCRETE_SOUND_START(polepos)
DISCRETE_OUTPUT(POLEPOS_CHANL3_SND, 32767/2)
DISCRETE_OUTPUT(POLEPOS_CHANL4_SND, 32767/2)
DISCRETE_SOUND_END
+
+
+DEFINE_LEGACY_SOUND_DEVICE(POLEPOS, polepos_sound);
diff --git a/src/mame/audio/redbaron.c b/src/mame/audio/redbaron.c
index 115a15ba938..95578a9a651 100644
--- a/src/mame/audio/redbaron.c
+++ b/src/mame/audio/redbaron.c
@@ -225,3 +225,4 @@ DEVICE_GET_INFO( redbaron_sound )
}
+DEFINE_LEGACY_SOUND_DEVICE(REDBARON, redbaron_sound);
diff --git a/src/mame/audio/segag80r.c b/src/mame/audio/segag80r.c
index b6e0cdc7517..892c17f556d 100644
--- a/src/mame/audio/segag80r.c
+++ b/src/mame/audio/segag80r.c
@@ -31,6 +31,7 @@
DEVICE_GET_INFO( sega005_sound );
DECLARE_LEGACY_SOUND_DEVICE(005, sega005_sound);
+DEFINE_LEGACY_SOUND_DEVICE(005, sega005_sound);
diff --git a/src/mame/audio/segasnd.c b/src/mame/audio/segasnd.c
index 62508a78307..c109568d060 100644
--- a/src/mame/audio/segasnd.c
+++ b/src/mame/audio/segasnd.c
@@ -743,6 +743,7 @@ DEVICE_GET_INFO( usb_sound )
}
DECLARE_LEGACY_SOUND_DEVICE(USB, usb_sound);
+DEFINE_LEGACY_SOUND_DEVICE(USB, usb_sound);
diff --git a/src/mame/audio/seibu.c b/src/mame/audio/seibu.c
index c601d4a14bc..100d6d01056 100644
--- a/src/mame/audio/seibu.c
+++ b/src/mame/audio/seibu.c
@@ -563,3 +563,6 @@ ADDRESS_MAP_START( seibu3_adpcm_sound_map, ADDRESS_SPACE_PROGRAM, 8 )
AM_RANGE(0x601a, 0x601a) AM_DEVWRITE("adpcm2", seibu_adpcm_ctl_w)
AM_RANGE(0x8000, 0xffff) AM_ROMBANK("bank1")
ADDRESS_MAP_END
+
+
+DEFINE_LEGACY_SOUND_DEVICE(SEIBU_ADPCM, seibu_adpcm);
diff --git a/src/mame/audio/snes_snd.c b/src/mame/audio/snes_snd.c
index 987d4313bb8..04bbf22f4d1 100644
--- a/src/mame/audio/snes_snd.c
+++ b/src/mame/audio/snes_snd.c
@@ -1361,3 +1361,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "SNES Custom DSP (SPC700)"
#define DEVTEMPLATE_FAMILY "SNES Custom"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_SOUND_DEVICE(SNES, snes_sound);
diff --git a/src/mame/audio/snk6502.c b/src/mame/audio/snk6502.c
index 70cd2e08d23..8ddbec56b25 100644
--- a/src/mame/audio/snk6502.c
+++ b/src/mame/audio/snk6502.c
@@ -1210,3 +1210,6 @@ WRITE8_HANDLER( fantasy_speech_w )
snk6502_speech_w(space->machine, data, fantasy_table, 0);
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(SNK6502, snk6502_sound);
diff --git a/src/mame/audio/taitosnd.c b/src/mame/audio/taitosnd.c
index 53adea58c0d..a69e6b9698e 100644
--- a/src/mame/audio/taitosnd.c
+++ b/src/mame/audio/taitosnd.c
@@ -328,3 +328,5 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_FAMILY "Taito Audio Custom IC"
#include "devtempl.h"
+
+DEFINE_LEGACY_DEVICE(TC0140SYT, tc0140syt);
diff --git a/src/mame/audio/tiamc1.c b/src/mame/audio/tiamc1.c
index ced5453cc6c..decaf8ee7d7 100644
--- a/src/mame/audio/tiamc1.c
+++ b/src/mame/audio/tiamc1.c
@@ -326,3 +326,5 @@ DEVICE_GET_INFO( tiamc1_sound )
}
+
+DEFINE_LEGACY_SOUND_DEVICE(TIAMC1, tiamc1_sound);
diff --git a/src/mame/audio/tx1.c b/src/mame/audio/tx1.c
index 9987b7b2a63..60a9fc5740d 100644
--- a/src/mame/audio/tx1.c
+++ b/src/mame/audio/tx1.c
@@ -575,3 +575,5 @@ DEVICE_GET_INFO( buggyboy_sound )
}
+DEFINE_LEGACY_SOUND_DEVICE(BUGGYBOY, buggyboy_sound);
+DEFINE_LEGACY_SOUND_DEVICE(TX1, tx1_sound);
diff --git a/src/mame/audio/warpwarp.c b/src/mame/audio/warpwarp.c
index 83cd642bd97..952999c7263 100644
--- a/src/mame/audio/warpwarp.c
+++ b/src/mame/audio/warpwarp.c
@@ -233,3 +233,4 @@ DEVICE_GET_INFO( warpwarp_sound )
}
+DEFINE_LEGACY_SOUND_DEVICE(WARPWARP, warpwarp_sound);
diff --git a/src/mame/audio/wiping.c b/src/mame/audio/wiping.c
index bd49e0fa940..cd869768bba 100644
--- a/src/mame/audio/wiping.c
+++ b/src/mame/audio/wiping.c
@@ -257,3 +257,6 @@ WRITE8_HANDLER( wiping_sound_w )
}
}
}
+
+
+DEFINE_LEGACY_SOUND_DEVICE(WIPING, wiping_sound);
diff --git a/src/mame/drivers/mjkjidai.c b/src/mame/drivers/mjkjidai.c
index e0074373619..af057319bfb 100644
--- a/src/mame/drivers/mjkjidai.c
+++ b/src/mame/drivers/mjkjidai.c
@@ -94,6 +94,7 @@ DEVICE_GET_INFO( mjkjidai_adpcm )
}
DECLARE_LEGACY_SOUND_DEVICE(MJKJIDAI, mjkjidai_adpcm);
+DEFINE_LEGACY_SOUND_DEVICE(MJKJIDAI, mjkjidai_adpcm);
static void mjkjidai_adpcm_play (mjkjidai_adpcm_state *state, int offset, int length)
diff --git a/src/mame/drivers/ninjaw.c b/src/mame/drivers/ninjaw.c
index 758c6889e3e..6f6239cb5d9 100644
--- a/src/mame/drivers/ninjaw.c
+++ b/src/mame/drivers/ninjaw.c
@@ -691,6 +691,7 @@ static DEVICE_GET_INFO( subwoofer )
}
DECLARE_LEGACY_SOUND_DEVICE(SUBWOOFER, subwoofer);
+DEFINE_LEGACY_SOUND_DEVICE(SUBWOOFER, subwoofer);
#endif
diff --git a/src/mame/drivers/renegade.c b/src/mame/drivers/renegade.c
index 3465c57e02b..10028838b13 100644
--- a/src/mame/drivers/renegade.c
+++ b/src/mame/drivers/renegade.c
@@ -188,6 +188,7 @@ DEVICE_GET_INFO( renegade_adpcm )
}
DECLARE_LEGACY_SOUND_DEVICE(RENEGADE_ADPCM, renegade_adpcm);
+DEFINE_LEGACY_SOUND_DEVICE(RENEGADE_ADPCM, renegade_adpcm);
static WRITE8_HANDLER( adpcm_play_w )
diff --git a/src/mame/machine/atari_vg.c b/src/mame/machine/atari_vg.c
index 4c4a13f2e7a..bfbe2f98db8 100644
--- a/src/mame/machine/atari_vg.c
+++ b/src/mame/machine/atari_vg.c
@@ -148,3 +148,6 @@ DEVICE_GET_INFO( atari_vg_earom )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_NVRAM_DEVICE(ATARIVGEAROM, atari_vg_earom);
diff --git a/src/mame/machine/decocass.c b/src/mame/machine/decocass.c
index 963e7a0adad..568bc648be5 100644
--- a/src/mame/machine/decocass.c
+++ b/src/mame/machine/decocass.c
@@ -2251,3 +2251,6 @@ DEVICE_GET_INFO( decocass_tape )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_DEVICE(DECOCASS_TAPE, decocass_tape);
diff --git a/src/mame/machine/mathbox.c b/src/mame/machine/mathbox.c
index adfef71b16b..47387897be2 100644
--- a/src/mame/machine/mathbox.c
+++ b/src/mame/machine/mathbox.c
@@ -359,3 +359,6 @@ DEVICE_GET_INFO( mathbox )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_DEVICE(MATHBOX, mathbox);
diff --git a/src/mame/machine/namco06.c b/src/mame/machine/namco06.c
index f009f3abc8a..2f8b3131965 100644
--- a/src/mame/machine/namco06.c
+++ b/src/mame/machine/namco06.c
@@ -299,3 +299,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "Namco 06xx"
#define DEVTEMPLATE_FAMILY "Namco I/O"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(NAMCO_06XX, namco_06xx);
diff --git a/src/mame/machine/namco50.c b/src/mame/machine/namco50.c
index e502399594e..22ec0823cd3 100644
--- a/src/mame/machine/namco50.c
+++ b/src/mame/machine/namco50.c
@@ -303,3 +303,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "Namco 50xx"
#define DEVTEMPLATE_FAMILY "Namco I/O"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(NAMCO_50XX, namco_50xx);
diff --git a/src/mame/machine/namco51.c b/src/mame/machine/namco51.c
index 90db02351a2..fa47a2fc27e 100644
--- a/src/mame/machine/namco51.c
+++ b/src/mame/machine/namco51.c
@@ -448,3 +448,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "Namco 51xx"
#define DEVTEMPLATE_FAMILY "Namco I/O"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(NAMCO_51XX, namco_51xx);
diff --git a/src/mame/machine/namco53.c b/src/mame/machine/namco53.c
index a57a81788b0..30cf915ca48 100644
--- a/src/mame/machine/namco53.c
+++ b/src/mame/machine/namco53.c
@@ -203,3 +203,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "Namco 53xx"
#define DEVTEMPLATE_FAMILY "Namco I/O"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(NAMCO_53XX, namco_53xx);
diff --git a/src/mame/machine/namcoio.c b/src/mame/machine/namcoio.c
index 7b1db293c3a..0a61998ec31 100644
--- a/src/mame/machine/namcoio.c
+++ b/src/mame/machine/namcoio.c
@@ -551,3 +551,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "Namco 56xx, 58xx & 59xx"
#define DEVTEMPLATE_FAMILY "Namco I/O"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(NAMCO56XX, namcoio);
diff --git a/src/mame/machine/namcoio.h b/src/mame/machine/namcoio.h
index 9d28ec5e566..0ef79c75d87 100644
--- a/src/mame/machine/namcoio.h
+++ b/src/mame/machine/namcoio.h
@@ -17,8 +17,8 @@ struct _namcoio_interface
};
DECLARE_LEGACY_DEVICE(NAMCO56XX, namcoio);
-DECLARE_LEGACY_DEVICE(NAMCO58XX, namcoio);
-DECLARE_LEGACY_DEVICE(NAMCO59XX, namcoio);
+#define NAMCO58XX NAMCO56XX
+#define NAMCO59XX NAMCO56XX
/***************************************************************************
DEVICE CONFIGURATION MACROS
diff --git a/src/mame/machine/naomibd.c b/src/mame/machine/naomibd.c
index 038f73ec638..bbfc632ec10 100644
--- a/src/mame/machine/naomibd.c
+++ b/src/mame/machine/naomibd.c
@@ -1922,3 +1922,6 @@ DEVICE_GET_INFO( naomibd )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_NVRAM_DEVICE(NAOMI_BOARD, naomibd);
diff --git a/src/mame/machine/nmk112.c b/src/mame/machine/nmk112.c
index 8e1578d89c6..99226f47e44 100644
--- a/src/mame/machine/nmk112.c
+++ b/src/mame/machine/nmk112.c
@@ -161,3 +161,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "NMK 112"
#define DEVTEMPLATE_FAMILY "NMK 112 Bankswitch IC"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(NMK112, nmk112);
diff --git a/src/mame/machine/segaic16.c b/src/mame/machine/segaic16.c
index 921fec9b8be..887cb1de2dd 100644
--- a/src/mame/machine/segaic16.c
+++ b/src/mame/machine/segaic16.c
@@ -862,3 +862,8 @@ DEVICE_GET_INFO( ic_315_5250 )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_DEVICE(_315_5248, ic_315_5248);
+DEFINE_LEGACY_DEVICE(_315_5249, ic_315_5249);
+DEFINE_LEGACY_DEVICE(_315_5250, ic_315_5250);
diff --git a/src/mame/machine/taitoio.c b/src/mame/machine/taitoio.c
index a1ed7187cbd..97a104961ba 100644
--- a/src/mame/machine/taitoio.c
+++ b/src/mame/machine/taitoio.c
@@ -572,3 +572,8 @@ DEVICE_GET_INFO( tc0640fio )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_DEVICE(TC0220IOC, tc0220ioc);
+DEFINE_LEGACY_DEVICE(TC0510NIO, tc0510nio);
+DEFINE_LEGACY_DEVICE(TC0640FIO, tc0640fio);
diff --git a/src/mame/machine/ticket.c b/src/mame/machine/ticket.c
index 6d556597341..6f6339d36b2 100644
--- a/src/mame/machine/ticket.c
+++ b/src/mame/machine/ticket.c
@@ -163,3 +163,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "Ticket Dispenser"
#define DEVTEMPLATE_FAMILY "Generic"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(TICKET_DISPENSER, ticket);
diff --git a/src/mame/tiny.mak b/src/mame/tiny.mak
index c7b01ec75f0..dd11a7308b0 100644
--- a/src/mame/tiny.mak
+++ b/src/mame/tiny.mak
@@ -59,6 +59,7 @@ SOUNDS += TMS5220
SOUNDS += OKIM6295
SOUNDS += HC55516
SOUNDS += YM3812
+SOUNDS += CEM3394
diff --git a/src/mame/video/deco16ic.c b/src/mame/video/deco16ic.c
index fc6bc3ef7c5..e76ef4af41c 100644
--- a/src/mame/video/deco16ic.c
+++ b/src/mame/video/deco16ic.c
@@ -1379,3 +1379,6 @@ DEVICE_GET_INFO( deco16ic )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_DEVICE(DECO16IC, deco16ic);
diff --git a/src/mame/video/kan_pand.c b/src/mame/video/kan_pand.c
index a633c8a18ba..4b0ab5a88fd 100644
--- a/src/mame/video/kan_pand.c
+++ b/src/mame/video/kan_pand.c
@@ -324,3 +324,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "Kaneko Pandora - PX79C480FP-3"
#define DEVTEMPLATE_FAMILY "Kaneko Video Chips"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(KANEKO_PANDORA, kaneko_pandora);
diff --git a/src/mame/video/konicdev.c b/src/mame/video/konicdev.c
index a15fde78060..bbc26e64f10 100644
--- a/src/mame/video/konicdev.c
+++ b/src/mame/video/konicdev.c
@@ -11384,3 +11384,27 @@ DEVICE_GET_INFO( k037122 )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_DEVICE(K007121, k007121);
+DEFINE_LEGACY_DEVICE(K007342, k007342);
+DEFINE_LEGACY_DEVICE(K007420, k007420);
+DEFINE_LEGACY_DEVICE(K052109, k052109);
+DEFINE_LEGACY_DEVICE(K051960, k051960);
+DEFINE_LEGACY_DEVICE(K053244, k05324x);
+DEFINE_LEGACY_DEVICE(K053246, k053247);
+DEFINE_LEGACY_DEVICE(K055673, k055673);
+DEFINE_LEGACY_DEVICE(K051316, k051316);
+DEFINE_LEGACY_DEVICE(K053936, k053936);
+DEFINE_LEGACY_DEVICE(K053251, k053251);
+DEFINE_LEGACY_DEVICE(K054000, k054000);
+DEFINE_LEGACY_DEVICE(K051733, k051733);
+DEFINE_LEGACY_DEVICE(K056832, k056832);
+DEFINE_LEGACY_DEVICE(K055555, k055555);
+DEFINE_LEGACY_DEVICE(K054338, k054338);
+DEFINE_LEGACY_DEVICE(K053250, k053250);
+DEFINE_LEGACY_DEVICE(K053252, k053252);
+DEFINE_LEGACY_DEVICE(K001006, k001006);
+DEFINE_LEGACY_DEVICE(K001005, k001005);
+DEFINE_LEGACY_DEVICE(K001604, k001604);
+DEFINE_LEGACY_DEVICE(K037122, k037122);
diff --git a/src/mame/video/konicdev.h b/src/mame/video/konicdev.h
index 789169aa6a3..3ab368ccc80 100644
--- a/src/mame/video/konicdev.h
+++ b/src/mame/video/konicdev.h
@@ -172,9 +172,9 @@ DECLARE_LEGACY_DEVICE(K007420, k007420);
DECLARE_LEGACY_DEVICE(K052109, k052109);
DECLARE_LEGACY_DEVICE(K051960, k051960);
DECLARE_LEGACY_DEVICE(K053244, k05324x);
-DECLARE_LEGACY_DEVICE(K053245, k05324x);
+#define K053245 K053244
DECLARE_LEGACY_DEVICE(K053246, k053247);
-DECLARE_LEGACY_DEVICE(K053247, k053247);
+#define K053247 K053246
DECLARE_LEGACY_DEVICE(K055673, k055673);
DECLARE_LEGACY_DEVICE(K051316, k051316);
DECLARE_LEGACY_DEVICE(K053936, k053936);
diff --git a/src/mame/video/ppu2c0x.c b/src/mame/video/ppu2c0x.c
index 9f5d3c8e06f..0c5f36963e5 100644
--- a/src/mame/video/ppu2c0x.c
+++ b/src/mame/video/ppu2c0x.c
@@ -1475,3 +1475,14 @@ DEVICE_GET_INFO(ppu2c07)
default: DEVICE_GET_INFO_CALL(ppu2c02); break;
}
}
+
+
+DEFINE_LEGACY_MEMORY_DEVICE(PPU_2C02, ppu2c02); // NTSC NES
+DEFINE_LEGACY_MEMORY_DEVICE(PPU_2C03B, ppu2c03b); // Playchoice 10
+DEFINE_LEGACY_MEMORY_DEVICE(PPU_2C04, ppu2c04); // Vs. Unisystem
+// The PPU_2C05 variants have different protection value, set at DEVICE_START, but otherwise are all the same...
+DEFINE_LEGACY_MEMORY_DEVICE(PPU_2C05_01, ppu2c05_01); // Vs. Unisystem (Ninja Jajamaru Kun)
+DEFINE_LEGACY_MEMORY_DEVICE(PPU_2C05_02, ppu2c05_02); // Vs. Unisystem (Mighty Bomb Jack)
+DEFINE_LEGACY_MEMORY_DEVICE(PPU_2C05_03, ppu2c05_03); // Vs. Unisystem (Gumshoe)
+DEFINE_LEGACY_MEMORY_DEVICE(PPU_2C05_04, ppu2c05_04); // Vs. Unisystem (Top Gun)
+DEFINE_LEGACY_MEMORY_DEVICE(PPU_2C07, ppu2c07); // PAL NES
diff --git a/src/mame/video/segaic16.c b/src/mame/video/segaic16.c
index 6dbc7540e9b..616ded8d65e 100644
--- a/src/mame/video/segaic16.c
+++ b/src/mame/video/segaic16.c
@@ -2109,3 +2109,6 @@ READ16_HANDLER( segaic16_rotate_control_0_r )
return 0xffff;
}
+
+
+DEFINE_LEGACY_DEVICE(SEGA16SP, sega16sp);
diff --git a/src/mame/video/taitoic.c b/src/mame/video/taitoic.c
index c37d0f3bc2e..1f30e52ff54 100644
--- a/src/mame/video/taitoic.c
+++ b/src/mame/video/taitoic.c
@@ -5340,3 +5340,15 @@ DEVICE_GET_INFO( tc0180vcu )
case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright MAME Team"); break;
}
}
+
+
+DEFINE_LEGACY_DEVICE(PC080SN, pc080sn);
+DEFINE_LEGACY_DEVICE(PC090OJ, pc090oj);
+DEFINE_LEGACY_DEVICE(TC0080VCO, tc0080vco);
+DEFINE_LEGACY_DEVICE(TC0100SCN, tc0100scn);
+DEFINE_LEGACY_DEVICE(TC0280GRD, tc0280grd);
+DEFINE_LEGACY_DEVICE(TC0360PRI, tc0360pri);
+DEFINE_LEGACY_DEVICE(TC0480SCP, tc0480scp);
+DEFINE_LEGACY_DEVICE(TC0150ROD, tc0150rod);
+DEFINE_LEGACY_DEVICE(TC0110PCR, tc0110pcr);
+DEFINE_LEGACY_DEVICE(TC0180VCU, tc0180vcu);
diff --git a/src/mame/video/taitoic.h b/src/mame/video/taitoic.h
index 8c9ba0a2f61..90b33261d9e 100644
--- a/src/mame/video/taitoic.h
+++ b/src/mame/video/taitoic.h
@@ -111,7 +111,7 @@ DECLARE_LEGACY_DEVICE(PC090OJ, pc090oj);
DECLARE_LEGACY_DEVICE(TC0080VCO, tc0080vco);
DECLARE_LEGACY_DEVICE(TC0100SCN, tc0100scn);
DECLARE_LEGACY_DEVICE(TC0280GRD, tc0280grd);
-DECLARE_LEGACY_DEVICE(TC0430GRW, tc0280grd);
+#define TC0430GRW TC0280GRD
DECLARE_LEGACY_DEVICE(TC0360PRI, tc0360pri);
DECLARE_LEGACY_DEVICE(TC0480SCP, tc0480scp);
DECLARE_LEGACY_DEVICE(TC0150ROD, tc0150rod);
diff --git a/src/mame/video/vrender0.c b/src/mame/video/vrender0.c
index 58419480354..cb72d98aaa5 100644
--- a/src/mame/video/vrender0.c
+++ b/src/mame/video/vrender0.c
@@ -608,3 +608,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "VRender0"
#define DEVTEMPLATE_FAMILY "???"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(VIDEO_VRENDER0, vr0video);