- Added shortname to devices in order to make ROM loading per device possible. [Miodrag Milanovic]

- Updated all devices containing ROM regions to have short names and all modern devices too
- Created new validation to check existence of short name if device contain ROM region defined
This commit is contained in:
Miodrag Milanovic 2011-02-10 19:08:37 +00:00
parent 7aa70ad1c5
commit 601056b130
85 changed files with 150 additions and 124 deletions

View File

@ -148,9 +148,9 @@ const device_type ADSP2181 = adsp2181_device_config::static_alloc_device_config;
// TRIVIAL IMPLEMENTATIONS
//**************************************************************************
DEFINE_TRIVIAL_DERIVED_DEVICE(adsp2104_device_config, adsp2101_device_config, adsp2104_device, adsp2101_device, "ADSP-2104", CHIP_TYPE_ADSP2104)
DEFINE_TRIVIAL_DERIVED_DEVICE(adsp2105_device_config, adsp2101_device_config, adsp2105_device, adsp2101_device, "ADSP-2105", CHIP_TYPE_ADSP2105)
DEFINE_TRIVIAL_DERIVED_DEVICE(adsp2115_device_config, adsp2101_device_config, adsp2115_device, adsp2101_device, "ADSP-2115", CHIP_TYPE_ADSP2115)
DEFINE_TRIVIAL_DERIVED_DEVICE(adsp2104_device_config, adsp2101_device_config, adsp2104_device, adsp2101_device, "ADSP-2104", "adsp2104", CHIP_TYPE_ADSP2104)
DEFINE_TRIVIAL_DERIVED_DEVICE(adsp2105_device_config, adsp2101_device_config, adsp2105_device, adsp2101_device, "ADSP-2105", "adsp2105", CHIP_TYPE_ADSP2105)
DEFINE_TRIVIAL_DERIVED_DEVICE(adsp2115_device_config, adsp2101_device_config, adsp2115_device, adsp2101_device, "ADSP-2115", "adsp2115", CHIP_TYPE_ADSP2115)
@ -162,8 +162,8 @@ DEFINE_TRIVIAL_DERIVED_DEVICE(adsp2115_device_config, adsp2101_device_config, ad
// adsp21xx_device_config - constructor
//-------------------------------------------------
adsp21xx_device_config::adsp21xx_device_config(const machine_config &mconfig, device_type type, const char *name, const char *tag, const device_config *owner, UINT32 clock, UINT32 chiptype)
: cpu_device_config(mconfig, type, name, tag, owner, clock),
adsp21xx_device_config::adsp21xx_device_config(const machine_config &mconfig, device_type type, const char *name, const char *shortname, const char *tag, const device_config *owner, UINT32 clock, UINT32 chiptype)
: cpu_device_config(mconfig, type, name, shortname, tag, owner, clock),
m_program_config("program", ENDIANNESS_LITTLE, 32, 14, -2),
m_data_config("data", ENDIANNESS_LITTLE, 16, 14, -1),
m_chip_type(chiptype)
@ -174,13 +174,13 @@ adsp21xx_device_config::adsp21xx_device_config(const machine_config &mconfig, de
}
adsp2100_device_config::adsp2100_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: adsp21xx_device_config(mconfig, static_alloc_device_config, "ADSP-2100", tag, owner, clock, CHIP_TYPE_ADSP2100) { }
: adsp21xx_device_config(mconfig, static_alloc_device_config, "ADSP-2100", "adsp2100", tag, owner, clock, CHIP_TYPE_ADSP2100) { }
adsp2101_device_config::adsp2101_device_config(const machine_config &mconfig, device_type type, const char *name, const char *tag, const device_config *owner, UINT32 clock, UINT32 chiptype)
: adsp21xx_device_config(mconfig, type, name, tag, owner, clock, chiptype) { }
adsp2101_device_config::adsp2101_device_config(const machine_config &mconfig, device_type type, const char *name, const char *shortname, const char *tag, const device_config *owner, UINT32 clock, UINT32 chiptype)
: adsp21xx_device_config(mconfig, type, name, shortname, tag, owner, clock, chiptype) { }
adsp2181_device_config::adsp2181_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: adsp21xx_device_config(mconfig, static_alloc_device_config, "ADSP-2181", tag, owner, clock, CHIP_TYPE_ADSP2181),
: adsp21xx_device_config(mconfig, static_alloc_device_config, "ADSP-2181", "adsp2181", tag, owner, clock, CHIP_TYPE_ADSP2181),
m_io_config("I/O", ENDIANNESS_LITTLE, 16, 11, -1) { }
@ -196,7 +196,7 @@ device_config *adsp2100_device_config::static_alloc_device_config(const machine_
device_config *adsp2101_device_config::static_alloc_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
{
return global_alloc(adsp2101_device_config(mconfig, static_alloc_device_config, "ADSP-2101", tag, owner, clock, CHIP_TYPE_ADSP2101));
return global_alloc(adsp2101_device_config(mconfig, static_alloc_device_config, "ADSP-2101", "adsp2101", tag, owner, clock, CHIP_TYPE_ADSP2101));
}
device_config *adsp2181_device_config::static_alloc_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)

View File

@ -276,7 +276,7 @@ protected:
};
// construction/destruction
adsp21xx_device_config(const machine_config &mconfig, device_type type, const char *name, const char *tag, const device_config *owner, UINT32 clock, UINT32 chiptype);
adsp21xx_device_config(const machine_config &mconfig, device_type type, const char *name, const char *shortname, const char *tag, const device_config *owner, UINT32 clock, UINT32 chiptype);
public:
// inline configuration helpers
@ -605,7 +605,7 @@ class adsp2101_device_config : public adsp21xx_device_config
protected:
// construction/destruction
adsp2101_device_config(const machine_config &mconfig, device_type type, const char *name, const char *tag, const device_config *owner, UINT32 clock, UINT32 chiptype);
adsp2101_device_config(const machine_config &mconfig, device_type type, const char *name, const char *shortname, const char *tag, const device_config *owner, UINT32 clock, UINT32 chiptype);
public:
// allocators

View File

@ -171,7 +171,7 @@ const asap_device::ophandler asap_device::s_conditiontable[16] =
//-------------------------------------------------
asap_device_config::asap_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: cpu_device_config(mconfig, static_alloc_device_config, "ASAP", tag, owner, clock),
: cpu_device_config(mconfig, static_alloc_device_config, "ASAP", "asap", tag, owner, clock),
m_program_config("program", ENDIANNESS_LITTLE, 32, 32)
{
}

View File

@ -190,7 +190,7 @@ const cosmac_device::ophandler cosmac_device::s_opcodetable[256] =
//-------------------------------------------------
cosmac_device_config::cosmac_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: cpu_device_config(mconfig, static_alloc_device_config, "COSMAC", tag, owner, clock),
: cpu_device_config(mconfig, static_alloc_device_config, "COSMAC", "cosmac", tag, owner, clock),
m_program_config("program", ENDIANNESS_LITTLE, 8, 16),
m_io_config("io", ENDIANNESS_LITTLE, 8, 3)
{

View File

@ -23,7 +23,7 @@ const device_type DSP16 = dsp16_device_config::static_alloc_device_config;
//**************************************************************************
dsp16_device_config::dsp16_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: cpu_device_config(mconfig, static_alloc_device_config, "DSP16", tag, owner, clock),
: cpu_device_config(mconfig, static_alloc_device_config, "DSP16", "dsp16", tag, owner, clock),
m_program_config("program", ENDIANNESS_LITTLE, 16, 16, -1)
{ }

View File

@ -178,7 +178,7 @@ const device_type DSP32C = dsp32c_device_config::static_alloc_device_config;
//-------------------------------------------------
dsp32c_device_config::dsp32c_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: cpu_device_config(mconfig, static_alloc_device_config, "DSP32C", tag, owner, clock),
: cpu_device_config(mconfig, static_alloc_device_config, "DSP32C", "dsp32", tag, owner, clock),
m_program_config("program", ENDIANNESS_LITTLE, 32, 24)
{
m_output_pins_changed = NULL;

View File

@ -105,7 +105,7 @@ const device_type HD61700 = hd61700_cpu_device_config::static_alloc_device_confi
//-------------------------------------------------
hd61700_cpu_device_config::hd61700_cpu_device_config(const machine_config &mconfig, device_type type, const char *tag, const device_config *owner, UINT32 clock)
: cpu_device_config(mconfig, type, "HD61700", tag, owner, clock),
: cpu_device_config(mconfig, type, "HD61700", "hd61700", tag, owner, clock),
m_program_config("program", ENDIANNESS_BIG, 16, 18, -1)
{
}

View File

@ -139,7 +139,7 @@ ADDRESS_MAP_END
//-------------------------------------------------
tms3203x_device_config::tms3203x_device_config(const machine_config &mconfig, device_type type, const char *name, const char *tag, const device_config *owner, UINT32 clock, UINT32 chiptype, address_map_constructor internal_map)
: cpu_device_config(mconfig, type, name, tag, owner, clock),
: cpu_device_config(mconfig, type, name, "tms32031", tag, owner, clock),
m_program_config("program", ENDIANNESS_LITTLE, 32, 24, -2, internal_map),
m_chip_type(chiptype)
{

View File

@ -29,7 +29,7 @@ const device_type UPD96050 = upd96050_device_config::static_alloc_device_config;
//-------------------------------------------------
necdsp_device_config::necdsp_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock, UINT32 abits, UINT32 dbits, const char *name)
: cpu_device_config(mconfig, static_alloc_device_config, name, tag, owner, clock),
: cpu_device_config(mconfig, static_alloc_device_config, name, "necdsp", tag, owner, clock),
m_program_config("program", ENDIANNESS_BIG, 32, abits, -2), // data bus width, address bus width, -2 means DWORD-addressable
m_data_config("data", ENDIANNESS_BIG, 16, dbits, -1) // -1 for WORD-addressable
{

View File

@ -50,8 +50,8 @@
// cpu_device_config - constructor
//-------------------------------------------------
cpu_device_config::cpu_device_config(const machine_config &mconfig, device_type type, const char *name, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, type, name, tag, owner, clock),
cpu_device_config::cpu_device_config(const machine_config &mconfig, device_type type, const char *name, const char *shortname, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, type, name, shortname, tag, owner, clock),
device_config_execute_interface(mconfig, *this),
device_config_memory_interface(mconfig, *this),
device_config_state_interface(mconfig, *this),
@ -65,7 +65,7 @@ cpu_device_config::cpu_device_config(const machine_config &mconfig, device_type
//-------------------------------------------------
legacy_cpu_device_config::legacy_cpu_device_config(const machine_config &mconfig, device_type type, const char *tag, const device_config *owner, UINT32 clock, cpu_get_info_func get_info)
: cpu_device_config(mconfig, type, "CPU", tag, owner, clock),
: cpu_device_config(mconfig, type, "CPU", "cpu", tag, owner, clock),
m_get_info(get_info)
{
// build up our address spaces; legacy devices don't have logical spaces
@ -87,6 +87,7 @@ legacy_cpu_device_config::legacy_cpu_device_config(const machine_config &mconfig
// set the real name
m_name = get_legacy_config_string(DEVINFO_STR_NAME);
m_shortname = get_legacy_config_string(DEVINFO_STR_SHORTNAME);
}

View File

@ -404,7 +404,7 @@ class cpu_device_config : public device_config,
protected:
// construction/destruction
cpu_device_config(const machine_config &mconfig, device_type type, const char *name, const char *tag, const device_config *owner, UINT32 clock);
cpu_device_config(const machine_config &mconfig, device_type type, const char *name, const char *shortname, const char *tag, const device_config *owner, UINT32 clock);
};

View File

@ -285,7 +285,7 @@ bool device_config_interface::interface_validity_check(const game_driver &driver
// device configuration
//-------------------------------------------------
device_config::device_config(const machine_config &mconfig, device_type type, const char *name, const char *tag, const device_config *owner, UINT32 clock, UINT32 param)
device_config::device_config(const machine_config &mconfig, device_type type, const char *name, const char *shortname, const char *tag, const device_config *owner, UINT32 clock, UINT32 param)
: m_next(NULL),
m_owner(const_cast<device_config *>(owner)),
m_interface_list(NULL),
@ -294,6 +294,7 @@ device_config::device_config(const machine_config &mconfig, device_type type, co
m_machine_config(mconfig),
m_static_config(NULL),
m_name(name),
m_shortname(shortname),
m_tag(tag),
m_config_complete(false)
{

View File

@ -76,9 +76,9 @@ public: \
}; \
// use this macro to define the actual implementation in the source file
#define DEFINE_TRIVIAL_DERIVED_DEVICE(_ConfigClass, _ConfigBase, _DeviceClass, _DeviceBase, _Name, _Param) \
#define DEFINE_TRIVIAL_DERIVED_DEVICE(_ConfigClass, _ConfigBase, _DeviceClass, _DeviceBase, _Name, _ShortName, _Param) \
_ConfigClass::_ConfigClass(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock, UINT32 param) \
: _ConfigBase(mconfig, static_alloc_device_config, _Name, tag, owner, clock, param) \
: _ConfigBase(mconfig, static_alloc_device_config, _Name, _ShortName, tag, owner, clock, param) \
{ \
} \
\
@ -257,7 +257,7 @@ class device_config
protected:
// construction/destruction
device_config(const machine_config &mconfig, device_type type, const char *name, const char *tag, const device_config *owner, UINT32 clock, UINT32 param = 0);
device_config(const machine_config &mconfig, device_type type, const char *name, const char *shortname, const char *tag, const device_config *owner, UINT32 clock, UINT32 param = 0);
virtual ~device_config();
public:
@ -284,6 +284,7 @@ public:
device_type type() const { return m_type; }
UINT32 clock() const { return m_clock; }
const char *name() const { return m_name; }
const char *shortname() const { return m_shortname; }
const char *tag() const { return m_tag; }
const void *static_config() const { return m_static_config; }
const machine_config &mconfig() const { return m_machine_config; }
@ -326,7 +327,7 @@ protected:
const void * m_static_config; // static device configuration
astring m_name; // name of the device
astring m_shortname; // short name of the device, used for potential romload
private:
astring m_tag; // tag for this instance
bool m_config_complete; // have we completed our configuration?

View File

@ -50,7 +50,7 @@
//-------------------------------------------------
legacy_device_config_base::legacy_device_config_base(const machine_config &mconfig, device_type type, const char *tag, const device_config *owner, UINT32 clock, device_get_config_func get_config)
: device_config(mconfig, type, "Legacy Device", tag, owner, clock),
: device_config(mconfig, type, "Legacy Device", "legacy", tag, owner, clock),
m_get_config_func(get_config),
m_inline_config(NULL)
{
@ -61,6 +61,7 @@ legacy_device_config_base::legacy_device_config_base(const machine_config &mconf
// set the proper name
m_name = get_legacy_config_string(DEVINFO_STR_NAME);
m_shortname = get_legacy_config_string(DEVINFO_STR_SHORTNAME);
}

View File

@ -125,6 +125,7 @@ enum
DEVINFO_STR_FIRST = 0x30000,
DEVINFO_STR_NAME = DEVINFO_STR_FIRST, // R/O: name of the device
DEVINFO_STR_SHORTNAME, // R/O: short name of device, used in case of romload
DEVINFO_STR_FAMILY, // R/O: family of the device
DEVINFO_STR_VERSION, // R/O: version of the device
DEVINFO_STR_SOURCE_FILE, // R/O: file containing the device implementation

View File

@ -217,6 +217,9 @@ DEVICE_GET_INFO( DEVTEMPLATE_ID(,) )
/* --- the following bits of info are returned as NULL-terminated strings --- */
case DEVINFO_STR_NAME: strcpy(info->s, DEVTEMPLATE_NAME); break;
#ifdef DEVTEMPLATE_SHORTNAME
case DEVINFO_STR_SHORTNAME: strcpy(info->s, DEVTEMPLATE_SHORTNAME); break;
#endif
}
}

View File

@ -942,7 +942,7 @@ running_machine::logerror_callback_item::logerror_callback_item(logerror_callbac
//-------------------------------------------------
driver_device_config_base::driver_device_config_base(const machine_config &mconfig, device_type type, const char *tag, const device_config *owner)
: device_config(mconfig, type, "Driver Device", tag, owner, 0),
: device_config(mconfig, type, "Driver Device", "driver", tag, owner, 0),
m_game(NULL),
m_palette_init(NULL),
m_video_update(NULL)
@ -959,6 +959,7 @@ driver_device_config_base::driver_device_config_base(const machine_config &mconf
void driver_device_config_base::static_set_game(device_config *device, const game_driver *game)
{
downcast<driver_device_config_base *>(device)->m_game = game;
downcast<driver_device_config_base *>(device)->m_shortname = game->name;
}

View File

@ -109,7 +109,7 @@
// DEVICE CONFIGURATION
//**************************************************************************
GENERIC_DEVICE_CONFIG_SETUP(via6522, "6522 VIA")
GENERIC_DEVICE_CONFIG_SETUP(via6522, "6522 VIA", "6522via")
//-------------------------------------------------
// device_config_complete - perform any

View File

@ -50,7 +50,7 @@
//-------------------------------------------------
mos6526_device_config::mos6526_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "MOS6526", tag, owner, clock)
: device_config(mconfig, static_alloc_device_config, "MOS6526", "6526cia", tag, owner, clock)
{
}

View File

@ -48,7 +48,7 @@ enum
//-------------------------------------------------
riot6532_device_config::riot6532_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "6532 (RIOT)", tag, owner, clock)
: device_config(mconfig, static_alloc_device_config, "6532 (RIOT)", "6532riot", tag, owner, clock)
{
}

View File

@ -44,7 +44,7 @@
//-------------------------------------------------
pia6821_device_config::pia6821_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "6822 PIA", tag, owner, clock)
: device_config(mconfig, static_alloc_device_config, "6822 PIA", "6821pia", tag, owner, clock)
{
}

View File

@ -61,7 +61,7 @@ const char *const ptm6840_device::opmode[] =
IMPLEMENTATION
***************************************************************************/
GENERIC_DEVICE_CONFIG_SETUP(ptm6840, "6840 PTM")
GENERIC_DEVICE_CONFIG_SETUP(ptm6840, "6840 PTM", "6840ptm")
const device_type PTM6840 = ptm6840_device_config::static_alloc_device_config;

View File

@ -54,7 +54,7 @@ const int acia6850_device::ACIA6850_WORD[8][3] =
const device_type ACIA6850 = acia6850_device_config::static_alloc_device_config;
GENERIC_DEVICE_CONFIG_SETUP(acia6850, "6850 ACIA")
GENERIC_DEVICE_CONFIG_SETUP(acia6850, "6850 ACIA", "6850acia")
//-------------------------------------------------
// device_config_complete - perform any

View File

@ -30,7 +30,7 @@ const device_type TTL74123 = ttl74123_device_config::static_alloc_device_config;
//-------------------------------------------------
ttl74123_device_config::ttl74123_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "TTL74123", tag, owner, clock)
: device_config(mconfig, static_alloc_device_config, "TTL74123", "74123", tag, owner, clock)
{
}

View File

@ -58,7 +58,7 @@ const device_type MACHINE_TTL7474 = ttl7474_device_config::static_alloc_device_c
//-------------------------------------------------
ttl7474_device_config::ttl7474_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "7474", tag, owner, clock)
: device_config(mconfig, static_alloc_device_config, "7474", "7474", tag, owner, clock)
{
}

View File

@ -48,7 +48,7 @@
// DEVICE CONFIGURATION
//**************************************************************************
GENERIC_DEVICE_CONFIG_SETUP(i8237, "Intel 8237")
GENERIC_DEVICE_CONFIG_SETUP(i8237, "Intel 8237", "8237dma")
//-------------------------------------------------
// device_config_complete - perform any

View File

@ -98,7 +98,7 @@
// DEVICE CONFIGURATION
//**************************************************************************
GENERIC_DEVICE_CONFIG_SETUP(ppi8255, "Intel PPI8255")
GENERIC_DEVICE_CONFIG_SETUP(ppi8255, "Intel PPI8255", "8255ppi")
//-------------------------------------------------
// device_config_complete - perform any

View File

@ -51,7 +51,7 @@
// DEVICE CONFIGURATION
//**************************************************************************
GENERIC_DEVICE_CONFIG_SETUP(i8257, "DMA8257")
GENERIC_DEVICE_CONFIG_SETUP(i8257, "DMA8257", "8257dma")
//-------------------------------------------------
// device_config_complete - perform any

View File

@ -36,10 +36,10 @@ ADDRESS_MAP_END
// at28c16_device_config - constructor
//-------------------------------------------------
at28c16_device_config::at28c16_device_config( const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock ) :
device_config( mconfig, static_alloc_device_config, "AT28C16", tag, owner, clock),
device_config_memory_interface(mconfig, *this),
device_config_nvram_interface(mconfig, *this)
at28c16_device_config::at28c16_device_config( const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock )
: device_config(mconfig, static_alloc_device_config, "AT28C16", "at28c16", tag, owner, clock),
device_config_memory_interface(mconfig, *this),
device_config_nvram_interface(mconfig, *this)
{
}

View File

@ -38,9 +38,9 @@
{ return downcast<devname##_device *>(device)->funcname(state); } \
void devname##_device::funcname(UINT8 state)
#define GENERIC_DEVICE_CONFIG_SETUP(devname, devtag) \
#define GENERIC_DEVICE_CONFIG_SETUP(devname, devtag, shortname) \
devname##_device_config::devname##_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock) \
: device_config(mconfig, static_alloc_device_config, devtag, tag, owner, clock) \
: device_config(mconfig, static_alloc_device_config, devtag, shortname, tag, owner, clock) \
{ } \
\
device_config *devname##_device_config::static_alloc_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock) \

View File

@ -48,7 +48,7 @@ INLINE UINT8 convert_to_bcd(int val)
//-------------------------------------------------
ds1302_device_config::ds1302_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "Dallas DS1302 RTC", tag, owner, clock)
: device_config(mconfig, static_alloc_device_config, "Dallas DS1302 RTC", "ds1302", tag, owner, clock)
{
}

View File

@ -24,7 +24,7 @@
//-------------------------------------------------
ds2404_device_config::ds2404_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "DS2404", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "DS2404", "ds2404", tag, owner, clock),
device_config_nvram_interface(mconfig, *this)
{
}

View File

@ -77,7 +77,7 @@ ADDRESS_MAP_END
//-------------------------------------------------
eeprom_device_config::eeprom_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "EEPROM", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "EEPROM", "eeprom", tag, owner, clock),
device_config_memory_interface(mconfig, *this),
device_config_nvram_interface(mconfig, *this),
m_default_data_size(0),

View File

@ -62,7 +62,7 @@ ADDRESS_MAP_END
//-------------------------------------------------
er2055_device_config::er2055_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "ER2055", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "ER2055", "er2055", tag, owner, clock),
device_config_memory_interface(mconfig, *this),
device_config_nvram_interface(mconfig, *this),
m_space_config("EAROM", ENDIANNESS_BIG, 8, 6, 0, *ADDRESS_MAP_NAME(er2055_map))

View File

@ -46,7 +46,7 @@
//-------------------------------------------------
f3853_device_config::f3853_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "F3853", tag, owner, clock)
: device_config(mconfig, static_alloc_device_config, "F3853", "f3853", tag, owner, clock)
{
}

View File

@ -71,10 +71,10 @@ ADDRESS_MAP_END
// i2cmem_device_config - constructor
//-------------------------------------------------
i2cmem_device_config::i2cmem_device_config( const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock ) :
device_config( mconfig, static_alloc_device_config, "I2CMEM", tag, owner, clock),
device_config_memory_interface(mconfig, *this),
device_config_nvram_interface(mconfig, *this)
i2cmem_device_config::i2cmem_device_config( const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock )
: device_config(mconfig, static_alloc_device_config, "I2CMEM", "i2cmem", tag, owner, clock),
device_config_memory_interface(mconfig, *this),
device_config_nvram_interface(mconfig, *this)
{
m_address_bits = 0;

View File

@ -16,7 +16,7 @@
// DEVICE CONFIGURATION
//**************************************************************************
GENERIC_DEVICE_CONFIG_SETUP(i8243, "I8243")
GENERIC_DEVICE_CONFIG_SETUP(i8243, "I8243", "i8243")
//-------------------------------------------------
// static_set_read_handler - configuration helper

View File

@ -38,7 +38,7 @@ enum
// DEVICE CONFIGURATION
//**************************************************************************
GENERIC_DEVICE_CONFIG_SETUP(ins8154, "INS8154")
GENERIC_DEVICE_CONFIG_SETUP(ins8154, "INS8154", "ins8154")
//-------------------------------------------------
// device_config_complete - perform any

View File

@ -45,13 +45,13 @@ enum
//**************************************************************************
// 8-bit variants
DEFINE_TRIVIAL_DERIVED_DEVICE(intel_28f016s5_device_config, intelfsh8_device_config, intel_28f016s5_device, intelfsh8_device, "Sharp LH28F400 Flash", intelfsh_device_config::FLASH_SHARP_LH28F400)
DEFINE_TRIVIAL_DERIVED_DEVICE(fujitsu_29f016a_device_config, intelfsh8_device_config, fujitsu_29f016a_device, intelfsh8_device, "Fujitsu 29F016A Flash", intelfsh_device_config::FLASH_FUJITSU_29F016A)
DEFINE_TRIVIAL_DERIVED_DEVICE(sharp_lh28f016s_device_config, intelfsh8_device_config, sharp_lh28f016s_device, intelfsh8_device, "Sharp LH28F016S Flash", intelfsh_device_config::FLASH_SHARP_LH28F016S)
DEFINE_TRIVIAL_DERIVED_DEVICE(intel_e28f008sa_device_config, intelfsh8_device_config, intel_e28f008sa_device, intelfsh8_device, "Intel E28F008SA Flash", intelfsh_device_config::FLASH_INTEL_E28F008SA)
DEFINE_TRIVIAL_DERIVED_DEVICE(macronix_29l001mc_device_config, intelfsh8_device_config, macronix_29l001mc_device, intelfsh8_device, "Macronix 29L001MC Flash", intelfsh_device_config::FLASH_MACRONIX_29L001MC)
DEFINE_TRIVIAL_DERIVED_DEVICE(panasonic_mn63f805mnp_device_config, intelfsh8_device_config, panasonic_mn63f805mnp_device, intelfsh8_device, "Panasonic MN63F805MNP Flash", intelfsh_device_config::FLASH_PANASONIC_MN63F805MNP)
DEFINE_TRIVIAL_DERIVED_DEVICE(sanyo_le26fv10n1ts_device_config, intelfsh8_device_config, sanyo_le26fv10n1ts_device, intelfsh8_device, "Sanyo LE26FV10N1TS Flash", intelfsh_device_config::FLASH_SANYO_LE26FV10N1TS)
DEFINE_TRIVIAL_DERIVED_DEVICE(intel_28f016s5_device_config, intelfsh8_device_config, intel_28f016s5_device, intelfsh8_device, "Sharp LH28F400 Flash", "lh28f400", intelfsh_device_config::FLASH_SHARP_LH28F400)
DEFINE_TRIVIAL_DERIVED_DEVICE(fujitsu_29f016a_device_config, intelfsh8_device_config, fujitsu_29f016a_device, intelfsh8_device, "Fujitsu 29F016A Flash", "29f016a", intelfsh_device_config::FLASH_FUJITSU_29F016A)
DEFINE_TRIVIAL_DERIVED_DEVICE(sharp_lh28f016s_device_config, intelfsh8_device_config, sharp_lh28f016s_device, intelfsh8_device, "Sharp LH28F016S Flash", "lh28f016s", intelfsh_device_config::FLASH_SHARP_LH28F016S)
DEFINE_TRIVIAL_DERIVED_DEVICE(intel_e28f008sa_device_config, intelfsh8_device_config, intel_e28f008sa_device, intelfsh8_device, "Intel E28F008SA Flash", "e28f008sa", intelfsh_device_config::FLASH_INTEL_E28F008SA)
DEFINE_TRIVIAL_DERIVED_DEVICE(macronix_29l001mc_device_config, intelfsh8_device_config, macronix_29l001mc_device, intelfsh8_device, "Macronix 29L001MC Flash", "29l001mc", intelfsh_device_config::FLASH_MACRONIX_29L001MC)
DEFINE_TRIVIAL_DERIVED_DEVICE(panasonic_mn63f805mnp_device_config, intelfsh8_device_config, panasonic_mn63f805mnp_device, intelfsh8_device, "Panasonic MN63F805MNP Flash", "mn63f805mnp", intelfsh_device_config::FLASH_PANASONIC_MN63F805MNP)
DEFINE_TRIVIAL_DERIVED_DEVICE(sanyo_le26fv10n1ts_device_config, intelfsh8_device_config, sanyo_le26fv10n1ts_device, intelfsh8_device, "Sanyo LE26FV10N1TS Flash", "le26fv10n1ts", intelfsh_device_config::FLASH_SANYO_LE26FV10N1TS)
const device_type INTEL_28F016S5 = intel_28f016s5_device_config::static_alloc_device_config;
const device_type SHARP_LH28F016S = sharp_lh28f016s_device_config::static_alloc_device_config;
@ -63,10 +63,10 @@ const device_type SANYO_LE26FV10N1TS = sanyo_le26fv10n1ts_device_config::static_
// 16-bit variants
DEFINE_TRIVIAL_DERIVED_DEVICE(sharp_lh28f400_device_config, intelfsh16_device_config, sharp_lh28f400_device, intelfsh16_device, "Sharp LH28F400 Flash", intelfsh_device_config::FLASH_SHARP_LH28F400)
DEFINE_TRIVIAL_DERIVED_DEVICE(intel_te28f160_device_config, intelfsh16_device_config, intel_te28f160_device, intelfsh16_device, "Intel TE28F160 Flash", intelfsh_device_config::FLASH_INTEL_TE28F160)
DEFINE_TRIVIAL_DERIVED_DEVICE(intel_e28f400_device_config, intelfsh16_device_config, intel_e28f400_device, intelfsh16_device, "Intel E28F400 Flash", intelfsh_device_config::FLASH_INTEL_E28F400)
DEFINE_TRIVIAL_DERIVED_DEVICE(sharp_unk128mbit_device_config, intelfsh16_device_config, sharp_unk128mbit_device, intelfsh16_device, "Sharp Unknown 128Mb Flash", intelfsh_device_config::FLASH_SHARP_UNK128MBIT)
DEFINE_TRIVIAL_DERIVED_DEVICE(sharp_lh28f400_device_config, intelfsh16_device_config, sharp_lh28f400_device, intelfsh16_device, "Sharp LH28F400 Flash", "lh28f400", intelfsh_device_config::FLASH_SHARP_LH28F400)
DEFINE_TRIVIAL_DERIVED_DEVICE(intel_te28f160_device_config, intelfsh16_device_config, intel_te28f160_device, intelfsh16_device, "Intel TE28F160 Flash", "te28f160", intelfsh_device_config::FLASH_INTEL_TE28F160)
DEFINE_TRIVIAL_DERIVED_DEVICE(intel_e28f400_device_config, intelfsh16_device_config, intel_e28f400_device, intelfsh16_device, "Intel E28F400 Flash", "e28f400", intelfsh_device_config::FLASH_INTEL_E28F400)
DEFINE_TRIVIAL_DERIVED_DEVICE(sharp_unk128mbit_device_config, intelfsh16_device_config, sharp_unk128mbit_device, intelfsh16_device, "Sharp Unknown 128Mb Flash", "unk128mb", intelfsh_device_config::FLASH_SHARP_UNK128MBIT)
const device_type SHARP_LH28F400 = sharp_lh28f400_device_config::static_alloc_device_config;
const device_type INTEL_TE28F160 = intel_te28f160_device_config::static_alloc_device_config;
@ -118,8 +118,8 @@ ADDRESS_MAP_END
// intelfsh_device_config - constructor
//-------------------------------------------------
intelfsh_device_config::intelfsh_device_config(const machine_config &mconfig, device_type type, const char *name, const char *tag, const device_config *owner, UINT32 clock, UINT32 variant)
: device_config(mconfig, type, name, tag, owner, clock),
intelfsh_device_config::intelfsh_device_config(const machine_config &mconfig, device_type type, const char *name, const char *shortname, const char *tag, const device_config *owner, UINT32 clock, UINT32 variant)
: device_config(mconfig, type, name, shortname, tag, owner, clock),
device_config_memory_interface(mconfig, *this),
device_config_nvram_interface(mconfig, *this),
m_type(variant),
@ -210,13 +210,13 @@ intelfsh_device_config::intelfsh_device_config(const machine_config &mconfig, de
m_space_config = address_space_config("flash", ENDIANNESS_BIG, m_bits, addrbits, (m_bits == 8) ? 0 : -1, map);
}
intelfsh8_device_config::intelfsh8_device_config(const machine_config &mconfig, device_type type, const char *name, const char *tag, const device_config *owner, UINT32 clock, UINT32 variant)
: intelfsh_device_config(mconfig, type, name, tag, owner, clock, variant)
intelfsh8_device_config::intelfsh8_device_config(const machine_config &mconfig, device_type type, const char *name, const char *shortname, const char *tag, const device_config *owner, UINT32 clock, UINT32 variant)
: intelfsh_device_config(mconfig, type, name, shortname, tag, owner, clock, variant)
{
}
intelfsh16_device_config::intelfsh16_device_config(const machine_config &mconfig, device_type type, const char *name, const char *tag, const device_config *owner, UINT32 clock, UINT32 variant)
: intelfsh_device_config(mconfig, type, name, tag, owner, clock, variant)
intelfsh16_device_config::intelfsh16_device_config(const machine_config &mconfig, device_type type, const char *name, const char *shortname, const char *tag, const device_config *owner, UINT32 clock, UINT32 variant)
: intelfsh_device_config(mconfig, type, name, shortname, tag, owner, clock, variant)
{
}

View File

@ -81,7 +81,7 @@ protected:
};
// construction/destruction
intelfsh_device_config(const machine_config &mconfig, device_type type, const char *name, const char *tag, const device_config *owner, UINT32 clock, UINT32 variant);
intelfsh_device_config(const machine_config &mconfig, device_type type, const char *name, const char *shortname, const char *tag, const device_config *owner, UINT32 clock, UINT32 variant);
// device_config_memory_interface overrides
virtual const address_space_config *memory_space_config(int spacenum = 0) const;
@ -143,7 +143,7 @@ class intelfsh8_device_config : public intelfsh_device_config
protected:
// construction/destruction
intelfsh8_device_config(const machine_config &mconfig, device_type type, const char *name, const char *tag, const device_config *owner, UINT32 clock, UINT32 variant);
intelfsh8_device_config(const machine_config &mconfig, device_type type, const char *name, const char *sharename, const char *tag, const device_config *owner, UINT32 clock, UINT32 variant);
};
@ -182,7 +182,7 @@ class intelfsh16_device_config : public intelfsh_device_config
protected:
// construction/destruction
intelfsh16_device_config(const machine_config &mconfig, device_type type, const char *name, const char *tag, const device_config *owner, UINT32 clock, UINT32 variant);
intelfsh16_device_config(const machine_config &mconfig, device_type type, const char *name, const char *sharename, const char *tag, const device_config *owner, UINT32 clock, UINT32 variant);
};

View File

@ -14,7 +14,7 @@
// DEVICE CONFIGURATION
//**************************************************************************
GENERIC_DEVICE_CONFIG_SETUP(k033906, "Konami 033906")
GENERIC_DEVICE_CONFIG_SETUP(k033906, "Konami 033906", "k033906")
//-------------------------------------------------
// device_config_complete - perform any

View File

@ -13,7 +13,7 @@
// DEVICE CONFIGURATION
//**************************************************************************
GENERIC_DEVICE_CONFIG_SETUP(k056230, "Konami 056230")
GENERIC_DEVICE_CONFIG_SETUP(k056230, "Konami 056230", "k056230")
//-------------------------------------------------
// device_config_complete - perform any

View File

@ -1653,6 +1653,7 @@ DEVICE_GET_INFO( laserdisc )
/* --- the following bits of info are returned as NULL-terminated strings --- */
case DEVINFO_STR_NAME: intf = get_interface(device); strcpy(info->s, (intf != NULL) ? intf->name : "Unknown Laserdisc Player"); break;
case DEVINFO_STR_SHORTNAME: intf = get_interface(device); strcpy(info->s, (intf != NULL) ? intf->shortname : "unkldplay"); break;
case DEVINFO_STR_FAMILY: strcpy(info->s, "Laserdisc Player"); break;
case DEVINFO_STR_VERSION: strcpy(info->s, "1.0"); break;
case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break;

View File

@ -147,6 +147,7 @@ struct _ldplayer_interface
int type; /* type of the player */
size_t statesize; /* size of the state */
const char * name; /* name of the player */
const char * shortname; /* shortname of the player */
const rom_entry * romregion; /* pointer to ROM region information */
machine_config_constructor machine_config; /* pointer to machine configuration */
laserdisc_init_func init; /* initialization callback */

View File

@ -307,6 +307,7 @@ const ldplayer_interface pr8210_interface =
LASERDISC_TYPE_PIONEER_PR8210, /* type of the player */
sizeof(ldplayer_data), /* size of the state */
"Pioneer PR-8210", /* name of the player */
"pr8210", /* shortname of the player */
ROM_NAME(pr8210), /* pointer to ROM region information */
MACHINE_CONFIG_NAME(pr8210), /* pointer to machine configuration */
pr8210_init, /* initialization callback */
@ -1022,6 +1023,7 @@ const ldplayer_interface simutrek_interface =
LASERDISC_TYPE_SIMUTREK_SPECIAL, /* type of the player */
sizeof(ldplayer_data), /* size of the state */
"Simutrek Modified PR-8210", /* name of the player */
"mpr8210", /* shortname of the player */
ROM_NAME(simutrek), /* pointer to ROM region information */
MACHINE_CONFIG_NAME(simutrek), /* pointer to machine configuration */
simutrek_init, /* initialization callback */

View File

@ -195,6 +195,7 @@ const ldplayer_interface ldv1000_interface =
LASERDISC_TYPE_PIONEER_LDV1000, /* type of the player */
sizeof(ldplayer_data), /* size of the state */
"Pioneer LD-V1000", /* name of the player */
"ldv1000", /* shortname of the player */
ROM_NAME(ldv1000), /* pointer to ROM region information */
MACHINE_CONFIG_NAME(ldv1000), /* pointer to machine configuration */
ldv1000_init, /* initialization callback */

View File

@ -156,6 +156,7 @@ const ldplayer_interface vp931_interface =
LASERDISC_TYPE_PHILLIPS_22VP931, /* type of the player */
sizeof(ldplayer_data), /* size of the state */
"Phillips 22VP931", /* name of the player */
"22vp931", /* shortname of the player */
ROM_NAME(vp931), /* pointer to ROM region information */
MACHINE_CONFIG_NAME(vp931), /* pointer to machine configuration */
vp931_init, /* initialization callback */

View File

@ -30,8 +30,8 @@ const device_type MB3773 = mb3773_device_config::static_alloc_device_config;
// mb3773_device_config - constructor
//-------------------------------------------------
mb3773_device_config::mb3773_device_config( const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock ) :
device_config( mconfig, static_alloc_device_config, "MB3773", tag, owner, clock)
mb3773_device_config::mb3773_device_config( const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock )
: device_config(mconfig, static_alloc_device_config, "MB3773", "mb3773", tag, owner, clock)
{
}

View File

@ -117,7 +117,7 @@ const device_type MC146818 = mc146818_device_config::static_alloc_device_config;
//-------------------------------------------------
mc146818_device_config::mc146818_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "NVRAM", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "NVRAM", "mc146818", tag, owner, clock),
device_config_nvram_interface(mconfig, *this),
m_type(MC146818_STANDARD)
{

View File

@ -273,7 +273,7 @@ const device_type MC68901 = mc68901_device_config::static_alloc_device_config;
// DEVICE CONFIGURATION
//**************************************************************************
GENERIC_DEVICE_CONFIG_SETUP(mc68901, "Motorola MC68901")
GENERIC_DEVICE_CONFIG_SETUP(mc68901, "Motorola MC68901", "mc68901")
//-------------------------------------------------

View File

@ -59,7 +59,7 @@ const device_type NVRAM = nvram_device_config::static_alloc_device_config;
//-------------------------------------------------
nvram_device_config::nvram_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "NVRAM", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "NVRAM", "nvram", tag, owner, clock),
device_config_nvram_interface(mconfig, *this),
m_default_value(DEFAULT_ALL_1)
{

View File

@ -48,9 +48,9 @@
: timekeeper_device(_machine, config) \
{ }
#define TIMEKPR_DEVCFG_DERIVED_CTOR(devtype, name) \
#define TIMEKPR_DEVCFG_DERIVED_CTOR(devtype, name, shortname) \
devtype##_device_config::devtype##_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock) \
: timekeeper_device_config(mconfig, name, tag, owner, clock) \
: timekeeper_device_config(mconfig, name, shortname, tag, owner, clock) \
{ }
#define TIMEKPR_DEVCFG_DERIVED_STATIC_ALLOC(devtype) \
@ -61,9 +61,9 @@
device_t *devtype##_device_config::alloc_device(running_machine &machine) const \
{ return auto_alloc(&machine, devtype##_device(machine, *this)); }
#define TIMEKPR_DERIVE(devtype, name) \
#define TIMEKPR_DERIVE(devtype, name, shortname) \
TIMEKPR_DEV_DERIVED_CTOR(devtype) \
TIMEKPR_DEVCFG_DERIVED_CTOR(devtype, name) \
TIMEKPR_DEVCFG_DERIVED_CTOR(devtype, name, shortname) \
TIMEKPR_DEVCFG_DERIVED_STATIC_ALLOC(devtype) \
TIMEKPR_DEVCFG_DERIVED_DEV_ALLOC(devtype)
@ -76,8 +76,8 @@
// timekeeper_device_config - constructor
//-------------------------------------------------
timekeeper_device_config::timekeeper_device_config(const machine_config &mconfig, const char *type, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, type, tag, owner, clock),
timekeeper_device_config::timekeeper_device_config(const machine_config &mconfig, const char *type, const char *shortname, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, type, shortname, tag, owner, clock),
device_config_nvram_interface(mconfig, *this)
{
@ -91,7 +91,7 @@ timekeeper_device_config::timekeeper_device_config(const machine_config &mconfig
device_config *timekeeper_device_config::static_alloc_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
{
return global_alloc(timekeeper_device_config(mconfig, "TIMEKEEPER", tag, owner, clock));
return global_alloc(timekeeper_device_config(mconfig, "TIMEKEEPER", "timekpr", tag, owner, clock));
}
@ -167,10 +167,10 @@ const device_type M48T35 = m48t35_device_config::static_alloc_device_config;
const device_type M48T58 = m48t58_device_config::static_alloc_device_config;
const device_type MK48T08 = mk48t08_device_config::static_alloc_device_config;
TIMEKPR_DERIVE(m48t02, "M48T02")
TIMEKPR_DERIVE(m48t35, "M48T35")
TIMEKPR_DERIVE(m48t58, "M48T58")
TIMEKPR_DERIVE(mk48t08, "MK48T08")
TIMEKPR_DERIVE(m48t02, "M48T02", "m48t02")
TIMEKPR_DERIVE(m48t35, "M48T35", "m48t35")
TIMEKPR_DERIVE(m48t58, "M48T58", "m48t58")
TIMEKPR_DERIVE(mk48t08, "MK48T08", "mk48t08")
//-------------------------------------------------
// timekeeper_device - constructor

View File

@ -64,7 +64,7 @@ class timekeeper_device_config : public device_config,
protected:
// construction/destruction
timekeeper_device_config(const machine_config &mconfig, const char *type, const char *tag, const device_config *owner, UINT32 clock);
timekeeper_device_config(const machine_config &mconfig, const char *type, const char *shortname, const char *tag, const device_config *owner, UINT32 clock);
public:
// allocators

View File

@ -35,7 +35,7 @@ ADDRESS_MAP_END
//-------------------------------------------------
x2212_device_config::x2212_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "X2212", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "X2212", "x2212", tag, owner, clock),
device_config_memory_interface(mconfig, *this),
device_config_nvram_interface(mconfig, *this),
m_sram_space_config("SRAM", ENDIANNESS_BIG, 8, 8, 0, *ADDRESS_MAP_NAME(x2212_sram_map)),

View File

@ -85,7 +85,7 @@ const int WAITING_FOR_TRIG = 0x100;
//-------------------------------------------------
z80ctc_device_config::z80ctc_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "Zilog Z80 CTC", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "Zilog Z80 CTC", "z80ctc", tag, owner, clock),
device_config_z80daisy_interface(mconfig, *this)
{
}

View File

@ -198,7 +198,7 @@ const int WR5_DTR = 0x80;
//-------------------------------------------------
z80dart_device_config::z80dart_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "Zilog Z80 DART", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "Zilog Z80 DART", "z80dart", tag, owner, clock),
device_config_z80daisy_interface(mconfig, *this)
{
}

View File

@ -151,7 +151,7 @@ const int TM_SEARCH_TRANSFER = 0x03;
//-------------------------------------------------
z80dma_device_config::z80dma_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "Z8410", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "Z8410", "z80dma", tag, owner, clock),
device_config_z80daisy_interface(mconfig, *this)
{
}

View File

@ -61,7 +61,7 @@ const int ICW_MASK_FOLLOWS = 0x10;
//-------------------------------------------------
z80pio_device_config::z80pio_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "Z8420", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "Z8420", "z80pio", tag, owner, clock),
device_config_z80daisy_interface(mconfig, *this)
{
}

View File

@ -303,7 +303,7 @@ inline attotime z80sio_device::sio_channel::compute_time_per_character()
//-------------------------------------------------
z80sio_device_config::z80sio_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "Zilog Z80 SIO", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "Zilog Z80 SIO", "z80sio", tag, owner, clock),
device_config_z80daisy_interface(mconfig, *this)
{
}

View File

@ -152,7 +152,7 @@ static const int PRESCALER[] = { 0, 4, 10, 16, 50, 64, 100, 200 };
//-------------------------------------------------
z80sti_device_config::z80sti_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "Mostek MK3801", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "Mostek MK3801", "z80sti", tag, owner, clock),
device_config_z80daisy_interface(mconfig, *this)
{
}

View File

@ -72,7 +72,7 @@ const attotime screen_device::DEFAULT_FRAME_PERIOD(attotime::from_hz(DEFAULT_FRA
//-------------------------------------------------
screen_device_config::screen_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "Video Screen", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "Video Screen", "video", tag, owner, clock),
m_type(SCREEN_TYPE_RASTER),
m_width(0),
m_height(0),

View File

@ -70,7 +70,7 @@ void asc_device_config::static_set_irqf(device_config *device, void (*irqf)(devi
//-------------------------------------------------
asc_device_config::asc_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "ASC", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "ASC", "asc", tag, owner, clock),
device_config_sound_interface(mconfig, *this)
{
}

View File

@ -107,7 +107,7 @@ ROM_END
//-------------------------------------------------
bsmt2000_device_config::bsmt2000_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "BSMT2000", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "BSMT2000", "bsmt2000", tag, owner, clock),
device_config_sound_interface(mconfig, *this),
device_config_memory_interface(mconfig, *this),
m_space_config("samples", ENDIANNESS_LITTLE, 8, 32, 0, NULL, *ADDRESS_MAP_NAME(bsmt2000)),

View File

@ -76,7 +76,7 @@ ADDRESS_MAP_END
//-------------------------------------------------
cdp1869_device_config::cdp1869_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "RCA CDP1869", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "RCA CDP1869", "cdp1869", tag, owner, clock),
device_config_sound_interface(mconfig, *this),
device_config_memory_interface(mconfig, *this),
m_space_config("pageram", ENDIANNESS_LITTLE, 8, 11, 0, NULL, *ADDRESS_MAP_NAME(cdp1869))

View File

@ -828,13 +828,13 @@ void discrete_device_config::static_set_intf(device_config *device, const discre
//-------------------------------------------------
// discrete_device_config - constructor
//-------------------------------------------------
discrete_device_config::discrete_device_config(const machine_config &mconfig, device_type type, const char *name, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, type, name, tag, owner, clock), m_intf(NULL)
discrete_device_config::discrete_device_config(const machine_config &mconfig, device_type type, const char *name, const char *shortname, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, type, name, shortname, tag, owner, clock), m_intf(NULL)
{
}
discrete_sound_device_config::discrete_sound_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: discrete_device_config(mconfig, static_alloc_device_config, "DISCRETE", tag, owner, clock),
: discrete_device_config(mconfig, static_alloc_device_config, "DISCRETE", "discrete", tag, owner, clock),
device_config_sound_interface(mconfig, *this)
{
}
@ -846,7 +846,7 @@ discrete_sound_device_config::discrete_sound_device_config(const machine_config
device_config *discrete_device_config::static_alloc_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
{
return global_alloc(discrete_device_config(mconfig, static_alloc_device_config, "PUREDISC", tag, owner, clock));
return global_alloc(discrete_device_config(mconfig, static_alloc_device_config, "PUREDISC", "puredisc", tag, owner, clock));
}
device_config *discrete_sound_device_config::static_alloc_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)

View File

@ -4303,7 +4303,7 @@ class discrete_device_config : public device_config
protected:
// construction/destruction
discrete_device_config(const machine_config &mconfig, device_type type, const char *name, const char *tag, const device_config *owner, UINT32 clock);
discrete_device_config(const machine_config &mconfig, device_type type, const char *name, const char *shortname, const char *tag, const device_config *owner, UINT32 clock);
public:
// allocators

View File

@ -21,7 +21,7 @@ void ics2115_device_config::static_set_irqf(device_config *device, void (*irqf)(
}
ics2115_device_config::ics2115_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "ICS2115", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "ICS2115", "ics2115", tag, owner, clock),
device_config_sound_interface(mconfig, *this)
{
}

View File

@ -9,7 +9,7 @@ const device_type MAS3507D = mas3507d_device_config::static_alloc_device_config;
mas3507d_device_config::mas3507d_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "MAS3507D", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "MAS3507D", "mas3507d", tag, owner, clock),
device_config_sound_interface(mconfig, *this)
{
}

View File

@ -90,7 +90,7 @@ ADDRESS_MAP_END
//-------------------------------------------------
okim6295_device_config::okim6295_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "OKI6295", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "OKI6295", "oki6295", tag, owner, clock),
device_config_sound_interface(mconfig, *this),
device_config_memory_interface(mconfig, *this),
m_space_config("samples", ENDIANNESS_LITTLE, 8, 18, 0, NULL, *ADDRESS_MAP_NAME(okim6295))

View File

@ -33,7 +33,7 @@ ADDRESS_MAP_END
//-------------------------------------------------
okim9810_device_config::okim9810_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "OKI9810", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "OKI9810", "oki9810", tag, owner, clock),
device_config_sound_interface(mconfig, *this),
device_config_memory_interface(mconfig, *this),
m_space_config("samples", ENDIANNESS_BIG, 8, 24, 0, NULL, *ADDRESS_MAP_NAME(okim9810))

View File

@ -73,7 +73,7 @@ const device_type SPEAKER = speaker_device_config::static_alloc_device_config;
//-------------------------------------------------
speaker_device_config::speaker_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "Speaker", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "Speaker", "speaker", tag, owner, clock),
device_config_sound_interface(mconfig, *this),
m_x(0.0),
m_y(0.0),

View File

@ -69,7 +69,7 @@ const device_type TIMER = timer_device_config::static_alloc_device_config;
//-------------------------------------------------
timer_device_config::timer_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "Timer", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "Timer", "timer", tag, owner, clock),
m_type(TIMER_TYPE_GENERIC),
m_callback(NULL),
m_ptr(NULL),

View File

@ -1096,6 +1096,10 @@ static bool validate_devices(const machine_config &config, const ioport_list &po
break;
}
if (devconfig->rom_region()!=NULL && (strcmp(devconfig->shortname(),"") == 0)) {
mame_printf_warning("Device %s does not have short name defined\n", devconfig->name());
break;
}
/* check for device-specific validity check */
if (devconfig->validity_check(driver))
error = true;

View File

@ -233,6 +233,7 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_ID(p,s) p##namco_52xx##s
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_ROM_REGION | DT_HAS_MACHINE_CONFIG
#define DEVTEMPLATE_NAME "Namco 52xx"
#define DEVTEMPLATE_SHORTNAME "namco52"
#define DEVTEMPLATE_FAMILY "Namco I/O"
#include "devtempl.h"

View File

@ -189,6 +189,7 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_ID(p,s) p##namco_54xx##s
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_ROM_REGION | DT_HAS_MACHINE_CONFIG | DT_HAS_INLINE_CONFIG
#define DEVTEMPLATE_NAME "Namco 54xx"
#define DEVTEMPLATE_SHORTNAME "namco54"
#define DEVTEMPLATE_FAMILY "Namco I/O"
#include "devtempl.h"

View File

@ -189,7 +189,7 @@ littlerb_vdp_device::littlerb_vdp_device(running_machine &_machine, const little
}
littlerb_vdp_device_config::littlerb_vdp_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "LITTLERBVDP", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "LITTLERBVDP", "littlerb", tag, owner, clock),
device_config_memory_interface(mconfig, *this),
m_space_config("littlerb_vdp", ENDIANNESS_LITTLE, 16,32, 0, NULL, *ADDRESS_MAP_NAME(littlerb_vdp_map8))
{

View File

@ -94,7 +94,7 @@ protected:
const device_type JANSHIVDP = janshi_vdp_device_config::static_alloc_device_config;
janshi_vdp_device_config::janshi_vdp_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "JANSHIVDP", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "JANSHIVDP", "janshvdp", tag, owner, clock),
device_config_memory_interface(mconfig, *this),
m_space_config("janshi_vdp", ENDIANNESS_LITTLE, 8,24, 0, NULL, *ADDRESS_MAP_NAME(janshi_vdp_map8))
{

View File

@ -99,7 +99,7 @@ const INT32 cdicdic_device::s_cdic_adpcm_filter_coef[5][2] =
//-------------------------------------------------
cdicdic_device_config::cdicdic_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "CDICDIC", tag, owner, clock)
: device_config(mconfig, static_alloc_device_config, "CDICDIC", "cdicdic", tag, owner, clock)
{
}

View File

@ -51,7 +51,7 @@ INLINE void verboselog(running_machine *machine, int n_level, const char *s_fmt,
//-------------------------------------------------
cdislave_device_config::cdislave_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "CDISLAVE", tag, owner, clock)
: device_config(mconfig, static_alloc_device_config, "CDISLAVE", "cdislave", tag, owner, clock)
{
}

View File

@ -298,6 +298,7 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_RESET | DT_HAS_INLINE_CONFIG
#define DEVTEMPLATE_NAME "Namco 06xx"
#define DEVTEMPLATE_FAMILY "Namco I/O"
#define DEVTEMPLATE_SHORTNAME "namco06xx"
#include "devtempl.h"

View File

@ -301,6 +301,7 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_ID(p,s) p##namco_50xx##s
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_ROM_REGION | DT_HAS_MACHINE_CONFIG
#define DEVTEMPLATE_NAME "Namco 50xx"
#define DEVTEMPLATE_SHORTNAME "namco50"
#define DEVTEMPLATE_FAMILY "Namco I/O"
#include "devtempl.h"

View File

@ -446,6 +446,7 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_ID(p,s) p##namco_51xx##s
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_RESET | DT_HAS_ROM_REGION | DT_HAS_MACHINE_CONFIG
#define DEVTEMPLATE_NAME "Namco 51xx"
#define DEVTEMPLATE_SHORTNAME "namco51"
#define DEVTEMPLATE_FAMILY "Namco I/O"
#include "devtempl.h"

View File

@ -201,6 +201,7 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_ID(p,s) p##namco_53xx##s
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_ROM_REGION | DT_HAS_MACHINE_CONFIG
#define DEVTEMPLATE_NAME "Namco 53xx"
#define DEVTEMPLATE_SHORTNAME "namco53"
#define DEVTEMPLATE_FAMILY "Namco I/O"
#include "devtempl.h"

View File

@ -94,6 +94,7 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_ID(p,s) p##namco_62xx##s
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_ROM_REGION | DT_HAS_MACHINE_CONFIG
#define DEVTEMPLATE_NAME "Namco 62xx"
#define DEVTEMPLATE_SHORTNAME "namco62"
#define DEVTEMPLATE_FAMILY "Namco I/O"
#include "devtempl.h"

View File

@ -212,7 +212,7 @@ ADDRESS_MAP_END
gp9001vdp_device_config::gp9001vdp_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock)
: device_config(mconfig, static_alloc_device_config, "gp9001vdp_", tag, owner, clock),
: device_config(mconfig, static_alloc_device_config, "gp9001vdp_", "gp9001", tag, owner, clock),
device_config_memory_interface(mconfig, *this),
m_space_config("gp9001vdp", ENDIANNESS_BIG, 16,14, 0, NULL, *ADDRESS_MAP_NAME(gp9001vdp_map))
{