diff options
Diffstat (limited to 'src/emu/machine')
165 files changed, 311 insertions, 309 deletions
diff --git a/src/emu/machine/53c810.c b/src/emu/machine/53c810.c index 4a30126f7df..261130e3233 100644 --- a/src/emu/machine/53c810.c +++ b/src/emu/machine/53c810.c @@ -619,7 +619,7 @@ void lsi53c810_device::add_opcode(UINT8 op, UINT8 mask, opcode_handler_delegate } lsi53c810_device::lsi53c810_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, LSI53C810, "53C810 SCSI", tag, owner, clock) + : device_t(mconfig, LSI53C810, "53C810 SCSI", tag, owner, clock, "lsi53c810", __FILE__) { } diff --git a/src/emu/machine/6522via.c b/src/emu/machine/6522via.c index d21efd8d6ce..f20224acce5 100644 --- a/src/emu/machine/6522via.c +++ b/src/emu/machine/6522via.c @@ -147,7 +147,7 @@ const device_type VIA6522 = &device_creator<via6522_device>; //------------------------------------------------- via6522_device::via6522_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, VIA6522, "6522 VIA", tag, owner, clock), + : device_t(mconfig, VIA6522, "6522 VIA", tag, owner, clock, "via6522", __FILE__), m_irq(CLEAR_LINE) { } diff --git a/src/emu/machine/6525tpi.c b/src/emu/machine/6525tpi.c index 725c5dfc921..3c828e3a378 100644 --- a/src/emu/machine/6525tpi.c +++ b/src/emu/machine/6525tpi.c @@ -619,7 +619,7 @@ UINT8 tpi6525_get_ddr_c(device_t *device) const device_type TPI6525 = &device_creator<tpi6525_device>; tpi6525_device::tpi6525_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TPI6525, "6525 TPI", tag, owner, clock) + : device_t(mconfig, TPI6525, "6525 TPI", tag, owner, clock, "tpi6525", __FILE__) { m_token = global_alloc_clear(tpi6525_state); } diff --git a/src/emu/machine/6526cia.c b/src/emu/machine/6526cia.c index d77e008105c..60e5c2a9b69 100644 --- a/src/emu/machine/6526cia.c +++ b/src/emu/machine/6526cia.c @@ -76,22 +76,22 @@ inline attotime legacy_mos6526_device::cycles_to_time(int c) // legacy_mos6526_device - constructor //------------------------------------------------- -legacy_mos6526_device::legacy_mos6526_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock) +legacy_mos6526_device::legacy_mos6526_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source) { } legacy_mos6526r1_device::legacy_mos6526r1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : legacy_mos6526_device(mconfig, LEGACY_MOS6526R1, "MOS6526r1", tag, owner, clock) { } + : legacy_mos6526_device(mconfig, LEGACY_MOS6526R1, "MOS6526r1", tag, owner, clock, "legacy_mos6526r1", __FILE__) { } legacy_mos6526r2_device::legacy_mos6526r2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : legacy_mos6526_device(mconfig, LEGACY_MOS6526R2, "MOS6526r2", tag, owner, clock) { } + : legacy_mos6526_device(mconfig, LEGACY_MOS6526R2, "MOS6526r2", tag, owner, clock, "legacy_mos6526r2", __FILE__) { } legacy_mos8520_device::legacy_mos8520_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : legacy_mos6526_device(mconfig, LEGACY_MOS8520, "LEGACY_MOS8520", tag, owner, clock) { } + : legacy_mos6526_device(mconfig, LEGACY_MOS8520, "LEGACY_MOS8520", tag, owner, clock, "legacy_mos8520", __FILE__) { } legacy_mos5710_device::legacy_mos5710_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : legacy_mos6526_device(mconfig, LEGACY_MOS5710, "LEGACY_MOS5710", tag, owner, clock) { } + : legacy_mos6526_device(mconfig, LEGACY_MOS5710, "LEGACY_MOS5710", tag, owner, clock, "legacy_mos5710", __FILE__) { } void legacy_mos6526_device::static_set_tod_clock(device_t &device, int tod_clock) diff --git a/src/emu/machine/6526cia.h b/src/emu/machine/6526cia.h index 0f8e953cee7..ae7a072a9f1 100644 --- a/src/emu/machine/6526cia.h +++ b/src/emu/machine/6526cia.h @@ -102,7 +102,7 @@ class legacy_mos6526_device : public device_t, { protected: // construction/destruction - legacy_mos6526_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + legacy_mos6526_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); public: // inline configuration diff --git a/src/emu/machine/6532riot.c b/src/emu/machine/6532riot.c index 0bc9e1c76bb..ed868bcbe80 100644 --- a/src/emu/machine/6532riot.c +++ b/src/emu/machine/6532riot.c @@ -397,7 +397,7 @@ UINT8 riot6532_device::portb_out_get() //------------------------------------------------- riot6532_device::riot6532_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, RIOT6532, "6532 (RIOT)", tag, owner, clock), + : device_t(mconfig, RIOT6532, "6532 (RIOT)", tag, owner, clock, "riot6532", __FILE__), m_irq(CLEAR_LINE) { } diff --git a/src/emu/machine/6821pia.c b/src/emu/machine/6821pia.c index 8f5fb271c82..e2eca6d1cd0 100644 --- a/src/emu/machine/6821pia.c +++ b/src/emu/machine/6821pia.c @@ -48,7 +48,7 @@ const device_type PIA6821 = &device_creator<pia6821_device>; //------------------------------------------------- pia6821_device::pia6821_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, PIA6821, "6822 PIA", tag, owner, clock), + : device_t(mconfig, PIA6821, "6822 PIA", tag, owner, clock, "pia6821", __FILE__), m_irq_a_state(0), m_in_cb1(0), m_ctl_b(0), diff --git a/src/emu/machine/6840ptm.c b/src/emu/machine/6840ptm.c index ecd6815bf17..1f26472fb3d 100644 --- a/src/emu/machine/6840ptm.c +++ b/src/emu/machine/6840ptm.c @@ -68,7 +68,7 @@ const device_type PTM6840 = &device_creator<ptm6840_device>; //------------------------------------------------- ptm6840_device::ptm6840_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, PTM6840, "6840 PTM", tag, owner, clock) + : device_t(mconfig, PTM6840, "6840 PTM", tag, owner, clock, "ptm6840", __FILE__) { memset(static_cast<ptm6840_interface *>(this), 0, sizeof(ptm6840_interface)); } diff --git a/src/emu/machine/6850acia.c b/src/emu/machine/6850acia.c index 4b3fc1ceca9..0e9b2641311 100644 --- a/src/emu/machine/6850acia.c +++ b/src/emu/machine/6850acia.c @@ -59,7 +59,7 @@ const device_type ACIA6850 = &device_creator<acia6850_device>; //------------------------------------------------- acia6850_device::acia6850_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, ACIA6850, "6850 ACIA", tag, owner, clock) + : device_t(mconfig, ACIA6850, "6850 ACIA", tag, owner, clock, "acia6850", __FILE__) { memset(static_cast<acia6850_interface *>(this), 0, sizeof(acia6850_interface)); } diff --git a/src/emu/machine/68681.c b/src/emu/machine/68681.c index e6a12ea038d..9792461da68 100644 --- a/src/emu/machine/68681.c +++ b/src/emu/machine/68681.c @@ -906,7 +906,7 @@ static DEVICE_RESET(duart68681) const device_type DUART68681 = &device_creator<duart68681_device>; duart68681_device::duart68681_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, DUART68681, "DUART 68681", tag, owner, clock) + : device_t(mconfig, DUART68681, "DUART 68681", tag, owner, clock, "duart68681", __FILE__) { m_token = global_alloc_clear(duart68681_state); } diff --git a/src/emu/machine/7200fifo.c b/src/emu/machine/7200fifo.c index 6913479d4fc..692b5ec3a34 100644 --- a/src/emu/machine/7200fifo.c +++ b/src/emu/machine/7200fifo.c @@ -20,7 +20,7 @@ const device_type FIFO7200 = &device_creator<fifo7200_device>; //------------------------------------------------- fifo7200_device::fifo7200_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, FIFO7200, "IDT7200 FIFO", tag, owner, clock), + : device_t(mconfig, FIFO7200, "IDT7200 FIFO", tag, owner, clock, "fifo7200", __FILE__), m_ram_size(0), m_ef_handler(*this), m_ff_handler(*this), diff --git a/src/emu/machine/74123.c b/src/emu/machine/74123.c index ca822a34464..2f4f2eac5bb 100644 --- a/src/emu/machine/74123.c +++ b/src/emu/machine/74123.c @@ -27,7 +27,7 @@ const device_type TTL74123 = &device_creator<ttl74123_device>; //------------------------------------------------- ttl74123_device::ttl74123_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TTL74123, "TTL74123", tag, owner, clock) + : device_t(mconfig, TTL74123, "TTL74123", tag, owner, clock, "ttl74123", __FILE__) { } diff --git a/src/emu/machine/74145.c b/src/emu/machine/74145.c index eb3457a7cd8..71bb14eaa2b 100644 --- a/src/emu/machine/74145.c +++ b/src/emu/machine/74145.c @@ -75,7 +75,7 @@ const device_type TTL74145 = &device_creator<ttl74145_device>; //------------------------------------------------- ttl74145_device::ttl74145_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TTL74145, "TTL74145", tag, owner, clock) + : device_t(mconfig, TTL74145, "TTL74145", tag, owner, clock, "ttl74145", __FILE__) , m_number(0) { } diff --git a/src/emu/machine/74148.c b/src/emu/machine/74148.c index 00d5f710254..ab6a8e8a265 100644 --- a/src/emu/machine/74148.c +++ b/src/emu/machine/74148.c @@ -216,7 +216,7 @@ static DEVICE_RESET( ttl74148 ) const device_type TTL74148 = &device_creator<ttl74148_device>; ttl74148_device::ttl74148_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TTL74148, "74148", tag, owner, clock) + : device_t(mconfig, TTL74148, "74148", tag, owner, clock, "74148", __FILE__) { m_token = global_alloc_clear(ttl74148_state); } diff --git a/src/emu/machine/74153.c b/src/emu/machine/74153.c index 09f45e28e31..69e5e37df23 100644 --- a/src/emu/machine/74153.c +++ b/src/emu/machine/74153.c @@ -178,7 +178,7 @@ static DEVICE_RESET( ttl74153 ) const device_type TTL74153 = &device_creator<ttl74153_device>; ttl74153_device::ttl74153_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TTL74153, "74153", tag, owner, clock) + : device_t(mconfig, TTL74153, "74153", tag, owner, clock, "74153", __FILE__) { m_token = global_alloc_clear(ttl74153_state); } diff --git a/src/emu/machine/7474.c b/src/emu/machine/7474.c index 180dd2c6b79..ced313d42b7 100644 --- a/src/emu/machine/7474.c +++ b/src/emu/machine/7474.c @@ -54,7 +54,7 @@ const device_type MACHINE_TTL7474 = &device_creator<ttl7474_device>; //------------------------------------------------- ttl7474_device::ttl7474_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MACHINE_TTL7474, "7474", tag, owner, clock), + : device_t(mconfig, MACHINE_TTL7474, "7474", tag, owner, clock, "7474", __FILE__), m_output_func(*this), m_comp_output_func(*this) { diff --git a/src/emu/machine/8257dma.c b/src/emu/machine/8257dma.c index f777d3096e0..916a5ffa1c9 100644 --- a/src/emu/machine/8257dma.c +++ b/src/emu/machine/8257dma.c @@ -57,7 +57,7 @@ const device_type I8257 = &device_creator<i8257_device>; //------------------------------------------------- i8257_device::i8257_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, I8257, "DMA8257", tag, owner, clock), + : device_t(mconfig, I8257, "DMA8257", tag, owner, clock, "i8257", __FILE__), m_mode(0), m_rr(0), m_msb(0), diff --git a/src/emu/machine/aakart.c b/src/emu/machine/aakart.c index 945b3b716be..316fdd328e6 100644 --- a/src/emu/machine/aakart.c +++ b/src/emu/machine/aakart.c @@ -38,7 +38,7 @@ const device_type AAKART = &device_creator<aakart_device>; //------------------------------------------------- aakart_device::aakart_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, AAKART, "aakart", tag, owner, clock) + : device_t(mconfig, AAKART, "aakart", tag, owner, clock, "aakart", __FILE__) { } diff --git a/src/emu/machine/adc0808.c b/src/emu/machine/adc0808.c index 086d7c3352c..729955ec49e 100644 --- a/src/emu/machine/adc0808.c +++ b/src/emu/machine/adc0808.c @@ -25,7 +25,7 @@ const device_type ADC0808 = &device_creator<adc0808_device>; //------------------------------------------------- adc0808_device::adc0808_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, ADC0808, "ADC0808", tag, owner, clock), + : device_t(mconfig, ADC0808, "ADC0808", tag, owner, clock, "adc0808", __FILE__), m_address(0), m_start(0), m_eoc(0), diff --git a/src/emu/machine/adc083x.c b/src/emu/machine/adc083x.c index b123a8bcfe6..55f7ec5134c 100644 --- a/src/emu/machine/adc083x.c +++ b/src/emu/machine/adc083x.c @@ -49,8 +49,8 @@ const device_type ADC0832 = &device_creator<adc0832_device>; const device_type ADC0834 = &device_creator<adc0834_device>; const device_type ADC0838 = &device_creator<adc0838_device>; -adc083x_device::adc083x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock), +adc083x_device::adc083x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), m_cs(0), m_clk(0), m_di(0), @@ -67,25 +67,25 @@ adc083x_device::adc083x_device(const machine_config &mconfig, device_type type, } adc0831_device::adc0831_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : adc083x_device(mconfig, ADC0831, "A/D Converters 0831", tag, owner, clock) + : adc083x_device(mconfig, ADC0831, "A/D Converters 0831", tag, owner, clock, "adc0831", __FILE__) { m_mux_bits = 0; } adc0832_device::adc0832_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : adc083x_device(mconfig, ADC0832, "A/D Converters 0832", tag, owner, clock) + : adc083x_device(mconfig, ADC0832, "A/D Converters 0832", tag, owner, clock, "adc0832", __FILE__) { m_mux_bits = 2; } adc0834_device::adc0834_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : adc083x_device(mconfig, ADC0834, "A/D Converters 0834", tag, owner, clock) + : adc083x_device(mconfig, ADC0834, "A/D Converters 0834", tag, owner, clock, "adc0834", __FILE__) { m_mux_bits = 3; } adc0838_device::adc0838_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : adc083x_device(mconfig, ADC0838, "A/D Converters 0838", tag, owner, clock) + : adc083x_device(mconfig, ADC0838, "A/D Converters 0838", tag, owner, clock, "adc0838", __FILE__) { m_mux_bits = 4; } diff --git a/src/emu/machine/adc083x.h b/src/emu/machine/adc083x.h index 6b08960da8a..976c2ec4585 100644 --- a/src/emu/machine/adc083x.h +++ b/src/emu/machine/adc083x.h @@ -43,7 +43,7 @@ typedef double (*adc083x_input_callback)(device_t *device, UINT8 input); class adc083x_device : public device_t { public: - adc083x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + adc083x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); // static configuration helpers static void set_input_callback(device_t &device, adc083x_input_callback input_callback) { downcast<adc083x_device &>(device).m_input_callback = input_callback; } diff --git a/src/emu/machine/adc1038.c b/src/emu/machine/adc1038.c index d40614343d3..d82bc24f89d 100644 --- a/src/emu/machine/adc1038.c +++ b/src/emu/machine/adc1038.c @@ -14,7 +14,7 @@ const device_type ADC1038 = &device_creator<adc1038_device>; adc1038_device::adc1038_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, ADC1038, "A/D Converters 1038", tag, owner, clock) + : device_t(mconfig, ADC1038, "A/D Converters 1038", tag, owner, clock, "adc1038", __FILE__) { } diff --git a/src/emu/machine/adc1213x.c b/src/emu/machine/adc1213x.c index c14c64732d3..b5fb188983b 100644 --- a/src/emu/machine/adc1213x.c +++ b/src/emu/machine/adc1213x.c @@ -35,7 +35,7 @@ const device_type ADC12130 = &device_creator<adc12130_device>; adc12130_device::adc12130_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : adc12138_device(mconfig, ADC12130, "A/D Converter 12130", tag, owner, clock) + : adc12138_device(mconfig, ADC12130, "A/D Converter 12130", tag, owner, clock, "adc12130", __FILE__) { } @@ -43,7 +43,7 @@ adc12130_device::adc12130_device(const machine_config &mconfig, const char *tag, const device_type ADC12132 = &device_creator<adc12132_device>; adc12132_device::adc12132_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : adc12138_device(mconfig, ADC12132, "A/D Converter 12132", tag, owner, clock) + : adc12138_device(mconfig, ADC12132, "A/D Converter 12132", tag, owner, clock, "adc12132", __FILE__) { } @@ -51,11 +51,11 @@ adc12132_device::adc12132_device(const machine_config &mconfig, const char *tag, const device_type ADC12138 = &device_creator<adc12138_device>; adc12138_device::adc12138_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, ADC12138, "A/D Converter 12138", tag, owner, clock) + : device_t(mconfig, ADC12138, "A/D Converter 12138", tag, owner, clock, "adc12138", __FILE__) { } -adc12138_device::adc12138_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock) +adc12138_device::adc12138_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source) { } diff --git a/src/emu/machine/adc1213x.h b/src/emu/machine/adc1213x.h index 20616c9c550..de5aa0a87da 100644 --- a/src/emu/machine/adc1213x.h +++ b/src/emu/machine/adc1213x.h @@ -31,7 +31,7 @@ class adc12138_device : public device_t, { public: adc12138_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - adc12138_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + adc12138_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); ~adc12138_device() {} DECLARE_WRITE8_MEMBER( di_w ); diff --git a/src/emu/machine/am53cf96.c b/src/emu/machine/am53cf96.c index ba998405671..3360f445917 100644 --- a/src/emu/machine/am53cf96.c +++ b/src/emu/machine/am53cf96.c @@ -158,7 +158,7 @@ WRITE8_MEMBER( am53cf96_device::write ) } am53cf96_device::am53cf96_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, AM53CF96, "53CF96 SCSI", tag, owner, clock), + device_t(mconfig, AM53CF96, "53CF96 SCSI", tag, owner, clock, "am53cf96", __FILE__), m_irq_handler(*this) { } diff --git a/src/emu/machine/am9517a.c b/src/emu/machine/am9517a.c index a2cde90c11d..41af3446d90 100644 --- a/src/emu/machine/am9517a.c +++ b/src/emu/machine/am9517a.c @@ -372,7 +372,7 @@ inline void am9517a_device::end_of_process() //------------------------------------------------- am9517a_device::am9517a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, AM9517A, "AM9517A", tag, owner, clock), + : device_t(mconfig, AM9517A, "AM9517A", tag, owner, clock, "am9517a", __FILE__), device_execute_interface(mconfig, *this), m_icount(0), m_hack(0), diff --git a/src/emu/machine/amigafdc.c b/src/emu/machine/amigafdc.c index 6fa02409312..cdd03fc2e4d 100644 --- a/src/emu/machine/amigafdc.c +++ b/src/emu/machine/amigafdc.c @@ -51,7 +51,7 @@ FLOPPY_FORMATS_MEMBER( amiga_fdc::floppy_formats ) FLOPPY_FORMATS_END amiga_fdc::amiga_fdc(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, AMIGA_FDC, "Amiga FDC", tag, owner, clock) + device_t(mconfig, AMIGA_FDC, "Amiga FDC", tag, owner, clock, "amiga_fdc", __FILE__) { } diff --git a/src/emu/machine/at28c16.c b/src/emu/machine/at28c16.c index 9a64b6cdd22..2b9d0b6d985 100644 --- a/src/emu/machine/at28c16.c +++ b/src/emu/machine/at28c16.c @@ -38,7 +38,7 @@ const device_type AT28C16 = &device_creator<at28c16_device>; //------------------------------------------------- at28c16_device::at28c16_device( const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock ) - : device_t(mconfig, AT28C16, "AT28C16", tag, owner, clock), + : device_t(mconfig, AT28C16, "AT28C16", tag, owner, clock, "at28c16", __FILE__), device_memory_interface(mconfig, *this), device_nvram_interface(mconfig, *this), m_a9_12v( 0 ), diff --git a/src/emu/machine/at29040a.c b/src/emu/machine/at29040a.c index 95982e67bf0..824d138c515 100644 --- a/src/emu/machine/at29040a.c +++ b/src/emu/machine/at29040a.c @@ -33,7 +33,7 @@ Constructor. */ at29040a_device::at29040a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) -: device_t(mconfig, AT29040A, "ATMEL 29040A 512K*8 FEEPROM", tag, owner, clock), +: device_t(mconfig, AT29040A, "ATMEL 29040A 512K*8 FEEPROM", tag, owner, clock, "at29040a", __FILE__), device_nvram_interface(mconfig, *this) { } diff --git a/src/emu/machine/at45dbxx.c b/src/emu/machine/at45dbxx.c index 672d0a7c97f..fea7b59fc69 100644 --- a/src/emu/machine/at45dbxx.c +++ b/src/emu/machine/at45dbxx.c @@ -44,27 +44,27 @@ const device_type AT45DB161 = &device_creator<at45db161_device>; //------------------------------------------------- at45db041_device::at45db041_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, AT45DB041, "AT45DB041", tag, owner, clock), + : device_t(mconfig, AT45DB041, "AT45DB041", tag, owner, clock, "at45db041", __FILE__), device_nvram_interface(mconfig, *this) { } -at45db041_device::at45db041_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock), +at45db041_device::at45db041_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_nvram_interface(mconfig, *this) { } at45db081_device::at45db081_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : at45db041_device(mconfig, AT45DB081, "AT45DB081", tag, owner, clock) + : at45db041_device(mconfig, AT45DB081, "AT45DB081", tag, owner, clock, "at45db081", __FILE__) { } at45db161_device::at45db161_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : at45db041_device(mconfig, AT45DB161, "AT45DB161", tag, owner, clock) + : at45db041_device(mconfig, AT45DB161, "AT45DB161", tag, owner, clock, "at45db161", __FILE__) { } diff --git a/src/emu/machine/at45dbxx.h b/src/emu/machine/at45dbxx.h index 76c8843acb4..9568068a9a6 100644 --- a/src/emu/machine/at45dbxx.h +++ b/src/emu/machine/at45dbxx.h @@ -37,7 +37,7 @@ class at45db041_device : public device_t, { public: at45db041_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - at45db041_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + at45db041_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); DECLARE_WRITE_LINE_MEMBER(cs_w); DECLARE_WRITE_LINE_MEMBER(sck_w); diff --git a/src/emu/machine/ataintf.c b/src/emu/machine/ataintf.c index 7d41cd81e5c..d82d5c850a0 100644 --- a/src/emu/machine/ataintf.c +++ b/src/emu/machine/ataintf.c @@ -155,8 +155,8 @@ SLOT_INTERFACE_START(ata_devices) SLOT_INTERFACE("hdd", IDE_HARDDISK) SLOT_INTERFACE_END -ata_interface_device::ata_interface_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, type, name, tag, owner, clock), +ata_interface_device::ata_interface_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : + device_t(mconfig, type, name, tag, owner, clock, shortname, source), m_irq_handler(*this), m_dmarq_handler(*this) { @@ -166,7 +166,7 @@ ata_interface_device::ata_interface_device(const machine_config &mconfig, device const device_type ATA_INTERFACE = &device_creator<ata_interface_device>; ata_interface_device::ata_interface_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, ATA_INTERFACE, "ATA Interface", tag, owner, clock), + device_t(mconfig, ATA_INTERFACE, "ATA Interface", tag, owner, clock, "ata_interface", __FILE__), m_irq_handler(*this), m_dmarq_handler(*this) { @@ -233,7 +233,7 @@ const device_type ATA_SLOT = &device_creator<ata_slot_device>; //------------------------------------------------- ata_slot_device::ata_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, ATA_SLOT, "ATA Connector", tag, owner, clock), + : device_t(mconfig, ATA_SLOT, "ATA Connector", tag, owner, clock, "ata_slot", __FILE__), device_slot_interface(mconfig, *this), m_dev(NULL) { diff --git a/src/emu/machine/ataintf.h b/src/emu/machine/ataintf.h index db17e736eed..369933e0029 100644 --- a/src/emu/machine/ataintf.h +++ b/src/emu/machine/ataintf.h @@ -77,7 +77,7 @@ class ata_interface_device : public device_t { public: ata_interface_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - ata_interface_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + ata_interface_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); // static configuration helpers template<class _Object> static devcb2_base &set_irq_handler(device_t &device, _Object object) { return downcast<ata_interface_device &>(device).m_irq_handler.set_callback(object); } diff --git a/src/emu/machine/ay31015.c b/src/emu/machine/ay31015.c index 037e9381609..ae5954c1cd0 100644 --- a/src/emu/machine/ay31015.c +++ b/src/emu/machine/ay31015.c @@ -95,18 +95,18 @@ Start bit (low), Bit 0, Bit 1... highest bit, Parity bit (if enabled), 1-2 stop const device_type AY31015 = &device_creator<ay31015_device>; const device_type AY51013 = &device_creator<ay51013_device>; -ay31015_device::ay31015_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock) +ay31015_device::ay31015_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source) { } ay31015_device::ay31015_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, AY31015, "AY-3-1015", tag, owner, clock) + : device_t(mconfig, AY31015, "AY-3-1015", tag, owner, clock, "ay31015", __FILE__) { } ay51013_device::ay51013_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : ay31015_device(mconfig, AY31015, "AY-5-1013", tag, owner, clock) + : ay31015_device(mconfig, AY31015, "AY-5-1013", tag, owner, clock, "ay51013", __FILE__) { } diff --git a/src/emu/machine/ay31015.h b/src/emu/machine/ay31015.h index b82c7dd124e..c98d0d9c9fa 100644 --- a/src/emu/machine/ay31015.h +++ b/src/emu/machine/ay31015.h @@ -71,7 +71,7 @@ class ay31015_device : public device_t, { public: ay31015_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - ay31015_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + ay31015_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); ~ay31015_device() {} diff --git a/src/emu/machine/bankdev.c b/src/emu/machine/bankdev.c index ec8a4b29a33..c173fb0fd40 100644 --- a/src/emu/machine/bankdev.c +++ b/src/emu/machine/bankdev.c @@ -4,7 +4,7 @@ const device_type ADDRESS_MAP_BANK = &device_creator<address_map_bank_device>; address_map_bank_device::address_map_bank_device( const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock ) - : device_t(mconfig, ADDRESS_MAP_BANK, "Address Map Bank", tag, owner, clock), + : device_t(mconfig, ADDRESS_MAP_BANK, "Address Map Bank", tag, owner, clock, "address_map_bank", __FILE__), device_memory_interface(mconfig, *this), m_endianness(ENDIANNESS_NATIVE), m_databus_width(0), diff --git a/src/emu/machine/cdp1852.c b/src/emu/machine/cdp1852.c index 24f13095591..adf43728db6 100644 --- a/src/emu/machine/cdp1852.c +++ b/src/emu/machine/cdp1852.c @@ -65,7 +65,7 @@ void cdp1852_device::set_sr_line(int state) //------------------------------------------------- cdp1852_device::cdp1852_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, CDP1852, "CDP1852", tag, owner, clock) + : device_t(mconfig, CDP1852, "CDP1852", tag, owner, clock, "cdp1852", __FILE__) { } diff --git a/src/emu/machine/cdp1871.c b/src/emu/machine/cdp1871.c index 24f27336ca1..4b835d79988 100644 --- a/src/emu/machine/cdp1871.c +++ b/src/emu/machine/cdp1871.c @@ -93,7 +93,7 @@ static const UINT8 CDP1871_KEY_CODES[4][11][8] = //------------------------------------------------- cdp1871_device::cdp1871_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, CDP1871, "RCA CDP1871", tag, owner, clock), + : device_t(mconfig, CDP1871, "RCA CDP1871", tag, owner, clock, "cdp1871", __FILE__), m_inhibit(false), m_sense(0), m_drive(0), diff --git a/src/emu/machine/com8116.c b/src/emu/machine/com8116.c index 9471fccdac8..8d9535fb7df 100644 --- a/src/emu/machine/com8116.c +++ b/src/emu/machine/com8116.c @@ -47,7 +47,7 @@ const int com8116_device::divisors_32X_5_0688MHz[] = //------------------------------------------------- com8116_device::com8116_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, COM8116, "COM8116", tag, owner, clock), + : device_t(mconfig, COM8116, "COM8116", tag, owner, clock, "com8116", __FILE__), m_write_fx4(*this), m_write_fr(*this), m_write_ft(*this) diff --git a/src/emu/machine/ctronics.c b/src/emu/machine/ctronics.c index d58cbede8e2..d091ca267d7 100644 --- a/src/emu/machine/ctronics.c +++ b/src/emu/machine/ctronics.c @@ -19,7 +19,7 @@ const device_type CENTRONICS = &device_creator<centronics_device>; //------------------------------------------------- centronics_device::centronics_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, CENTRONICS, "Centronics", tag, owner, clock), + : device_t(mconfig, CENTRONICS, "Centronics", tag, owner, clock, "centronics", __FILE__), device_slot_interface(mconfig, *this), m_dev(NULL) { diff --git a/src/emu/machine/ds1302.c b/src/emu/machine/ds1302.c index 9866d1805d7..3460db16ea8 100644 --- a/src/emu/machine/ds1302.c +++ b/src/emu/machine/ds1302.c @@ -74,7 +74,7 @@ const device_type DS1302 = &device_creator<ds1302_device>; //------------------------------------------------- ds1302_device::ds1302_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, DS1302, "Dallas DS1302", tag, owner, clock), + : device_t(mconfig, DS1302, "Dallas DS1302", tag, owner, clock, "ds1302", __FILE__), device_rtc_interface(mconfig, *this), device_nvram_interface(mconfig, *this) { diff --git a/src/emu/machine/ds2401.c b/src/emu/machine/ds2401.c index 2d28c5efe8b..77c1c571b88 100644 --- a/src/emu/machine/ds2401.c +++ b/src/emu/machine/ds2401.c @@ -28,7 +28,7 @@ inline void ATTR_PRINTF(3,4) ds2401_device::verboselog(int n_level, const char * const device_type DS2401 = &device_creator<ds2401_device>; ds2401_device::ds2401_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, DS2401, "DS2401", tag, owner, clock) + : device_t(mconfig, DS2401, "DS2401", tag, owner, clock, "ds2401", __FILE__) { } diff --git a/src/emu/machine/ds2404.c b/src/emu/machine/ds2404.c index 1d4208d247e..a02dd2d5a0a 100644 --- a/src/emu/machine/ds2404.c +++ b/src/emu/machine/ds2404.c @@ -23,7 +23,7 @@ const device_type DS2404 = &device_creator<ds2404_device>; //------------------------------------------------- ds2404_device::ds2404_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, DS2404, "DS2404", tag, owner, clock), + : device_t(mconfig, DS2404, "DS2404", tag, owner, clock, "ds2404", __FILE__), device_nvram_interface(mconfig, *this) { } diff --git a/src/emu/machine/ds75160a.c b/src/emu/machine/ds75160a.c index 9e12c66d3c2..b6646e077e8 100644 --- a/src/emu/machine/ds75160a.c +++ b/src/emu/machine/ds75160a.c @@ -28,7 +28,7 @@ const device_type DS75160A = &device_creator<ds75160a_device>; //------------------------------------------------- ds75160a_device::ds75160a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, DS75160A, "DS75160A", tag, owner, clock), + : device_t(mconfig, DS75160A, "DS75160A", tag, owner, clock, "ds75160a", __FILE__), m_read(*this), m_write(*this), m_data(0xff), diff --git a/src/emu/machine/ds75161a.c b/src/emu/machine/ds75161a.c index 72fadb57677..bf0f55a9a8e 100644 --- a/src/emu/machine/ds75161a.c +++ b/src/emu/machine/ds75161a.c @@ -28,7 +28,7 @@ const device_type DS75161A = &device_creator<ds75161a_device>; //------------------------------------------------- ds75161a_device::ds75161a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, DS75161A, "DS75161A", tag, owner, clock), + : device_t(mconfig, DS75161A, "DS75161A", tag, owner, clock, "ds75161a", __FILE__), m_ren(1), m_ifc(1), m_ndac(1), diff --git a/src/emu/machine/e0516.c b/src/emu/machine/e0516.c index 1416314cac3..52b1fa840c6 100644 --- a/src/emu/machine/e0516.c +++ b/src/emu/machine/e0516.c @@ -40,7 +40,7 @@ const device_type E0516 = &device_creator<e0516_device>; //------------------------------------------------- e0516_device::e0516_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, E0516, "E05-16", tag, owner, clock), + : device_t(mconfig, E0516, "E05-16", tag, owner, clock, "e0516", __FILE__), device_rtc_interface(mconfig, *this) { } diff --git a/src/emu/machine/eeprom.c b/src/emu/machine/eeprom.c index 067f33bf7ca..18481ace058 100644 --- a/src/emu/machine/eeprom.c +++ b/src/emu/machine/eeprom.c @@ -93,7 +93,7 @@ ADDRESS_MAP_END //------------------------------------------------- eeprom_device::eeprom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, EEPROM, "EEPROM", tag, owner, clock), + : device_t(mconfig, EEPROM, "EEPROM", tag, owner, clock, "eeprom", __FILE__), device_memory_interface(mconfig, *this), device_nvram_interface(mconfig, *this), m_default_data_size(0), diff --git a/src/emu/machine/er2055.c b/src/emu/machine/er2055.c index 39db037c5fc..7b78545d04f 100644 --- a/src/emu/machine/er2055.c +++ b/src/emu/machine/er2055.c @@ -63,7 +63,7 @@ ADDRESS_MAP_END //------------------------------------------------- er2055_device::er2055_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, ER2055, "ER2055", tag, owner, clock), + : device_t(mconfig, ER2055, "ER2055", tag, owner, clock, "er2055", __FILE__), device_memory_interface(mconfig, *this), device_nvram_interface(mconfig, *this), m_space_config("EAROM", ENDIANNESS_BIG, 8, 6, 0, *ADDRESS_MAP_NAME(er2055_map)), diff --git a/src/emu/machine/er59256.c b/src/emu/machine/er59256.c index 6eedb17a68a..bc8930e2be6 100644 --- a/src/emu/machine/er59256.c +++ b/src/emu/machine/er59256.c @@ -225,7 +225,7 @@ static void decode_command(er59256_t *er59256) const device_type ER59256 = &device_creator<er59256_device>; er59256_device::er59256_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, ER59256, "Microchip ER59256 serial eeprom.", tag, owner, clock) + : device_t(mconfig, ER59256, "Microchip ER59256 serial eeprom.", tag, owner, clock, "er59256", __FILE__) { m_token = global_alloc_clear(er59256_t); } diff --git a/src/emu/machine/f3853.c b/src/emu/machine/f3853.c index 65ee33267b5..45eb4ec47be 100644 --- a/src/emu/machine/f3853.c +++ b/src/emu/machine/f3853.c @@ -48,7 +48,7 @@ const device_type F3853 = &device_creator<f3853_device>; //------------------------------------------------- f3853_device::f3853_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, F3853, "F3853", tag, owner, clock) + : device_t(mconfig, F3853, "F3853", tag, owner, clock, "f3853", __FILE__) { } diff --git a/src/emu/machine/i2cmem.c b/src/emu/machine/i2cmem.c index 75fd490fc83..c49eb9c77df 100644 --- a/src/emu/machine/i2cmem.c +++ b/src/emu/machine/i2cmem.c @@ -73,7 +73,7 @@ ADDRESS_MAP_END //------------------------------------------------- i2cmem_device::i2cmem_device( const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock ) - : device_t(mconfig, I2CMEM, "I2CMEM", tag, owner, clock), + : device_t(mconfig, I2CMEM, "I2CMEM", tag, owner, clock, "i2cmem", __FILE__), device_memory_interface(mconfig, *this), device_nvram_interface(mconfig, *this), m_scl( 0 ), diff --git a/src/emu/machine/i8155.c b/src/emu/machine/i8155.c index d4140e38a98..c7b0d870eb1 100644 --- a/src/emu/machine/i8155.c +++ b/src/emu/machine/i8155.c @@ -199,7 +199,7 @@ inline void i8155_device::write_port(int port, UINT8 data) //------------------------------------------------- i8155_device::i8155_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, I8155, "Intel 8155", tag, owner, clock), + : device_t(mconfig, I8155, "Intel 8155", tag, owner, clock, "i8155", __FILE__), device_memory_interface(mconfig, *this), m_command(0), m_status(0), diff --git a/src/emu/machine/i8212.c b/src/emu/machine/i8212.c index d2a07b49177..4e5ebd17d15 100644 --- a/src/emu/machine/i8212.c +++ b/src/emu/machine/i8212.c @@ -32,7 +32,7 @@ const device_type I8212 = &device_creator<i8212_device>; //------------------------------------------------- i8212_device::i8212_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, I8212, "Intel 8212", tag, owner, clock), + : device_t(mconfig, I8212, "Intel 8212", tag, owner, clock, "i8212", __FILE__), m_md(I8212_MODE_INPUT), m_stb(0) { diff --git a/src/emu/machine/i8214.c b/src/emu/machine/i8214.c index c76f4101081..45b0fbd4b51 100644 --- a/src/emu/machine/i8214.c +++ b/src/emu/machine/i8214.c @@ -90,7 +90,7 @@ inline void i8214_device::check_interrupt() //------------------------------------------------- i8214_device::i8214_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, I8214, "I8214", tag, owner, clock) + : device_t(mconfig, I8214, "I8214", tag, owner, clock, "i8214", __FILE__) { } diff --git a/src/emu/machine/i8243.c b/src/emu/machine/i8243.c index 6ad42c8ea71..c6cc437c9cb 100644 --- a/src/emu/machine/i8243.c +++ b/src/emu/machine/i8243.c @@ -23,7 +23,7 @@ const device_type I8243 = &device_creator<i8243_device>; //------------------------------------------------- i8243_device::i8243_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, I8243, "I8243", tag, owner, clock), + : device_t(mconfig, I8243, "I8243", tag, owner, clock, "i8243", __FILE__), m_readhandler(*this), m_writehandler(*this) { diff --git a/src/emu/machine/i8251.c b/src/emu/machine/i8251.c index 47c21286bdf..ff67bfe9acf 100644 --- a/src/emu/machine/i8251.c +++ b/src/emu/machine/i8251.c @@ -59,7 +59,7 @@ const device_type I8251 = &device_creator<i8251_device>; //------------------------------------------------- i8251_device::i8251_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, I8251, "I8251", tag, owner, clock), + : device_t(mconfig, I8251, "I8251", tag, owner, clock, "i8251", __FILE__), device_serial_interface(mconfig, *this) { } diff --git a/src/emu/machine/i8255.c b/src/emu/machine/i8255.c index 192d5af3fd4..f8c7731206d 100644 --- a/src/emu/machine/i8255.c +++ b/src/emu/machine/i8255.c @@ -260,7 +260,7 @@ inline int i8255_device::port_c_upper_mode() //------------------------------------------------- i8255_device::i8255_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, I8255, "I8255", tag, owner, clock) + : device_t(mconfig, I8255, "I8255", tag, owner, clock, "i8279", __FILE__) { m_intr[PORT_A] = m_intr[PORT_B] = 0; m_control = 0; diff --git a/src/emu/machine/i8279.c b/src/emu/machine/i8279.c index bb6bc9812da..14367283bc3 100644 --- a/src/emu/machine/i8279.c +++ b/src/emu/machine/i8279.c @@ -88,7 +88,7 @@ const device_type I8279 = &device_creator<i8279_device>; //------------------------------------------------- i8279_device::i8279_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, I8279, "Intel 8279", tag, owner, clock) + : device_t(mconfig, I8279, "Intel 8279", tag, owner, clock, "i8279", __FILE__) { } diff --git a/src/emu/machine/i8355.c b/src/emu/machine/i8355.c index 826e0a6f2c2..69f38ecc8fa 100644 --- a/src/emu/machine/i8355.c +++ b/src/emu/machine/i8355.c @@ -92,7 +92,7 @@ inline void i8355_device::write_port(int port, UINT8 data) //------------------------------------------------- i8355_device::i8355_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, I8355, "Intel 8355", tag, owner, clock), + : device_t(mconfig, I8355, "Intel 8355", tag, owner, clock, "i8355", __FILE__), device_memory_interface(mconfig, *this), m_space_config("ram", ENDIANNESS_LITTLE, 8, 11, 0, NULL, *ADDRESS_MAP_NAME(i8355)) { diff --git a/src/emu/machine/idectrl.c b/src/emu/machine/idectrl.c index 0352e7cfa35..495ffd0510a 100644 --- a/src/emu/machine/idectrl.c +++ b/src/emu/machine/idectrl.c @@ -28,12 +28,12 @@ const device_type IDE_CONTROLLER = &device_creator<ide_controller_device>; ide_controller_device::ide_controller_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - ata_interface_device(mconfig, IDE_CONTROLLER, "IDE Controller", tag, owner, clock) + ata_interface_device(mconfig, IDE_CONTROLLER, "IDE Controller", tag, owner, clock, "ide_controller", __FILE__) { } -ide_controller_device::ide_controller_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : - ata_interface_device(mconfig, type, name, tag, owner, clock) +ide_controller_device::ide_controller_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : + ata_interface_device(mconfig, type, name, tag, owner, clock, shortname, source) { } @@ -92,7 +92,7 @@ WRITE16_MEMBER( ide_controller_device::write_cs1 ) const device_type BUS_MASTER_IDE_CONTROLLER = &device_creator<bus_master_ide_controller_device>; bus_master_ide_controller_device::bus_master_ide_controller_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - ide_controller_device(mconfig, BUS_MASTER_IDE_CONTROLLER, "Bus Master IDE Controller", tag, owner, clock), + ide_controller_device(mconfig, BUS_MASTER_IDE_CONTROLLER, "Bus Master IDE Controller", tag, owner, clock, "bus_master_ide_controller", __FILE__), dma_address(0), dma_bytes_left(0), dma_descriptor(0), diff --git a/src/emu/machine/idectrl.h b/src/emu/machine/idectrl.h index 789fceddccc..896b25b2aa7 100644 --- a/src/emu/machine/idectrl.h +++ b/src/emu/machine/idectrl.h @@ -30,7 +30,7 @@ class ide_controller_device : public ata_interface_device { public: ide_controller_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - ide_controller_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + ide_controller_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); virtual DECLARE_READ16_MEMBER(read_cs0); virtual DECLARE_READ16_MEMBER(read_cs1); diff --git a/src/emu/machine/im6402.c b/src/emu/machine/im6402.c index 2dcd019e8da..d1d4b9bf728 100644 --- a/src/emu/machine/im6402.c +++ b/src/emu/machine/im6402.c @@ -77,7 +77,7 @@ inline void im6402_device::set_tre(int state) //------------------------------------------------- im6402_device::im6402_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, IM6402, "Intersil IM6402", tag, owner, clock), + : device_t(mconfig, IM6402, "Intersil IM6402", tag, owner, clock, "im6402", __FILE__), device_serial_interface(mconfig, *this), m_rrc_count(0), m_trc_count(0) diff --git a/src/emu/machine/ins8154.c b/src/emu/machine/ins8154.c index 9854430c172..c459068432c 100644 --- a/src/emu/machine/ins8154.c +++ b/src/emu/machine/ins8154.c @@ -42,7 +42,7 @@ const device_type INS8154 = &device_creator<ins8154_device>; //------------------------------------------------- ins8154_device::ins8154_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, INS8154, "INS8154", tag, owner, clock) + : device_t(mconfig, INS8154, "INS8154", tag, owner, clock, "ins8154", __FILE__) { } diff --git a/src/emu/machine/intelfsh.c b/src/emu/machine/intelfsh.c index 4794f4f68c1..446a63b0ff8 100644 --- a/src/emu/machine/intelfsh.c +++ b/src/emu/machine/intelfsh.c @@ -149,8 +149,8 @@ ADDRESS_MAP_END // intelfsh_device - constructor //------------------------------------------------- -intelfsh_device::intelfsh_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant) - : device_t(mconfig, type, name, tag, owner, clock), +intelfsh_device::intelfsh_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_memory_interface(mconfig, *this), device_nvram_interface(mconfig, *this), m_type(variant), @@ -314,72 +314,72 @@ intelfsh_device::intelfsh_device(const machine_config &mconfig, device_type type m_space_config = address_space_config("flash", ENDIANNESS_BIG, m_bits, addrbits, (m_bits == 8) ? 0 : -1, map); } -intelfsh8_device::intelfsh8_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant) - : intelfsh_device(mconfig, type, name, tag, owner, clock, variant) { } +intelfsh8_device::intelfsh8_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source) + : intelfsh_device(mconfig, type, name, tag, owner, clock, variant, shortname, source) { } -intelfsh16_device::intelfsh16_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant) - : intelfsh_device(mconfig, type, name, tag, owner, clock, variant) { } +intelfsh16_device::intelfsh16_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source) + : intelfsh_device(mconfig, type, name, tag, owner, clock, variant, shortname, source) { } intel_28f016s5_device::intel_28f016s5_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : intelfsh8_device(mconfig, INTEL_28F016S5, "Intel 28F016S5 Flash", tag, owner, clock, FLASH_INTEL_28F016S5) { } + : intelfsh8_device(mconfig, INTEL_28F016S5, "Intel 28F016S5 Flash", tag, owner, clock, FLASH_INTEL_28F016S5, "intel_28f016s5", __FILE__) { } fujitsu_29f016a_device::fujitsu_29f016a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : intelfsh8_device(mconfig, FUJITSU_29F016A, "Fujitsu 29F016A Flash", tag, owner, clock, FLASH_FUJITSU_29F016A) { } + : intelfsh8_device(mconfig, FUJITSU_29F016A, "Fujitsu 29F016A Flash", tag, owner, clock, FLASH_FUJITSU_29F016A, "fujitsu_29f016a", __FILE__) { } fujitsu_29dl16x_device::fujitsu_29dl16x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : intelfsh8_device(mconfig, FUJITSU_29DL16X, "Fujitsu 29DL16X Flash", tag, owner, clock, FLASH_FUJITSU_29DL16X) { } + : intelfsh8_device(mconfig, FUJITSU_29DL16X, "Fujitsu 29DL16X Flash", tag, owner, clock, FLASH_FUJITSU_29DL16X, "fujitsu_29dl16x", __FILE__) { } sharp_lh28f016s_device::sharp_lh28f016s_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : intelfsh8_device(mconfig, SHARP_LH28F016S, "Sharp LH28F016S Flash", tag, owner, clock, FLASH_SHARP_LH28F016S) { } + : intelfsh8_device(mconfig, SHARP_LH28F016S, "Sharp LH28F016S Flash", tag, owner, clock, FLASH_SHARP_LH28F016S, "sharp_lh28f016s", __FILE__) { } atmel_29c010_device::atmel_29c010_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : intelfsh8_device(mconfig, ATMEL_29C010, "Atmel 29C010 Flash", tag, owner, clock, FLASH_ATMEL_29C010) { } + : intelfsh8_device(mconfig, ATMEL_29C010, "Atmel 29C010 Flash", tag, owner, clock, FLASH_ATMEL_29C010, "atmel_29c010", __FILE__) { } amd_29f010_device::amd_29f010_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : intelfsh8_device(mconfig, AMD_29F010, "AMD 29F010 Flash", tag, owner, clock, FLASH_AMD_29F010) { } + : intelfsh8_device(mconfig, AMD_29F010, "AMD 29F010 Flash", tag, owner, clock, FLASH_AMD_29F010, "amd_29f010", __FILE__) { } amd_29f040_device::amd_29f040_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : intelfsh8_device(mconfig, AMD_29F040, "AMD 29F040 Flash", tag, owner, clock, FLASH_AMD_29F040) { } + : intelfsh8_device(mconfig, AMD_29F040, "AMD 29F040 Flash", tag, owner, clock, FLASH_AMD_29F040, "amd_29f040", __FILE__) { } amd_29f080_device::amd_29f080_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : intelfsh8_device(mconfig, AMD_29F080, "AMD 29F080 Flash", tag, owner, clock, FLASH_AMD_29F080) { } + : intelfsh8_device(mconfig, AMD_29F080, "AMD 29F080 Flash", tag, owner, clock, FLASH_AMD_29F080, "amd_29f080", __FILE__) { } intel_e28f008sa_device::intel_e28f008sa_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : intelfsh8_device(mconfig, INTEL_E28F008SA, "Intel E28F008SA Flash", tag, owner, clock, FLASH_INTEL_E28F008SA) { } + : intelfsh8_device(mconfig, INTEL_E28F008SA, "Intel E28F008SA Flash", tag, owner, clock, FLASH_INTEL_E28F008SA, "intel_e28f008sa", __FILE__) { } macronix_29l001mc_device::macronix_29l001mc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : intelfsh8_device(mconfig, MACRONIX_29L001MC, "Macronix 29L001MC Flash", tag, owner, clock, FLASH_MACRONIX_29L001MC) { } + : intelfsh8_device(mconfig, MACRONIX_29L001MC, "Macronix 29L001MC Flash", tag, owner, clock, FLASH_MACRONIX_29L001MC, "macronix_29l001mc", __FILE__) { } panasonic_mn63f805mnp_device::panasonic_mn63f805mnp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : intelfsh8_device(mconfig, PANASONIC_MN63F805MNP, "Panasonic MN63F805MNP Flash", tag, owner, clock, FLASH_PANASONIC_MN63F805MNP) { } + : intelfsh8_device(mconfig, PANASONIC_MN63F805MNP, "Panasonic MN63F805MNP Flash", tag, owner, clock, FLASH_PANASONIC_MN63F805MNP, "panasonic_mn63f805mnp", __FILE__) { } sanyo_le26fv10n1ts_device::sanyo_le26fv10n1ts_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : intelfsh8_device(mconfig, SANYO_LE26FV10N1TS, "Sanyo LE26FV10N1TS Flash", tag, owner, clock, FLASH_SANYO_LE26FV10N1TS) { } + : intelfsh8_device(mconfig, SANYO_LE26FV10N1TS, "Sanyo LE26FV10N1TS Flash", tag, owner, clock, FLASH_SANYO_LE26FV10N1TS, "sanyo_le26fv10n1ts", __FILE__) { } sst_28sf040_device::sst_28sf040_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : intelfsh8_device(mconfig, SST_28SF040, "SST 28SF040 Flash", tag, owner, clock, FLASH_SST_28SF040) { } + : intelfsh8_device(mconfig, SST_28SF040, "SST 28SF040 Flash", tag, owner, clock, FLASH_SST_28SF040, "sst_28sf040", __FILE__) { } sst_39vf020_device::sst_39vf020_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : intelfsh8_device(mconfig, SST_39VF020, "SST 39VF020 Flash", tag, owner, clock, FLASH_SST_39VF020) { } + : intelfsh8_device(mconfig, SST_39VF020, "SST 39VF020 Flash", tag, owner, clock, FLASH_SST_39VF020, "sst_39vf020", __FILE__) { } sharp_lh28f400_device::sharp_lh28f400_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : intelfsh16_device(mconfig, SHARP_LH28F400, "Sharp LH28F400 Flash", tag, owner, clock, FLASH_SHARP_LH28F400) { } + : intelfsh16_device(mconfig, SHARP_LH28F400, "Sharp LH28F400 Flash", tag, owner, clock, FLASH_SHARP_LH28F400, "sharp_lh28f400", __FILE__) { } intel_te28f160_device::intel_te28f160_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : intelfsh16_device(mconfig, INTEL_TE28F160, "Intel TE28F160 Flash", tag, owner, clock, FLASH_INTEL_TE28F160) { } + : intelfsh16_device(mconfig, INTEL_TE28F160, "Intel TE28F160 Flash", tag, owner, clock, FLASH_INTEL_TE28F160, "intel_te28f160", __FILE__) { } intel_e28f400_device::intel_e28f400_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : intelfsh16_device(mconfig, INTEL_E28F400, "Intel E28F400 Flash", tag, owner, clock, FLASH_INTEL_E28F400) { } + : intelfsh16_device(mconfig, INTEL_E28F400, "Intel E28F400 Flash", tag, owner, clock, FLASH_INTEL_E28F400, "intel_e28f400", __FILE__) { } sharp_unk128mbit_device::sharp_unk128mbit_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : intelfsh16_device(mconfig, SHARP_UNK128MBIT, "Sharp Unknown 128Mbit Flash", tag, owner, clock, FLASH_SHARP_UNK128MBIT) { } + : intelfsh16_device(mconfig, SHARP_UNK128MBIT, "Sharp Unknown 128Mbit Flash", tag, owner, clock, FLASH_SHARP_UNK128MBIT, "sharp_unk128mbit", __FILE__) { } intel_28f320j3d_device::intel_28f320j3d_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : intelfsh16_device(mconfig, INTEL_28F320J3D, "Intel 28F320J3D Flash", tag, owner, clock, FLASH_INTEL_28F320J3D) { } + : intelfsh16_device(mconfig, INTEL_28F320J3D, "Intel 28F320J3D Flash", tag, owner, clock, FLASH_INTEL_28F320J3D, "intel_28f320j3d", __FILE__) { } sst_39vf400a_device::sst_39vf400a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : intelfsh16_device(mconfig, SST_39VF400A, "SST 39VF400A Flash", tag, owner, clock, FLASH_SST_39VF400A) { } + : intelfsh16_device(mconfig, SST_39VF400A, "SST 39VF400A Flash", tag, owner, clock, FLASH_SST_39VF400A, "sst_39vf400a", __FILE__) { } //------------------------------------------------- // device_start - device-specific startup diff --git a/src/emu/machine/intelfsh.h b/src/emu/machine/intelfsh.h index 231b7daf1bc..3c579bf491f 100644 --- a/src/emu/machine/intelfsh.h +++ b/src/emu/machine/intelfsh.h @@ -113,7 +113,7 @@ public: protected: // construction/destruction - intelfsh_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant); + intelfsh_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source); protected: // device-level overrides @@ -159,7 +159,7 @@ class intelfsh8_device : public intelfsh_device { protected: // construction/destruction - intelfsh8_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant); + intelfsh8_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source); public: // public interface @@ -179,7 +179,7 @@ class intelfsh16_device : public intelfsh_device { protected: // construction/destruction - intelfsh16_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant); + intelfsh16_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source); public: // public interface diff --git a/src/emu/machine/jvsdev.c b/src/emu/machine/jvsdev.c index 22ef6abb9d5..5402bb81118 100644 --- a/src/emu/machine/jvsdev.c +++ b/src/emu/machine/jvsdev.c @@ -7,7 +7,8 @@ void jvs_device::static_set_jvs_host_tag(device_t &device, const char *jvs_host_ jvsdev.jvs_host_tag = jvs_host_tag; } -jvs_device::jvs_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, type, name, tag, owner, clock) +jvs_device::jvs_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source) { jvs_host_tag = 0; next_device = 0; diff --git a/src/emu/machine/jvsdev.h b/src/emu/machine/jvsdev.h index fb2adfe2afb..a0c6711652c 100644 --- a/src/emu/machine/jvsdev.h +++ b/src/emu/machine/jvsdev.h @@ -11,7 +11,7 @@ class jvs_host; class jvs_device : public device_t { public: - jvs_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + jvs_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); static void static_set_jvs_host_tag(device_t &device, const char *jvs_host_tag); void chain(jvs_device *dev); diff --git a/src/emu/machine/jvshost.c b/src/emu/machine/jvshost.c index 819d20ca736..11351d66e7d 100644 --- a/src/emu/machine/jvshost.c +++ b/src/emu/machine/jvshost.c @@ -26,7 +26,8 @@ void jvs_host::device_reset() memset(recv_buffer, 0, sizeof(recv_buffer)); } -jvs_host::jvs_host(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, type, name, tag, owner, clock) +jvs_host::jvs_host(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source) { first_device = 0; } diff --git a/src/emu/machine/jvshost.h b/src/emu/machine/jvshost.h index 3a1fcc47add..249048ec512 100644 --- a/src/emu/machine/jvshost.h +++ b/src/emu/machine/jvshost.h @@ -7,7 +7,7 @@ class jvs_device; class jvs_host : public device_t { public: - jvs_host(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + jvs_host(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); void add_device(jvs_device *dev); diff --git a/src/emu/machine/k033906.c b/src/emu/machine/k033906.c index bba18440d86..3c859d8981a 100644 --- a/src/emu/machine/k033906.c +++ b/src/emu/machine/k033906.c @@ -21,7 +21,7 @@ const device_type K033906 = &device_creator<k033906_device>; //------------------------------------------------- k033906_device::k033906_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K033906, "Konami 033906", tag, owner, clock) + : device_t(mconfig, K033906, "Konami 033906", tag, owner, clock, "k033906", __FILE__) { } diff --git a/src/emu/machine/k053252.c b/src/emu/machine/k053252.c index bf159f6e6cb..4eb38a0dfb6 100644 --- a/src/emu/machine/k053252.c +++ b/src/emu/machine/k053252.c @@ -59,7 +59,7 @@ TODO: const device_type K053252 = &device_creator<k053252_device>; k053252_device::k053252_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K053252, "Konami 053252", tag, owner, clock) + : device_t(mconfig, K053252, "Konami 053252", tag, owner, clock, "k053252", __FILE__) { } diff --git a/src/emu/machine/k056230.c b/src/emu/machine/k056230.c index 42c0dba7d22..acf86c95b2c 100644 --- a/src/emu/machine/k056230.c +++ b/src/emu/machine/k056230.c @@ -20,7 +20,7 @@ const device_type K056230 = &device_creator<k056230_device>; //------------------------------------------------- k056230_device::k056230_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, K056230, "Konami 056230", tag, owner, clock) + : device_t(mconfig, K056230, "Konami 056230", tag, owner, clock, "k056230", __FILE__) { } diff --git a/src/emu/machine/latch8.c b/src/emu/machine/latch8.c index d99d9872e44..6176e3953a6 100644 --- a/src/emu/machine/latch8.c +++ b/src/emu/machine/latch8.c @@ -234,7 +234,7 @@ static DEVICE_RESET( latch8 ) const device_type LATCH8 = &device_creator<latch8_device>; latch8_device::latch8_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, LATCH8, "8 bit latch", tag, owner, clock) + : device_t(mconfig, LATCH8, "8 bit latch", tag, owner, clock, "latch8", __FILE__) { m_token = global_alloc_clear(latch8_t); memset((void*)&m_inline_config,0,sizeof(m_inline_config)); diff --git a/src/emu/machine/lc89510.c b/src/emu/machine/lc89510.c index be0aa027339..3de42fd6c55 100644 --- a/src/emu/machine/lc89510.c +++ b/src/emu/machine/lc89510.c @@ -10,7 +10,7 @@ const device_type LC89510 = &device_creator<lc89510_device>; lc89510_device::lc89510_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, LC89510, "lc89510_device", tag, owner, clock) + : device_t(mconfig, LC89510, "lc89510_device", tag, owner, clock, "lc89510", __FILE__) { } diff --git a/src/emu/machine/m6m80011ap.c b/src/emu/machine/m6m80011ap.c index 6640ed2e367..d47a550fe95 100644 --- a/src/emu/machine/m6m80011ap.c +++ b/src/emu/machine/m6m80011ap.c @@ -26,7 +26,7 @@ const device_type M6M80011AP = &device_creator<m6m80011ap_device>; //------------------------------------------------- m6m80011ap_device::m6m80011ap_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, M6M80011AP, "m6m80011ap", tag, owner, clock), + : device_t(mconfig, M6M80011AP, "m6m80011ap", tag, owner, clock, "m6m80011ap", __FILE__), device_nvram_interface(mconfig, *this) { } diff --git a/src/emu/machine/mb14241.c b/src/emu/machine/mb14241.c index 6cc861e9272..6f4187c74b1 100644 --- a/src/emu/machine/mb14241.c +++ b/src/emu/machine/mb14241.c @@ -16,7 +16,7 @@ const device_type MB14241 = &device_creator<mb14241_device>; mb14241_device::mb14241_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MB14241, "MB14241", tag, owner, clock) + : device_t(mconfig, MB14241, "MB14241", tag, owner, clock, "mb14241", __FILE__) { } diff --git a/src/emu/machine/mb3773.c b/src/emu/machine/mb3773.c index 9493b6cd585..a22e3386868 100644 --- a/src/emu/machine/mb3773.c +++ b/src/emu/machine/mb3773.c @@ -26,7 +26,7 @@ const device_type MB3773 = &device_creator<mb3773_device>; //------------------------------------------------- mb3773_device::mb3773_device( const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock ) - : device_t(mconfig, MB3773, "MB3773", tag, owner, clock) + : device_t(mconfig, MB3773, "MB3773", tag, owner, clock, "mb3773", __FILE__) { } diff --git a/src/emu/machine/mb87078.c b/src/emu/machine/mb87078.c index ae4bfa1b677..0eed46a5645 100644 --- a/src/emu/machine/mb87078.c +++ b/src/emu/machine/mb87078.c @@ -268,7 +268,7 @@ static DEVICE_RESET( mb87078 ) const device_type MB87078 = &device_creator<mb87078_device>; mb87078_device::mb87078_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MB87078, "Fujitsu MB87078", tag, owner, clock) + : device_t(mconfig, MB87078, "Fujitsu MB87078", tag, owner, clock, "mb87078", __FILE__) { m_token = global_alloc_clear(mb87078_state); } diff --git a/src/emu/machine/mb89371.c b/src/emu/machine/mb89371.c index e14eacb0f66..45b140b6cae 100644 --- a/src/emu/machine/mb89371.c +++ b/src/emu/machine/mb89371.c @@ -11,7 +11,7 @@ const device_type MB89371 = &device_creator<mb89371_device>; mb89371_device::mb89371_device( const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock ) - : device_t(mconfig, MB89371, "MB89371", tag, owner, clock) + : device_t(mconfig, MB89371, "MB89371", tag, owner, clock, "mb89371", __FILE__) { } diff --git a/src/emu/machine/mc146818.c b/src/emu/machine/mc146818.c index 6d56339ca0d..131ebcba492 100644 --- a/src/emu/machine/mc146818.c +++ b/src/emu/machine/mc146818.c @@ -112,7 +112,7 @@ const device_type MC146818 = &device_creator<mc146818_device>; //------------------------------------------------- mc146818_device::mc146818_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MC146818, "NVRAM", tag, owner, clock), + : device_t(mconfig, MC146818, "NVRAM", tag, owner, clock, "mc146818", __FILE__), device_rtc_interface(mconfig, *this), device_nvram_interface(mconfig, *this), m_write_irq(*this), diff --git a/src/emu/machine/mc2661.c b/src/emu/machine/mc2661.c index 4e57c2bed01..e2c5c27c697 100644 --- a/src/emu/machine/mc2661.c +++ b/src/emu/machine/mc2661.c @@ -100,7 +100,7 @@ enum //------------------------------------------------- mc2661_device::mc2661_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MC2661, "MC2661", tag, owner, clock), + : device_t(mconfig, MC2661, "MC2661", tag, owner, clock, "mc2661", __FILE__), device_serial_interface(mconfig, *this) { } diff --git a/src/emu/machine/mc6843.c b/src/emu/machine/mc6843.c index a3a4660be3b..0166f69a111 100644 --- a/src/emu/machine/mc6843.c +++ b/src/emu/machine/mc6843.c @@ -829,7 +829,7 @@ static DEVICE_START( mc6843 ) const device_type MC6843 = &device_creator<mc6843_device>; mc6843_device::mc6843_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MC6843, "Motorola MC6843 floppy controller", tag, owner, clock) + : device_t(mconfig, MC6843, "Motorola MC6843 floppy controller", tag, owner, clock, "mc6843", __FILE__) { m_token = global_alloc_clear(mc6843_t); } diff --git a/src/emu/machine/mc6846.c b/src/emu/machine/mc6846.c index 2db1709d9cd..662f7624e0a 100644 --- a/src/emu/machine/mc6846.c +++ b/src/emu/machine/mc6846.c @@ -637,7 +637,7 @@ static DEVICE_START( mc6846 ) const device_type MC6846 = &device_creator<mc6846_device>; mc6846_device::mc6846_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MC6846, "Motorola MC6846 programmable timer", tag, owner, clock) + : device_t(mconfig, MC6846, "Motorola MC6846 programmable timer", tag, owner, clock, "mc6846", __FILE__) { m_token = global_alloc_clear(mc6846_t); } diff --git a/src/emu/machine/mc6852.c b/src/emu/machine/mc6852.c index 37dcf5a3729..b9bb5dd0040 100644 --- a/src/emu/machine/mc6852.c +++ b/src/emu/machine/mc6852.c @@ -105,7 +105,7 @@ inline void mc6852_device::transmit() //------------------------------------------------- mc6852_device::mc6852_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MC6852, "MC6852", tag, owner, clock) + : device_t(mconfig, MC6852, "MC6852", tag, owner, clock, "mc6852", __FILE__) { } diff --git a/src/emu/machine/mc6854.c b/src/emu/machine/mc6854.c index f453647b60b..57194aee4e3 100644 --- a/src/emu/machine/mc6854.c +++ b/src/emu/machine/mc6854.c @@ -1038,7 +1038,7 @@ static DEVICE_START( mc6854 ) const device_type MC6854 = &device_creator<mc6854_device>; mc6854_device::mc6854_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MC6854, "Motorola MC6854 ADLC", tag, owner, clock) + : device_t(mconfig, MC6854, "Motorola MC6854 ADLC", tag, owner, clock, "mc6854", __FILE__) { m_token = global_alloc_clear(mc6854_t); } diff --git a/src/emu/machine/mc68901.c b/src/emu/machine/mc68901.c index d0b6558c55c..7404044031e 100644 --- a/src/emu/machine/mc68901.c +++ b/src/emu/machine/mc68901.c @@ -651,7 +651,7 @@ inline void mc68901_device::gpio_input(int bit, int state) //------------------------------------------------- mc68901_device::mc68901_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MC68901, "Motorola MC68901", tag, owner, clock), + : device_t(mconfig, MC68901, "Motorola MC68901", tag, owner, clock, "mc68901", __FILE__), device_serial_interface(mconfig, *this), m_gpip(0), m_tsr(TSR_BUFFER_EMPTY) diff --git a/src/emu/machine/mccs1850.c b/src/emu/machine/mccs1850.c index cad29077455..b534443594c 100644 --- a/src/emu/machine/mccs1850.c +++ b/src/emu/machine/mccs1850.c @@ -281,7 +281,7 @@ inline void mccs1850_device::advance_seconds() //------------------------------------------------- mccs1850_device::mccs1850_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MCCS1850, "MCCS1850", tag, owner, clock), + : device_t(mconfig, MCCS1850, "MCCS1850", tag, owner, clock, "mccs1850", __FILE__), device_rtc_interface(mconfig, *this), device_nvram_interface(mconfig, *this), m_pse(1), diff --git a/src/emu/machine/mcf5206e.c b/src/emu/machine/mcf5206e.c index 2679a7b62cb..bab4725afc0 100644 --- a/src/emu/machine/mcf5206e.c +++ b/src/emu/machine/mcf5206e.c @@ -829,7 +829,7 @@ const device_type MCF5206E_PERIPHERAL = &device_creator<mcf5206e_peripheral_devi //------------------------------------------------- mcf5206e_peripheral_device::mcf5206e_peripheral_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MCF5206E_PERIPHERAL, "MCF5206E Peripheral", tag, owner, clock), + : device_t(mconfig, MCF5206E_PERIPHERAL, "MCF5206E Peripheral", tag, owner, clock, "mcf5206e", __FILE__), device_memory_interface(mconfig, *this), m_space_config("coldfire_regs", ENDIANNESS_BIG, 32,10, 0, NULL, *ADDRESS_MAP_NAME(coldfire_regs_map)) diff --git a/src/emu/machine/microtch.c b/src/emu/machine/microtch.c index 194ed82ad34..293f4597e51 100644 --- a/src/emu/machine/microtch.c +++ b/src/emu/machine/microtch.c @@ -15,8 +15,8 @@ const device_type MICROTOUCH = &device_creator<microtouch_device>; -microtouch_device::microtouch_device(const machine_config &mconfig, device_type type, const char* name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock, "microtouch", __FILE__), +microtouch_device::microtouch_device(const machine_config &mconfig, device_type type, const char* name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), m_out_tx_func(*this), m_touch(*this, "TOUCH"), m_touchx(*this, "TOUCH_X"), @@ -283,7 +283,7 @@ ioport_constructor microtouch_device::device_input_ports() const const device_type MICROTOUCH_SERIAL = &device_creator<microtouch_serial_device>; microtouch_serial_device::microtouch_serial_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : microtouch_device(mconfig, MICROTOUCH_SERIAL, "Microtouch Serial Touchscreen", tag, owner, clock), + : microtouch_device(mconfig, MICROTOUCH_SERIAL, "Microtouch Serial Touchscreen", tag, owner, clock, "microtouch_serial", __FILE__), device_serial_interface(mconfig, *this), m_out_stx_func(*this) { diff --git a/src/emu/machine/microtch.h b/src/emu/machine/microtch.h index 988c4e712b4..e7a09726921 100644 --- a/src/emu/machine/microtch.h +++ b/src/emu/machine/microtch.h @@ -8,7 +8,7 @@ class microtouch_device : public device_t { public: - microtouch_device(const machine_config &mconfig, device_type type, const char* name, const char *tag, device_t *owner, UINT32 clock); + microtouch_device(const machine_config &mconfig, device_type type, const char* name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); microtouch_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); template<class _Object> static devcb2_base &static_set_tx_callback(device_t &device, _Object object) { return downcast<microtouch_device &>(device).m_out_tx_func.set_callback(object); } diff --git a/src/emu/machine/mm58274c.c b/src/emu/machine/mm58274c.c index 56e94eecad1..08c47847b73 100644 --- a/src/emu/machine/mm58274c.c +++ b/src/emu/machine/mm58274c.c @@ -46,7 +46,7 @@ const device_type MM58274C = &device_creator<mm58274c_device>; mm58274c_device::mm58274c_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MM58274C, "National Semiconductor MM58274C", tag, owner, clock) + : device_t(mconfig, MM58274C, "National Semiconductor MM58274C", tag, owner, clock, "mm58274c", __FILE__) { } diff --git a/src/emu/machine/mm74c922.c b/src/emu/machine/mm74c922.c index a9a943b0eec..36dc7047fee 100644 --- a/src/emu/machine/mm74c922.c +++ b/src/emu/machine/mm74c922.c @@ -115,7 +115,7 @@ inline void mm74c922_device::detect_keypress() //------------------------------------------------- mm74c922_device::mm74c922_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MM74C922, "MM74C922", tag, owner, clock), + : device_t(mconfig, MM74C922, "MM74C922", tag, owner, clock, "mm74c922", __FILE__), m_inhibit(0), m_x(0), m_y(0), diff --git a/src/emu/machine/mos6526.c b/src/emu/machine/mos6526.c index 1b68d63845a..f28a5361365 100644 --- a/src/emu/machine/mos6526.c +++ b/src/emu/machine/mos6526.c @@ -590,8 +590,8 @@ inline void mos6526_device::synchronize() // mos6526_device - constructor //------------------------------------------------- -mos6526_device::mos6526_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant) - : device_t(mconfig, type, name, tag, owner, clock), +mos6526_device::mos6526_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_execute_interface(mconfig, *this), m_icount(0), m_variant(variant), @@ -607,7 +607,7 @@ mos6526_device::mos6526_device(const machine_config &mconfig, device_type type, } mos6526_device::mos6526_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MOS6526, "MOS6526", tag, owner, clock), + : device_t(mconfig, MOS6526, "MOS6526", tag, owner, clock, "mos6526", __FILE__), device_execute_interface(mconfig, *this), m_icount(0), m_variant(TYPE_6526), @@ -622,13 +622,13 @@ mos6526_device::mos6526_device(const machine_config &mconfig, const char *tag, d { } mos6526a_device::mos6526a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : mos6526_device(mconfig, MOS6526A, "MOS6526A", tag, owner, clock, TYPE_6526A) { } + : mos6526_device(mconfig, MOS6526A, "MOS6526A", tag, owner, clock, TYPE_6526A, "mos6526a", __FILE__) { } mos8520_device::mos8520_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : mos6526_device(mconfig, MOS8520, "MOS8520", tag, owner, clock, TYPE_8520) { } + : mos6526_device(mconfig, MOS8520, "MOS8520", tag, owner, clock, TYPE_8520, "mos8520", __FILE__) { } mos5710_device::mos5710_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : mos6526_device(mconfig, MOS5710, "MOS5710", tag, owner, clock, TYPE_5710) { } + : mos6526_device(mconfig, MOS5710, "MOS5710", tag, owner, clock, TYPE_5710, "mos5710", __FILE__) { } //------------------------------------------------- diff --git a/src/emu/machine/mos6526.h b/src/emu/machine/mos6526.h index 3670e7d5e96..cd9f5484bbd 100644 --- a/src/emu/machine/mos6526.h +++ b/src/emu/machine/mos6526.h @@ -108,7 +108,7 @@ class mos6526_device : public device_t, { public: // construction/destruction - mos6526_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant); + mos6526_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source); mos6526_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); template<class _irq> void set_callbacks(int tod_clock, _irq irq) { diff --git a/src/emu/machine/mos6529.c b/src/emu/machine/mos6529.c index 7a6db300541..7e444e5ef9d 100644 --- a/src/emu/machine/mos6529.c +++ b/src/emu/machine/mos6529.c @@ -37,7 +37,7 @@ const device_type MOS6529 = &device_creator<mos6529_device>; //------------------------------------------------- mos6529_device::mos6529_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MOS6529, "MOS6529", tag, owner, clock), + : device_t(mconfig, MOS6529, "MOS6529", tag, owner, clock, "mos6529", __FILE__), m_read_port(*this), m_write_port(*this) { diff --git a/src/emu/machine/mos6530.c b/src/emu/machine/mos6530.c index 9075b9a2cb5..042d2843ada 100644 --- a/src/emu/machine/mos6530.c +++ b/src/emu/machine/mos6530.c @@ -435,7 +435,7 @@ static DEVICE_RESET( mos6530 ) const device_type MOS6530 = &device_creator<mos6530_device>; mos6530_device::mos6530_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MOS6530, "MOS6530", tag, owner, clock) + : device_t(mconfig, MOS6530, "MOS6530", tag, owner, clock, "mos6530", __FILE__) { m_token = global_alloc_clear(mos6530_state); } diff --git a/src/emu/machine/mos6551.c b/src/emu/machine/mos6551.c index 4192cd49e94..d43e1112477 100644 --- a/src/emu/machine/mos6551.c +++ b/src/emu/machine/mos6551.c @@ -53,7 +53,7 @@ const device_type MOS6551 = &device_creator<mos6551_device>; //------------------------------------------------- mos6551_device::mos6551_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MOS6551, "MOS6551", tag, owner, clock), + : device_t(mconfig, MOS6551, "MOS6551", tag, owner, clock, "mos6551", __FILE__), device_serial_interface(mconfig, *this), m_write_irq(*this), m_read_rxd(*this), diff --git a/src/emu/machine/msm5832.c b/src/emu/machine/msm5832.c index fbcc277e601..f7fece2757c 100644 --- a/src/emu/machine/msm5832.c +++ b/src/emu/machine/msm5832.c @@ -89,7 +89,7 @@ inline void msm5832_device::write_counter(int counter, int value) //------------------------------------------------- msm5832_device::msm5832_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MSM5832, "MSM5832", tag, owner, clock), + : device_t(mconfig, MSM5832, "MSM5832", tag, owner, clock, "msm5832", __FILE__), device_rtc_interface(mconfig, *this), m_hold(0), m_address(0), diff --git a/src/emu/machine/msm58321.c b/src/emu/machine/msm58321.c index ed45d55d5b0..7c0a96583a0 100644 --- a/src/emu/machine/msm58321.c +++ b/src/emu/machine/msm58321.c @@ -92,7 +92,7 @@ inline void msm58321_device::write_counter(int counter, int value) //------------------------------------------------- msm58321_device::msm58321_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MSM58321, "MSM58321", tag, owner, clock), + : device_t(mconfig, MSM58321, "MSM58321", tag, owner, clock, "msm58321", __FILE__), device_rtc_interface(mconfig, *this), m_cs2(0) { diff --git a/src/emu/machine/msm6242.c b/src/emu/machine/msm6242.c index 61280ef375a..6ad5b587def 100644 --- a/src/emu/machine/msm6242.c +++ b/src/emu/machine/msm6242.c @@ -64,7 +64,7 @@ const device_type msm6242 = &device_creator<msm6242_device>; //------------------------------------------------- msm6242_device::msm6242_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, msm6242, "msm6242", tag, owner, clock), + : device_t(mconfig, msm6242, "msm6242", tag, owner, clock, "msm6242", __FILE__), device_rtc_interface(mconfig, *this) { } diff --git a/src/emu/machine/n68681.c b/src/emu/machine/n68681.c index e3ad5c55327..0cb152c4ce4 100644 --- a/src/emu/machine/n68681.c +++ b/src/emu/machine/n68681.c @@ -489,7 +489,7 @@ void duartn68681_device::set_ISR_bits(int mask) // DUART channel class stuff duart68681_channel::duart68681_channel(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, DUART68681CHANNEL, "DUART 68681 channel", tag, owner, clock), + : device_t(mconfig, DUART68681CHANNEL, "DUART 68681 channel", tag, owner, clock, "duart68681_channel", __FILE__), device_serial_interface(mconfig, *this), MR1(0), MR2(0), diff --git a/src/emu/machine/ncr539x.c b/src/emu/machine/ncr539x.c index 2a28e18866e..2d5a23f9a41 100644 --- a/src/emu/machine/ncr539x.c +++ b/src/emu/machine/ncr539x.c @@ -138,7 +138,7 @@ const device_type NCR539X = &device_creator<ncr539x_device>; //------------------------------------------------- ncr539x_device::ncr539x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, NCR539X, "539x SCSI", tag, owner, clock) + : device_t(mconfig, NCR539X, "539x SCSI", tag, owner, clock, "ncr539x", __FILE__) { } diff --git a/src/emu/machine/netlist.c b/src/emu/machine/netlist.c index 7d6671842e7..70b89756e2c 100644 --- a/src/emu/machine/netlist.c +++ b/src/emu/machine/netlist.c @@ -881,7 +881,7 @@ NETLIB_UPDATE(netdev_callback) const device_type NETLIST = &device_creator<netlist_mame_device>; netlist_mame_device::netlist_mame_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, NETLIST, "netlist", tag, owner, clock), + : device_t(mconfig, NETLIST, "netlist", tag, owner, clock, "netlist_mame", __FILE__), device_execute_interface(mconfig, *this) { } diff --git a/src/emu/machine/nmc9306.c b/src/emu/machine/nmc9306.c index 9a232f8a5d2..ba8c27f59f3 100644 --- a/src/emu/machine/nmc9306.c +++ b/src/emu/machine/nmc9306.c @@ -105,7 +105,7 @@ inline void nmc9306_device::erase(offs_t offset) //------------------------------------------------- nmc9306_device::nmc9306_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, NMC9306, "NMC9306", tag, owner, clock), + : device_t(mconfig, NMC9306, "NMC9306", tag, owner, clock, "nmc9306", __FILE__), device_nvram_interface(mconfig, *this), m_state(STATE_IDLE), m_ewen(false) diff --git a/src/emu/machine/nscsi_bus.c b/src/emu/machine/nscsi_bus.c index 615263d0489..4a31b02fda9 100644 --- a/src/emu/machine/nscsi_bus.c +++ b/src/emu/machine/nscsi_bus.c @@ -4,7 +4,7 @@ const device_type NSCSI_BUS = &device_creator<nscsi_bus_device>; const device_type NSCSI_CONNECTOR = &device_creator<nscsi_connector>; nscsi_bus_device::nscsi_bus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, NSCSI_BUS, "SCSI Bus", tag, owner, clock) + device_t(mconfig, NSCSI_BUS, "SCSI Bus", tag, owner, clock, "nscsi_bus", __FILE__) { devcnt = 0; memset(dev, 0, sizeof(dev)); @@ -124,7 +124,7 @@ void nscsi_bus_device::device_config_complete() nscsi_connector::nscsi_connector(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, NSCSI_CONNECTOR, "NSCSI device connector abstraction", tag, owner, clock), + device_t(mconfig, NSCSI_CONNECTOR, "NSCSI device connector abstraction", tag, owner, clock, "nscsi_connector", __FILE__), device_slot_interface(mconfig, *this) { } diff --git a/src/emu/machine/nvram.c b/src/emu/machine/nvram.c index 864416d3426..1e32e7965d4 100644 --- a/src/emu/machine/nvram.c +++ b/src/emu/machine/nvram.c @@ -54,7 +54,7 @@ const device_type NVRAM = &device_creator<nvram_device>; //------------------------------------------------- nvram_device::nvram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, NVRAM, "NVRAM", tag, owner, clock), + : device_t(mconfig, NVRAM, "NVRAM", tag, owner, clock, "nvram", __FILE__), device_nvram_interface(mconfig, *this), m_default_value(DEFAULT_ALL_1), m_base(NULL), diff --git a/src/emu/machine/pcf8593.c b/src/emu/machine/pcf8593.c index 6dd6c894354..db237678804 100644 --- a/src/emu/machine/pcf8593.c +++ b/src/emu/machine/pcf8593.c @@ -45,7 +45,7 @@ const device_type PCF8593 = &device_creator<pcf8593_device>; //------------------------------------------------- pcf8593_device::pcf8593_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, PCF8593, "PCF8593 RTC", tag, owner, clock), + : device_t(mconfig, PCF8593, "PCF8593 RTC", tag, owner, clock, "pcf8593", __FILE__), device_rtc_interface(mconfig, *this), device_nvram_interface(mconfig, *this) { diff --git a/src/emu/machine/pci.c b/src/emu/machine/pci.c index efdcf64e19c..dc5927de688 100644 --- a/src/emu/machine/pci.c +++ b/src/emu/machine/pci.c @@ -88,7 +88,7 @@ const device_type PCI_BUS_LEGACY = &device_creator<pci_bus_legacy_device>; // pci_bus_legacy_device - constructor //------------------------------------------------- pci_bus_legacy_device::pci_bus_legacy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, PCI_BUS, "PCI Bus", tag, owner, clock), + device_t(mconfig, PCI_BUS, "PCI Bus", tag, owner, clock, "pci_bus_legacy", __FILE__), m_father(NULL) { for (int i = 0; i < ARRAY_LENGTH(m_devtag); i++) { @@ -305,7 +305,7 @@ const device_type PCI_BUS = &device_creator<pci_bus_device>; // pci_bus_device - constructor //------------------------------------------------- pci_bus_device::pci_bus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, PCI_BUS, "PCI Bus", tag, owner, clock), + device_t(mconfig, PCI_BUS, "PCI Bus", tag, owner, clock, "pci_bus", __FILE__), m_father(NULL) { for (int i = 0; i < ARRAY_LENGTH(m_devtag); i++) { @@ -530,7 +530,7 @@ const device_type PCI_CONNECTOR = &device_creator<pci_connector>; pci_connector::pci_connector(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, PCI_CONNECTOR, "PCI device connector abstraction", tag, owner, clock), + device_t(mconfig, PCI_CONNECTOR, "PCI device connector abstraction", tag, owner, clock, "pci_connector", __FILE__), device_slot_interface(mconfig, *this) { } diff --git a/src/emu/machine/pd4990a.c b/src/emu/machine/pd4990a.c index 88cd6bdaf97..56badddd88c 100644 --- a/src/emu/machine/pd4990a.c +++ b/src/emu/machine/pd4990a.c @@ -523,7 +523,7 @@ static DEVICE_RESET( upd4990a ) const device_type UPD4990A_OLD = &device_creator<upd4990a_old_device>; upd4990a_old_device::upd4990a_old_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, UPD4990A_OLD, "NEC uPD4990A", tag, owner, clock) + : device_t(mconfig, UPD4990A_OLD, "NEC uPD4990A", tag, owner, clock, "upd4990a_old", __FILE__) { m_token = global_alloc_clear(upd4990a_state); } diff --git a/src/emu/machine/pic8259.c b/src/emu/machine/pic8259.c index 3f96d96734c..53482ffad82 100644 --- a/src/emu/machine/pic8259.c +++ b/src/emu/machine/pic8259.c @@ -441,7 +441,7 @@ void pic8259_device::device_reset() const device_type PIC8259 = &device_creator<pic8259_device>; pic8259_device::pic8259_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, PIC8259, "Intel PIC8259", tag, owner, clock) + : device_t(mconfig, PIC8259, "Intel PIC8259", tag, owner, clock, "pit8259", __FILE__) , m_out_int_func(*this) , m_sp_en_func(*this) , m_read_slave_ack_func(*this) diff --git a/src/emu/machine/pit8253.c b/src/emu/machine/pit8253.c index bf2e31c1577..e046c586522 100644 --- a/src/emu/machine/pit8253.c +++ b/src/emu/machine/pit8253.c @@ -42,17 +42,17 @@ const device_type PIT8254 = &device_creator<pit8254_device>; pit8253_device::pit8253_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, PIT8253, "Intel PIT8253", tag, owner, clock) + : device_t(mconfig, PIT8253, "Intel PIT8253", tag, owner, clock, "pit8253", __FILE__) { } -pit8253_device::pit8253_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock) +pit8253_device::pit8253_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source) { } pit8254_device::pit8254_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : pit8253_device(mconfig, PIT8254, "Intel PIT8254", tag, owner, clock) + : pit8253_device(mconfig, PIT8254, "Intel PIT8254", tag, owner, clock, "pit8254", __FILE__) { } diff --git a/src/emu/machine/pit8253.h b/src/emu/machine/pit8253.h index e8ef8bc2b9e..f07740f1db6 100644 --- a/src/emu/machine/pit8253.h +++ b/src/emu/machine/pit8253.h @@ -84,7 +84,7 @@ class pit8253_device : public device_t, { public: pit8253_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - pit8253_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + pit8253_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); ~pit8253_device() {} diff --git a/src/emu/machine/pla.c b/src/emu/machine/pla.c index 812b7b3732e..e157cb8f5dd 100644 --- a/src/emu/machine/pla.c +++ b/src/emu/machine/pla.c @@ -28,8 +28,8 @@ const device_type MOS8721 = &device_creator<mos8721_device>; // pla_device - constructor //------------------------------------------------- -pla_device::pla_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, int inputs, int outputs, int terms, UINT32 input_mask) - : device_t(mconfig, type, name, tag, owner, clock), +pla_device::pla_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, int inputs, int outputs, int terms, UINT32 input_mask, const char *shortname, const char *source) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), m_inputs(inputs), m_outputs(outputs), m_terms(terms), @@ -38,12 +38,12 @@ pla_device::pla_device(const machine_config &mconfig, device_type type, const ch } pls100_device::pls100_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : pla_device(mconfig, PLS100, "PLS100", tag, owner, clock, 16, 8, 48, 0xffff) + : pla_device(mconfig, PLS100, "PLS100", tag, owner, clock, 16, 8, 48, 0xffff, "pls100", __FILE__) { } mos8721_device::mos8721_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : pla_device(mconfig, MOS8721, "MOS8721", tag, owner, clock, 27, 18, 379, 0x7ffffff) // TODO actual number of terms is unknown + : pla_device(mconfig, MOS8721, "MOS8721", tag, owner, clock, 27, 18, 379, 0x7ffffff, "mos8721", __FILE__) // TODO actual number of terms is unknown { } diff --git a/src/emu/machine/pla.h b/src/emu/machine/pla.h index 4bd1480f621..1800f602b46 100644 --- a/src/emu/machine/pla.h +++ b/src/emu/machine/pla.h @@ -64,7 +64,7 @@ class pla_device : public device_t { public: // construction/destruction - pla_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, int inputs, int outputs, int terms, UINT32 output_mask); + pla_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, int inputs, int outputs, int terms, UINT32 output_mask, const char *shortname, const char *source); UINT32 read(UINT32 input); diff --git a/src/emu/machine/ram.c b/src/emu/machine/ram.c index c7ac5bf09ee..987f8f7317b 100644 --- a/src/emu/machine/ram.c +++ b/src/emu/machine/ram.c @@ -28,7 +28,7 @@ const device_type RAM = &device_creator<ram_device>; //------------------------------------------------- ram_device::ram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, RAM, "RAM", tag, owner, clock) + : device_t(mconfig, RAM, "RAM", tag, owner, clock, "ram", __FILE__) { m_size = 0; m_pointer = NULL; diff --git a/src/emu/machine/roc10937.c b/src/emu/machine/roc10937.c index eab1779ef03..ecd50bc6ca6 100644 --- a/src/emu/machine/roc10937.c +++ b/src/emu/machine/roc10937.c @@ -124,8 +124,8 @@ static const int roc10937poslut[]= const device_type ROC10937 = &device_creator<roc10937_t>; -rocvfd_t::rocvfd_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, type, name, tag, owner, clock) +rocvfd_t::rocvfd_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : + device_t(mconfig, type, name, tag, owner, clock, shortname, source) { m_port_val=0; m_reversed=0; @@ -229,7 +229,7 @@ void rocvfd_t::shift_data(int data) /////////////////////////////////////////////////////////////////////////// roc10937_t::roc10937_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : rocvfd_t(mconfig, ROC10937, "Rockwell 10937 VFD controller and compatible", tag, owner, clock) + : rocvfd_t(mconfig, ROC10937, "Rockwell 10937 VFD controller and compatible", tag, owner, clock, "roc10937", __FILE__) { m_port_val=0; m_reversed=0; @@ -238,7 +238,7 @@ roc10937_t::roc10937_t(const machine_config &mconfig, const char *tag, device_t const device_type MSC1937 = &device_creator<msc1937_t>; msc1937_t::msc1937_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : rocvfd_t(mconfig, MSC1937, "OKI MSC1937 VFD controller", tag, owner, clock) + : rocvfd_t(mconfig, MSC1937, "OKI MSC1937 VFD controller", tag, owner, clock, "msc1937", __FILE__) { m_port_val=0; m_reversed=0; @@ -298,7 +298,7 @@ void rocvfd_t::write_char(int data) const device_type ROC10957 = &device_creator<roc10957_t>; roc10957_t::roc10957_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : rocvfd_t(mconfig, ROC10957, "Rockwell 10957 VFD controller and compatible", tag, owner, clock) + : rocvfd_t(mconfig, ROC10957, "Rockwell 10957 VFD controller and compatible", tag, owner, clock, "roc10957", __FILE__) { m_port_val=0; m_reversed=0; diff --git a/src/emu/machine/roc10937.h b/src/emu/machine/roc10937.h index 40ad878a871..d32d9cf2dbe 100644 --- a/src/emu/machine/roc10937.h +++ b/src/emu/machine/roc10937.h @@ -51,7 +51,7 @@ class rocvfd_t : public device_t { public: typedef delegate<void (bool state)> line_cb; - rocvfd_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + rocvfd_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); // inline configuration helpers static void static_set_value(device_t &device, int val); diff --git a/src/emu/machine/rp5c01.c b/src/emu/machine/rp5c01.c index 7c528feb3a5..dc9e472693b 100644 --- a/src/emu/machine/rp5c01.c +++ b/src/emu/machine/rp5c01.c @@ -173,7 +173,7 @@ inline void rp5c01_device::check_alarm() //------------------------------------------------- rp5c01_device::rp5c01_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, RP5C01, "RP5C01", tag, owner, clock), + : device_t(mconfig, RP5C01, "RP5C01", tag, owner, clock, "rp5c01", __FILE__), device_rtc_interface(mconfig, *this), device_nvram_interface(mconfig, *this), m_mode(0), diff --git a/src/emu/machine/rp5c15.c b/src/emu/machine/rp5c15.c index a086c8be90d..388f6f47845 100644 --- a/src/emu/machine/rp5c15.c +++ b/src/emu/machine/rp5c15.c @@ -184,7 +184,7 @@ inline void rp5c15_device::check_alarm() //------------------------------------------------- rp5c15_device::rp5c15_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, RP5C15, "RP5C15", tag, owner, clock), + : device_t(mconfig, RP5C15, "RP5C15", tag, owner, clock, "rp5c15", __FILE__), device_rtc_interface(mconfig, *this), m_alarm(1), m_alarm_on(1), diff --git a/src/emu/machine/rp5h01.c b/src/emu/machine/rp5h01.c index b368b005be0..64b56ef6644 100644 --- a/src/emu/machine/rp5h01.c +++ b/src/emu/machine/rp5h01.c @@ -19,7 +19,7 @@ const device_type RP5H01 = &device_creator<rp5h01_device>; rp5h01_device::rp5h01_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, RP5H01, "RP5H01", tag, owner, clock) + : device_t(mconfig, RP5H01, "RP5H01", tag, owner, clock, "rp5h01", __FILE__) { } diff --git a/src/emu/machine/rtc4543.c b/src/emu/machine/rtc4543.c index e77f5d42552..d2f0d4baa39 100644 --- a/src/emu/machine/rtc4543.c +++ b/src/emu/machine/rtc4543.c @@ -28,7 +28,7 @@ const device_type RTC4543 = &device_creator<rtc4543_device>; //------------------------------------------------- rtc4543_device::rtc4543_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, RTC4543, "Epson R4543", tag, owner, clock), + : device_t(mconfig, RTC4543, "Epson R4543", tag, owner, clock, "rtc4543", __FILE__), device_rtc_interface(mconfig, *this) { } diff --git a/src/emu/machine/rtc65271.c b/src/emu/machine/rtc65271.c index 82c8cab0a84..79c8dd73e27 100644 --- a/src/emu/machine/rtc65271.c +++ b/src/emu/machine/rtc65271.c @@ -671,7 +671,7 @@ const device_type RTC65271 = &device_creator<rtc65271_device>; //------------------------------------------------- rtc65271_device::rtc65271_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, RTC65271, "RTC65271", tag, owner, clock), + : device_t(mconfig, RTC65271, "RTC65271", tag, owner, clock, "rtc65271", __FILE__), device_nvram_interface(mconfig, *this) { } diff --git a/src/emu/machine/rtc9701.c b/src/emu/machine/rtc9701.c index 20c6dcc6a95..f98665eaa74 100644 --- a/src/emu/machine/rtc9701.c +++ b/src/emu/machine/rtc9701.c @@ -31,7 +31,7 @@ const device_type rtc9701 = &device_creator<rtc9701_device>; //------------------------------------------------- rtc9701_device::rtc9701_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, rtc9701, "rtc9701", tag, owner, clock), + : device_t(mconfig, rtc9701, "rtc9701", tag, owner, clock, "rtc9701", __FILE__), device_nvram_interface(mconfig, *this), m_latch(0), m_reset_line(CLEAR_LINE), diff --git a/src/emu/machine/s3520cf.c b/src/emu/machine/s3520cf.c index 0e844cd41a5..98e1ec524d3 100644 --- a/src/emu/machine/s3520cf.c +++ b/src/emu/machine/s3520cf.c @@ -34,7 +34,7 @@ const device_type S3520CF = &device_creator<s3520cf_device>; //------------------------------------------------- s3520cf_device::s3520cf_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, S3520CF, "s3520cf", tag, owner, clock) + : device_t(mconfig, S3520CF, "s3520cf", tag, owner, clock, "s3520cf", __FILE__) { } diff --git a/src/emu/machine/s3c2400.c b/src/emu/machine/s3c2400.c index a9db12f0670..fd3952b2dfb 100644 --- a/src/emu/machine/s3c2400.c +++ b/src/emu/machine/s3c2400.c @@ -69,7 +69,7 @@ DEVICE_START( s3c2400 ) const device_type S3C2400 = &device_creator<s3c2400_device>; s3c2400_device::s3c2400_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, S3C2400, "Samsung S3C2400", tag, owner, clock) + : device_t(mconfig, S3C2400, "Samsung S3C2400", tag, owner, clock, "s3c2400", __FILE__) { m_token = global_alloc_clear(s3c24xx_t); } diff --git a/src/emu/machine/s3c2410.c b/src/emu/machine/s3c2410.c index 4b4a83fa38f..90a08028c7f 100644 --- a/src/emu/machine/s3c2410.c +++ b/src/emu/machine/s3c2410.c @@ -72,7 +72,7 @@ DEVICE_START( s3c2410 ) const device_type S3C2410 = &device_creator<s3c2410_device>; s3c2410_device::s3c2410_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, S3C2410, "Samsung S3C2410", tag, owner, clock) + : device_t(mconfig, S3C2410, "Samsung S3C2410", tag, owner, clock, "s3c2410", __FILE__) { m_token = global_alloc_clear(s3c24xx_t); } diff --git a/src/emu/machine/s3c2440.c b/src/emu/machine/s3c2440.c index e5170cfc57a..75c64b16cd3 100644 --- a/src/emu/machine/s3c2440.c +++ b/src/emu/machine/s3c2440.c @@ -74,7 +74,7 @@ DEVICE_START( s3c2440 ) const device_type S3C2440 = &device_creator<s3c2440_device>; s3c2440_device::s3c2440_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, S3C2440, "Samsung S3C2440", tag, owner, clock) + : device_t(mconfig, S3C2440, "Samsung S3C2440", tag, owner, clock, "s3c2440", __FILE__) { m_token = global_alloc_clear(s3c24xx_t); } diff --git a/src/emu/machine/scsibus.c b/src/emu/machine/scsibus.c index 6ea20167a54..7ca98a1e94c 100644 --- a/src/emu/machine/scsibus.c +++ b/src/emu/machine/scsibus.c @@ -32,7 +32,7 @@ void scsibus_device::scsi_update() } scsibus_device::scsibus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SCSIBUS, "SCSI bus", tag, owner, clock) + : device_t(mconfig, SCSIBUS, "SCSI bus", tag, owner, clock, "scsibus", __FILE__) { } diff --git a/src/emu/machine/secflash.c b/src/emu/machine/secflash.c index 0e6876760fa..6456cbd4b0e 100644 --- a/src/emu/machine/secflash.c +++ b/src/emu/machine/secflash.c @@ -4,8 +4,8 @@ device_secure_serial_flash::device_secure_serial_flash(const machine_config &mconfig, device_type type, const char *name, const char *tag, - device_t *owner, UINT32 clock) : - device_t(mconfig, type, name, tag, owner, clock), + device_t *owner, UINT32 clock, const char *shortname, const char *source) : + device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_nvram_interface(mconfig, *this) { } diff --git a/src/emu/machine/secflash.h b/src/emu/machine/secflash.h index 4a2e441d65e..7c70c0a53a3 100644 --- a/src/emu/machine/secflash.h +++ b/src/emu/machine/secflash.h @@ -27,7 +27,7 @@ protected: virtual void sda_0() = 0; virtual void sda_1() = 0; - device_secure_serial_flash(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + device_secure_serial_flash(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); virtual void device_start(); virtual void device_reset(); }; diff --git a/src/emu/machine/seibu_cop.c b/src/emu/machine/seibu_cop.c index 7418ea81ee7..35a4490fd16 100644 --- a/src/emu/machine/seibu_cop.c +++ b/src/emu/machine/seibu_cop.c @@ -67,7 +67,7 @@ inline void seibu_cop_device::write_word(offs_t address, UINT16 data) //------------------------------------------------- seibu_cop_device::seibu_cop_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SEIBU_COP, "seibu_cop", tag, owner, clock), + : device_t(mconfig, SEIBU_COP, "seibu_cop", tag, owner, clock, "seibu_cop", __FILE__), device_memory_interface(mconfig, *this), m_space_config("io", ENDIANNESS_LITTLE, 16, 16, 0, NULL, *ADDRESS_MAP_NAME(seibu_cop_io)) { diff --git a/src/emu/machine/serflash.c b/src/emu/machine/serflash.c index 5653e58f4f0..836195dd4a7 100644 --- a/src/emu/machine/serflash.c +++ b/src/emu/machine/serflash.c @@ -20,7 +20,7 @@ const device_type SERFLASH = &device_creator<serflash_device>; //------------------------------------------------- serflash_device::serflash_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SERFLASH, "SERFLASH", tag, owner, clock), + : device_t(mconfig, SERFLASH, "SERFLASH", tag, owner, clock, "serflash", __FILE__), device_nvram_interface(mconfig, *this), m_length(0) { diff --git a/src/emu/machine/smc91c9x.c b/src/emu/machine/smc91c9x.c index 70866ddcba9..bfff8d3ef8f 100644 --- a/src/emu/machine/smc91c9x.c +++ b/src/emu/machine/smc91c9x.c @@ -583,8 +583,8 @@ static DEVICE_RESET( smc91c9x ) } -smc91c9x_device::smc91c9x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock) +smc91c9x_device::smc91c9x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source) { m_token = global_alloc_clear(smc91c9x_state); } @@ -621,7 +621,7 @@ void smc91c9x_device::device_reset() const device_type SMC91C94 = &device_creator<smc91c94_device>; smc91c94_device::smc91c94_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : smc91c9x_device(mconfig, SMC91C94, "SMC91C94", tag, owner, clock) + : smc91c9x_device(mconfig, SMC91C94, "SMC91C94", tag, owner, clock, "smc91c94", __FILE__) { } @@ -629,6 +629,6 @@ smc91c94_device::smc91c94_device(const machine_config &mconfig, const char *tag, const device_type SMC91C96 = &device_creator<smc91c96_device>; smc91c96_device::smc91c96_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : smc91c9x_device(mconfig, SMC91C96, "SMC91C96", tag, owner, clock) + : smc91c9x_device(mconfig, SMC91C96, "SMC91C96", tag, owner, clock, "smc91c96", __FILE__) { } diff --git a/src/emu/machine/smc91c9x.h b/src/emu/machine/smc91c9x.h index 9a45f0d47e5..c9fcaea2ab1 100644 --- a/src/emu/machine/smc91c9x.h +++ b/src/emu/machine/smc91c9x.h @@ -52,7 +52,7 @@ DECLARE_WRITE16_DEVICE_HANDLER( smc91c9x_w ); class smc91c9x_device : public device_t { public: - smc91c9x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + smc91c9x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); ~smc91c9x_device() { global_free(m_token); } // access to legacy token diff --git a/src/emu/machine/spchrom.c b/src/emu/machine/spchrom.c index 37678a9296d..22883a2ed2e 100644 --- a/src/emu/machine/spchrom.c +++ b/src/emu/machine/spchrom.c @@ -24,7 +24,7 @@ const device_type SPEECHROM = &device_creator<speechrom_device>; speechrom_device::speechrom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SPEECHROM, "SPEECHROM", tag, owner, clock), + : device_t(mconfig, SPEECHROM, "SPEECHROM", tag, owner, clock, "speechrom", __FILE__), m_speechROMaddr(0), m_load_pointer(0), m_ROM_bits_count(0) diff --git a/src/emu/machine/tc009xlvc.c b/src/emu/machine/tc009xlvc.c index e66ecbdc18f..c81cedf4f68 100644 --- a/src/emu/machine/tc009xlvc.c +++ b/src/emu/machine/tc009xlvc.c @@ -163,7 +163,7 @@ static ADDRESS_MAP_START( tc0091lvc_map8, AS_0, 8, tc0091lvc_device ) ADDRESS_MAP_END tc0091lvc_device::tc0091lvc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TC0091LVC, "TC0091LVC", tag, owner, clock), + : device_t(mconfig, TC0091LVC, "TC0091LVC", tag, owner, clock, "tc0091lvc", __FILE__), device_memory_interface(mconfig, *this), m_space_config("tc0091lvc", ENDIANNESS_LITTLE, 8,20, 0, NULL, *ADDRESS_MAP_NAME(tc0091lvc_map8)) { diff --git a/src/emu/machine/timekpr.c b/src/emu/machine/timekpr.c index dc7008fda74..1ba33fd46d8 100644 --- a/src/emu/machine/timekpr.c +++ b/src/emu/machine/timekpr.c @@ -117,14 +117,14 @@ static int counter_from_ram( UINT8 *data, int offset ) // timekeeper_device_config - constructor //------------------------------------------------- -timekeeper_device::timekeeper_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock), +timekeeper_device::timekeeper_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_nvram_interface(mconfig, *this) { } m48t02_device::m48t02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : timekeeper_device(mconfig, M48T02, "M48T02", tag, owner, clock) + : timekeeper_device(mconfig, M48T02, "M48T02", tag, owner, clock, "m48t02", __FILE__) { m_offset_control = 0x7f8; m_offset_seconds = 0x7f9; @@ -140,7 +140,7 @@ m48t02_device::m48t02_device(const machine_config &mconfig, const char *tag, dev } m48t35_device::m48t35_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : timekeeper_device(mconfig, M48T35, "M48T35", tag, owner, clock) + : timekeeper_device(mconfig, M48T35, "M48T35", tag, owner, clock, "m48t35", __FILE__) { m_offset_control = 0x7ff8; m_offset_seconds = 0x7ff9; @@ -156,7 +156,7 @@ m48t35_device::m48t35_device(const machine_config &mconfig, const char *tag, dev } m48t37_device::m48t37_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : timekeeper_device(mconfig, M48T37, "M48T37", tag, owner, clock) + : timekeeper_device(mconfig, M48T37, "M48T37", tag, owner, clock, "m48t37", __FILE__) { m_offset_control = 0x7ff8; m_offset_seconds = 0x7ff9; @@ -172,7 +172,7 @@ m48t37_device::m48t37_device(const machine_config &mconfig, const char *tag, dev } m48t58_device::m48t58_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : timekeeper_device(mconfig, M48T58, "M48T58", tag, owner, clock) + : timekeeper_device(mconfig, M48T58, "M48T58", tag, owner, clock, "m48t58", __FILE__) { m_offset_control = 0x1ff8; m_offset_seconds = 0x1ff9; @@ -188,7 +188,7 @@ m48t58_device::m48t58_device(const machine_config &mconfig, const char *tag, dev } mk48t08_device::mk48t08_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : timekeeper_device(mconfig, MK48T08, "MK48T08", tag, owner, clock) + : timekeeper_device(mconfig, MK48T08, "MK48T08", tag, owner, clock, "m48t08", __FILE__) { m_offset_control = 0x1ff8; m_offset_seconds = 0x1ff9; diff --git a/src/emu/machine/timekpr.h b/src/emu/machine/timekpr.h index c7c31418177..2ba4b76dac4 100644 --- a/src/emu/machine/timekpr.h +++ b/src/emu/machine/timekpr.h @@ -61,7 +61,7 @@ class timekeeper_device : public device_t, { protected: // construction/destruction - timekeeper_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + timekeeper_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); public: DECLARE_WRITE8_MEMBER( write ); diff --git a/src/emu/machine/tms6100.c b/src/emu/machine/tms6100.c index 9fd5bf7c77e..fa32e7d7d7f 100644 --- a/src/emu/machine/tms6100.c +++ b/src/emu/machine/tms6100.c @@ -76,20 +76,20 @@ const device_type TMS6100 = &device_creator<tms6100_device>; -tms6100_device::tms6100_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock) +tms6100_device::tms6100_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source) { } tms6100_device::tms6100_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, TMS6100, "TMS6100", tag, owner, clock) + : device_t(mconfig, TMS6100, "TMS6100", tag, owner, clock, "tms6100", __FILE__) { } const device_type M58819 = &device_creator<m58819_device>; m58819_device::m58819_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : tms6100_device(mconfig, M58819, "M58819", tag, owner, clock) + : tms6100_device(mconfig, M58819, "M58819", tag, owner, clock, "m58819", __FILE__) { } diff --git a/src/emu/machine/tms6100.h b/src/emu/machine/tms6100.h index edfb348c6b1..98754b91335 100644 --- a/src/emu/machine/tms6100.h +++ b/src/emu/machine/tms6100.h @@ -9,7 +9,7 @@ class tms6100_device : public device_t { public: tms6100_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - tms6100_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + tms6100_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); DECLARE_WRITE_LINE_MEMBER( tms6100_m0_w ); DECLARE_WRITE_LINE_MEMBER( tms6100_m1_w ); diff --git a/src/emu/machine/tms9901.c b/src/emu/machine/tms9901.c index b37f1e1ad7d..91537988d77 100644 --- a/src/emu/machine/tms9901.c +++ b/src/emu/machine/tms9901.c @@ -106,7 +106,7 @@ TODO: Tests on a real machine Constructor */ tms9901_device::tms9901_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) -: device_t(mconfig, TMS9901, "TMS9901 Programmable System Interface", tag, owner, clock) +: device_t(mconfig, TMS9901, "TMS9901 Programmable System Interface", tag, owner, clock, "tms9901", __FILE__) { } diff --git a/src/emu/machine/tms9902.c b/src/emu/machine/tms9902.c index 45fe67dfa1e..9abd47c9c50 100644 --- a/src/emu/machine/tms9902.c +++ b/src/emu/machine/tms9902.c @@ -59,7 +59,7 @@ enum Constructor */ tms9902_device::tms9902_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) -: device_t(mconfig, TMS9902, "TMS9902 Asynchronous Communication Controller", tag, owner, clock) +: device_t(mconfig, TMS9902, "TMS9902 Asynchronous Communication Controller", tag, owner, clock, "tms9902", __FILE__) { } diff --git a/src/emu/machine/upd1990a.c b/src/emu/machine/upd1990a.c index a9089a92c9f..056ccc46f33 100644 --- a/src/emu/machine/upd1990a.c +++ b/src/emu/machine/upd1990a.c @@ -46,8 +46,8 @@ const device_type UPD4990A = &device_creator<upd4990a_device>; // upd1990a_device - constructor //------------------------------------------------- -upd1990a_device::upd1990a_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant) - : device_t(mconfig, type, name, tag, owner, clock), +upd1990a_device::upd1990a_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_rtc_interface(mconfig, *this), m_write_data(*this), m_write_tp(*this), @@ -59,7 +59,7 @@ upd1990a_device::upd1990a_device(const machine_config &mconfig, device_type type } upd1990a_device::upd1990a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, UPD1990A, "uPD1990A", tag, owner, clock), + : device_t(mconfig, UPD1990A, "uPD1990A", tag, owner, clock, "upd1990a", __FILE__), device_rtc_interface(mconfig, *this), m_write_data(*this), m_write_tp(*this), @@ -71,7 +71,7 @@ upd1990a_device::upd1990a_device(const machine_config &mconfig, const char *tag, } upd4990a_device::upd4990a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : upd1990a_device(mconfig, UPD4990A, "uPD4990A", tag, owner, clock, TYPE_4990A) { } + : upd1990a_device(mconfig, UPD4990A, "uPD4990A", tag, owner, clock, TYPE_4990A, "upd4990a", __FILE__) { } //------------------------------------------------- diff --git a/src/emu/machine/upd1990a.h b/src/emu/machine/upd1990a.h index 914f7290d77..e37b00bde43 100644 --- a/src/emu/machine/upd1990a.h +++ b/src/emu/machine/upd1990a.h @@ -53,7 +53,7 @@ class upd1990a_device : public device_t, { public: // construction/destruction - upd1990a_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant); + upd1990a_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source); upd1990a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); template<class _data> void set_data_callback(_data data) { m_write_data.set_callback(data); } diff --git a/src/emu/machine/upd4701.c b/src/emu/machine/upd4701.c index 871a2ccc220..4f1654ecbeb 100644 --- a/src/emu/machine/upd4701.c +++ b/src/emu/machine/upd4701.c @@ -17,7 +17,7 @@ const device_type UPD4701 = &device_creator<upd4701_device>; upd4701_device::upd4701_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, UPD4701, "NEC uPD4701 Encoder", tag, owner, clock) + : device_t(mconfig, UPD4701, "NEC uPD4701 Encoder", tag, owner, clock, "upd4701", __FILE__) { } diff --git a/src/emu/machine/upd7002.c b/src/emu/machine/upd7002.c index 84770daa1cf..b586b879a11 100644 --- a/src/emu/machine/upd7002.c +++ b/src/emu/machine/upd7002.c @@ -211,7 +211,7 @@ static DEVICE_RESET( uPD7002 ) const device_type UPD7002 = &device_creator<uPD7002_device>; uPD7002_device::uPD7002_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, UPD7002, "uPD7002", tag, owner, clock) + : device_t(mconfig, UPD7002, "uPD7002", tag, owner, clock, "upd7002", __FILE__) { m_token = global_alloc_clear(uPD7002_t); } diff --git a/src/emu/machine/v3021.c b/src/emu/machine/v3021.c index 57b617e2a70..626e2e0ed5d 100644 --- a/src/emu/machine/v3021.c +++ b/src/emu/machine/v3021.c @@ -32,7 +32,7 @@ const device_type v3021 = &device_creator<v3021_device>; //------------------------------------------------- v3021_device::v3021_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, v3021, "v3021", tag, owner, clock) + : device_t(mconfig, v3021, "v3021", tag, owner, clock, "v3021", __FILE__) { } diff --git a/src/emu/machine/vt83c461.c b/src/emu/machine/vt83c461.c index 4da2166a9f4..05400710197 100644 --- a/src/emu/machine/vt83c461.c +++ b/src/emu/machine/vt83c461.c @@ -17,7 +17,7 @@ const device_type VT83C461 = &device_creator<vt83c461_device>; vt83c461_device::vt83c461_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - ide_controller_device(mconfig, VT83C461, "VIA VT83C461", tag, owner, clock), + ide_controller_device(mconfig, VT83C461, "VIA VT83C461", tag, owner, clock, "vt83c461", __FILE__), m_config_unknown(0), m_config_register_num(0) { diff --git a/src/emu/machine/wd11c00_17.c b/src/emu/machine/wd11c00_17.c index 58e956b311a..ebda87dc15d 100644 --- a/src/emu/machine/wd11c00_17.c +++ b/src/emu/machine/wd11c00_17.c @@ -209,7 +209,7 @@ inline void wd11c00_17_device::select() //------------------------------------------------- wd11c00_17_device::wd11c00_17_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, WD11C00_17, "Western Digital WD11C00-17", tag, owner, clock), + : device_t(mconfig, WD11C00_17, "Western Digital WD11C00-17", tag, owner, clock, "wd11c00_17", __FILE__), m_status(0), m_ra(0), m_irq5(CLEAR_LINE), diff --git a/src/emu/machine/wd17xx.c b/src/emu/machine/wd17xx.c index 19802c3e028..cd4d63827e8 100644 --- a/src/emu/machine/wd17xx.c +++ b/src/emu/machine/wd17xx.c @@ -2099,7 +2099,7 @@ void wd17xx_reset(device_t *device) const device_type FD1771 = &device_creator<fd1771_device>; fd1771_device::fd1771_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, FD1771, "FD1771", tag, owner, clock) + : wd1770_device(mconfig, FD1771, "FD1771", tag, owner, clock, "fd1771", __FILE__) { } @@ -2107,7 +2107,7 @@ fd1771_device::fd1771_device(const machine_config &mconfig, const char *tag, dev const device_type FD1781 = &device_creator<fd1781_device>; fd1781_device::fd1781_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, FD1781, "FD1781", tag, owner, clock) + : wd1770_device(mconfig, FD1781, "FD1781", tag, owner, clock, "fd1781", __FILE__) { } @@ -2115,7 +2115,7 @@ fd1781_device::fd1781_device(const machine_config &mconfig, const char *tag, dev const device_type FD1791 = &device_creator<fd1791_device>; fd1791_device::fd1791_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, FD1791, "FD1791", tag, owner, clock) + : wd1770_device(mconfig, FD1791, "FD1791", tag, owner, clock, "fd1791", __FILE__) { } @@ -2123,7 +2123,7 @@ fd1791_device::fd1791_device(const machine_config &mconfig, const char *tag, dev const device_type FD1792 = &device_creator<fd1792_device>; fd1792_device::fd1792_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, FD1792, "FD1792", tag, owner, clock) + : wd1770_device(mconfig, FD1792, "FD1792", tag, owner, clock, "fd1792", __FILE__) { } @@ -2131,7 +2131,7 @@ fd1792_device::fd1792_device(const machine_config &mconfig, const char *tag, dev const device_type FD1793 = &device_creator<fd1793_device>; fd1793_device::fd1793_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, FD1793, "FD1793", tag, owner, clock) + : wd1770_device(mconfig, FD1793, "FD1793", tag, owner, clock, "fd1793", __FILE__) { } @@ -2139,7 +2139,7 @@ fd1793_device::fd1793_device(const machine_config &mconfig, const char *tag, dev const device_type FD1794 = &device_creator<fd1794_device>; fd1794_device::fd1794_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, FD1794, "FD1794", tag, owner, clock) + : wd1770_device(mconfig, FD1794, "FD1794", tag, owner, clock, "fd1794", __FILE__) { } @@ -2147,7 +2147,7 @@ fd1794_device::fd1794_device(const machine_config &mconfig, const char *tag, dev const device_type FD1795 = &device_creator<fd1795_device>; fd1795_device::fd1795_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, FD1795, "FD1795", tag, owner, clock) + : wd1770_device(mconfig, FD1795, "FD1795", tag, owner, clock, "fd1795", __FILE__) { } @@ -2155,7 +2155,7 @@ fd1795_device::fd1795_device(const machine_config &mconfig, const char *tag, dev const device_type FD1797 = &device_creator<fd1797_device>; fd1797_device::fd1797_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, FD1797, "FD1797", tag, owner, clock) + : wd1770_device(mconfig, FD1797, "FD1797", tag, owner, clock, "fd1797", __FILE__) { } @@ -2163,7 +2163,7 @@ fd1797_device::fd1797_device(const machine_config &mconfig, const char *tag, dev const device_type FD1761 = &device_creator<fd1761_device>; fd1761_device::fd1761_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, FD1761, "FD1761", tag, owner, clock) + : wd1770_device(mconfig, FD1761, "FD1761", tag, owner, clock, "fd1761", __FILE__) { } @@ -2171,7 +2171,7 @@ fd1761_device::fd1761_device(const machine_config &mconfig, const char *tag, dev const device_type FD1762 = &device_creator<fd1762_device>; fd1762_device::fd1762_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, FD1762, "FD1762", tag, owner, clock) + : wd1770_device(mconfig, FD1762, "FD1762", tag, owner, clock, "fd1762", __FILE__) { } @@ -2179,7 +2179,7 @@ fd1762_device::fd1762_device(const machine_config &mconfig, const char *tag, dev const device_type FD1763 = &device_creator<fd1763_device>; fd1763_device::fd1763_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, FD1763, "FD1763", tag, owner, clock) + : wd1770_device(mconfig, FD1763, "FD1763", tag, owner, clock, "fd1763", __FILE__) { } @@ -2187,7 +2187,7 @@ fd1763_device::fd1763_device(const machine_config &mconfig, const char *tag, dev const device_type FD1764 = &device_creator<fd1764_device>; fd1764_device::fd1764_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, FD1764, "FD1764", tag, owner, clock) + : wd1770_device(mconfig, FD1764, "FD1764", tag, owner, clock, "fd1764", __FILE__) { } @@ -2195,7 +2195,7 @@ fd1764_device::fd1764_device(const machine_config &mconfig, const char *tag, dev const device_type FD1765 = &device_creator<fd1765_device>; fd1765_device::fd1765_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, FD1765, "FD1765", tag, owner, clock) + : wd1770_device(mconfig, FD1765, "FD1765", tag, owner, clock, "fd1765", __FILE__) { } @@ -2203,7 +2203,7 @@ fd1765_device::fd1765_device(const machine_config &mconfig, const char *tag, dev const device_type FD1767 = &device_creator<fd1767_device>; fd1767_device::fd1767_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, FD1767, "FD1767", tag, owner, clock) + : wd1770_device(mconfig, FD1767, "FD1767", tag, owner, clock, "fd1767", __FILE__) { } @@ -2211,7 +2211,7 @@ fd1767_device::fd1767_device(const machine_config &mconfig, const char *tag, dev const device_type WD2791 = &device_creator<wd2791_device>; wd2791_device::wd2791_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, WD2791, "WD2791", tag, owner, clock) + : wd1770_device(mconfig, WD2791, "WD2791", tag, owner, clock, "wd2791", __FILE__) { } @@ -2219,7 +2219,7 @@ wd2791_device::wd2791_device(const machine_config &mconfig, const char *tag, dev const device_type WD2793 = &device_creator<wd2793_device>; wd2793_device::wd2793_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, WD2793, "WD2793", tag, owner, clock) + : wd1770_device(mconfig, WD2793, "WD2793", tag, owner, clock, "wd2793", __FILE__) { } @@ -2227,7 +2227,7 @@ wd2793_device::wd2793_device(const machine_config &mconfig, const char *tag, dev const device_type WD2795 = &device_creator<wd2795_device>; wd2795_device::wd2795_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, WD2795, "WD2795", tag, owner, clock) + : wd1770_device(mconfig, WD2795, "WD2795", tag, owner, clock, "wd2795", __FILE__) { } @@ -2235,7 +2235,7 @@ wd2795_device::wd2795_device(const machine_config &mconfig, const char *tag, dev const device_type WD2797 = &device_creator<wd2797_device>; wd2797_device::wd2797_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, WD2797, "WD2797", tag, owner, clock) + : wd1770_device(mconfig, WD2797, "WD2797", tag, owner, clock, "wd2797", __FILE__) { } @@ -2243,12 +2243,12 @@ wd2797_device::wd2797_device(const machine_config &mconfig, const char *tag, dev const device_type WD1770 = &device_creator<wd1770_device>; wd1770_device::wd1770_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, WD1770, "WD1770", tag, owner, clock) + : device_t(mconfig, WD1770, "WD1770", tag, owner, clock, "wd1770", __FILE__) { m_token = global_alloc_clear(wd1770_state); } -wd1770_device::wd1770_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, type, name, tag, owner, clock) +wd1770_device::wd1770_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source) { m_token = global_alloc_clear(wd1770_state); } @@ -2285,7 +2285,7 @@ void wd1770_device::device_reset() const device_type WD1772 = &device_creator<wd1772_device>; wd1772_device::wd1772_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, WD1772, "WD1772", tag, owner, clock) + : wd1770_device(mconfig, WD1772, "WD1772", tag, owner, clock, "wd1772", __FILE__) { } @@ -2302,7 +2302,7 @@ void wd1772_device::device_start() const device_type WD1773 = &device_creator<wd1773_device>; wd1773_device::wd1773_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, WD1773, "WD1773", tag, owner, clock) + : wd1770_device(mconfig, WD1773, "WD1773", tag, owner, clock, "wd1773", __FILE__) { } @@ -2310,7 +2310,7 @@ wd1773_device::wd1773_device(const machine_config &mconfig, const char *tag, dev const device_type MB8866 = &device_creator<mb8866_device>; mb8866_device::mb8866_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, MB8866, "MB8866", tag, owner, clock) + : wd1770_device(mconfig, MB8866, "MB8866", tag, owner, clock, "mb8866", __FILE__) { } @@ -2318,7 +2318,7 @@ mb8866_device::mb8866_device(const machine_config &mconfig, const char *tag, dev const device_type MB8876 = &device_creator<mb8876_device>; mb8876_device::mb8876_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, MB8876, "MB8876", tag, owner, clock) + : wd1770_device(mconfig, MB8876, "MB8876", tag, owner, clock, "mb8876", __FILE__) { } @@ -2326,6 +2326,6 @@ mb8876_device::mb8876_device(const machine_config &mconfig, const char *tag, dev const device_type MB8877 = &device_creator<mb8877_device>; mb8877_device::mb8877_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : wd1770_device(mconfig, MB8877, "MB8877", tag, owner, clock) + : wd1770_device(mconfig, MB8877, "MB8877", tag, owner, clock, "mb8877", __FILE__) { } diff --git a/src/emu/machine/wd17xx.h b/src/emu/machine/wd17xx.h index 28cd57ad5d4..f73a3c51093 100644 --- a/src/emu/machine/wd17xx.h +++ b/src/emu/machine/wd17xx.h @@ -21,7 +21,7 @@ class wd1770_device : public device_t { public: wd1770_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - wd1770_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + wd1770_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); ~wd1770_device() { global_free(m_token); } // access to legacy token diff --git a/src/emu/machine/wd2010.c b/src/emu/machine/wd2010.c index 2cd62904222..cfe52a0ce70 100644 --- a/src/emu/machine/wd2010.c +++ b/src/emu/machine/wd2010.c @@ -140,7 +140,7 @@ void wd2010_device::device_config_complete() //------------------------------------------------- wd2010_device::wd2010_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, WD2010, "Western Digital WD2010", tag, owner, clock), + : device_t(mconfig, WD2010, "Western Digital WD2010", tag, owner, clock, "wd2010", __FILE__), m_status(0), m_error(0) { diff --git a/src/emu/machine/wd33c93.c b/src/emu/machine/wd33c93.c index 5325a13fbc3..bb16ee721eb 100644 --- a/src/emu/machine/wd33c93.c +++ b/src/emu/machine/wd33c93.c @@ -740,7 +740,7 @@ READ8_MEMBER(wd33c93_device::read) } wd33c93_device::wd33c93_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, WD33C93, "33C93 SCSI", tag, owner, clock) + : device_t(mconfig, WD33C93, "33C93 SCSI", tag, owner, clock, "wd33c93", __FILE__) { } diff --git a/src/emu/machine/wd_fdc.c b/src/emu/machine/wd_fdc.c index 9231d175605..efe07aa0ba4 100644 --- a/src/emu/machine/wd_fdc.c +++ b/src/emu/machine/wd_fdc.c @@ -58,8 +58,8 @@ const device_type WD1770x = &device_creator<wd1770_t>; const device_type WD1772x = &device_creator<wd1772_t>; const device_type WD1773x = &device_creator<wd1773_t>; -wd_fdc_t::wd_fdc_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, type, name, tag, owner, clock) +wd_fdc_t::wd_fdc_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : + device_t(mconfig, type, name, tag, owner, clock, shortname, source) { } @@ -1928,8 +1928,8 @@ int wd_fdc_t::settle_time() const return 60000; } -wd_fdc_analog_t::wd_fdc_analog_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : - wd_fdc_t(mconfig, type, name, tag, owner, clock) +wd_fdc_analog_t::wd_fdc_analog_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : + wd_fdc_t(mconfig, type, name, tag, owner, clock, shortname, source) { clock_ratio = 1; } @@ -1975,8 +1975,8 @@ bool wd_fdc_analog_t::pll_write_next_bit(bool bit, attotime &tm, floppy_image_de return cur_pll.write_next_bit(bit, tm, floppy, limit); } -wd_fdc_digital_t::wd_fdc_digital_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : - wd_fdc_t(mconfig, type, name, tag, owner, clock) +wd_fdc_digital_t::wd_fdc_digital_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : + wd_fdc_t(mconfig, type, name, tag, owner, clock, shortname, source) { clock_ratio = 4; } @@ -2179,7 +2179,7 @@ void wd_fdc_digital_t::digital_pll_t::commit(floppy_image_device *floppy, attoti write_position = 0; } -fd1771_t::fd1771_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1771x, "FD1771", tag, owner, clock) +fd1771_t::fd1771_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1771x, "FD1771", tag, owner, clock, "fd1771", __FILE__) { const static int fd1771_step_times[4] = { 12000, 12000, 20000, 40000 }; @@ -2203,7 +2203,7 @@ int fd1771_t::calc_sector_size(UINT8 size, UINT8 command) const return size ? size << 4 : 4096; } -fd1781_t::fd1781_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1781x, "FD1781", tag, owner, clock) +fd1781_t::fd1781_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1781x, "FD1781", tag, owner, clock, "fd1781", __FILE__) { const static int fd1781_step_times[4] = { 6000, 12000, 20000, 40000 }; @@ -2230,7 +2230,7 @@ int fd1781_t::calc_sector_size(UINT8 size, UINT8 command) const const int wd_fdc_t::fd179x_step_times[4] = { 6000, 12000, 20000, 30000 }; const int wd_fdc_t::fd176x_step_times[4] = { 12000, 24000, 40000, 60000 }; -fd1791_t::fd1791_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1791x, "FD1791", tag, owner, clock) +fd1791_t::fd1791_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1791x, "FD1791", tag, owner, clock, "fd1791", __FILE__) { step_times = fd179x_step_times; delay_register_commit = 4; @@ -2244,7 +2244,7 @@ fd1791_t::fd1791_t(const machine_config &mconfig, const char *tag, device_t *own ready_hooked = true; } -fd1792_t::fd1792_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1792x, "FD1792", tag, owner, clock) +fd1792_t::fd1792_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1792x, "FD1792", tag, owner, clock, "fd1792", __FILE__) { step_times = fd179x_step_times; delay_register_commit = 4; @@ -2258,7 +2258,7 @@ fd1792_t::fd1792_t(const machine_config &mconfig, const char *tag, device_t *own ready_hooked = true; } -fd1793_t::fd1793_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1793x, "FD1793", tag, owner, clock) +fd1793_t::fd1793_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1793x, "FD1793", tag, owner, clock, "fd1793", __FILE__) { step_times = fd179x_step_times; delay_register_commit = 4; @@ -2272,7 +2272,7 @@ fd1793_t::fd1793_t(const machine_config &mconfig, const char *tag, device_t *own ready_hooked = true; } -fd1794_t::fd1794_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1794x, "FD1794", tag, owner, clock) +fd1794_t::fd1794_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1794x, "FD1794", tag, owner, clock, "fd1794", __FILE__) { step_times = fd179x_step_times; delay_register_commit = 4; @@ -2286,7 +2286,7 @@ fd1794_t::fd1794_t(const machine_config &mconfig, const char *tag, device_t *own ready_hooked = true; } -fd1795_t::fd1795_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1795x, "FD1795", tag, owner, clock) +fd1795_t::fd1795_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1795x, "FD1795", tag, owner, clock, "fd1795", __FILE__) { step_times = fd179x_step_times; delay_register_commit = 4; @@ -2308,7 +2308,7 @@ int fd1795_t::calc_sector_size(UINT8 size, UINT8 command) const return 128 << ((size + 1) & 3); } -fd1797_t::fd1797_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1797x, "FD1797", tag, owner, clock) +fd1797_t::fd1797_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1797x, "FD1797", tag, owner, clock, "fd1797", __FILE__) { step_times = fd179x_step_times; delay_register_commit = 4; @@ -2330,7 +2330,7 @@ int fd1797_t::calc_sector_size(UINT8 size, UINT8 command) const return 128 << ((size + 1) & 3); } -mb8866_t::mb8866_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, MB8866x, "MB8866", tag, owner, clock) +mb8866_t::mb8866_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, MB8866x, "MB8866", tag, owner, clock, "mb8866", __FILE__) { step_times = fd179x_step_times; delay_register_commit = 4; @@ -2344,7 +2344,7 @@ mb8866_t::mb8866_t(const machine_config &mconfig, const char *tag, device_t *own ready_hooked = true; } -mb8876_t::mb8876_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, MB8876x, "MB8876", tag, owner, clock) +mb8876_t::mb8876_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, MB8876x, "MB8876", tag, owner, clock, "mb8876", __FILE__) { step_times = fd179x_step_times; delay_register_commit = 4; @@ -2358,7 +2358,7 @@ mb8876_t::mb8876_t(const machine_config &mconfig, const char *tag, device_t *own ready_hooked = true; } -mb8877_t::mb8877_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, MB8877x, "MB8877", tag, owner, clock) +mb8877_t::mb8877_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, MB8877x, "MB8877", tag, owner, clock, "mb8877", __FILE__) { step_times = fd179x_step_times; delay_register_commit = 4; @@ -2372,7 +2372,7 @@ mb8877_t::mb8877_t(const machine_config &mconfig, const char *tag, device_t *own ready_hooked = true; } -fd1761_t::fd1761_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1761x, "FD1761", tag, owner, clock) +fd1761_t::fd1761_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1761x, "FD1761", tag, owner, clock, "fd1761", __FILE__) { step_times = fd176x_step_times; delay_register_commit = 16; @@ -2386,7 +2386,7 @@ fd1761_t::fd1761_t(const machine_config &mconfig, const char *tag, device_t *own ready_hooked = true; } -fd1763_t::fd1763_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1763x, "FD1763", tag, owner, clock) +fd1763_t::fd1763_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1763x, "FD1763", tag, owner, clock, "fd1763", __FILE__) { step_times = fd176x_step_times; delay_register_commit = 16; @@ -2400,7 +2400,7 @@ fd1763_t::fd1763_t(const machine_config &mconfig, const char *tag, device_t *own ready_hooked = true; } -fd1765_t::fd1765_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1765x, "FD1765", tag, owner, clock) +fd1765_t::fd1765_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1765x, "FD1765", tag, owner, clock, "fd1765", __FILE__) { step_times = fd176x_step_times; delay_register_commit = 16; @@ -2422,7 +2422,7 @@ int fd1765_t::calc_sector_size(UINT8 size, UINT8 command) const return 128 << ((size + 1) & 3); } -fd1767_t::fd1767_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1767x, "FD1767", tag, owner, clock) +fd1767_t::fd1767_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, FD1767x, "FD1767", tag, owner, clock, "fd1767", __FILE__) { step_times = fd179x_step_times; delay_register_commit = 16; @@ -2444,7 +2444,7 @@ int fd1767_t::calc_sector_size(UINT8 size, UINT8 command) const return 128 << ((size + 1) & 3); } -wd2791_t::wd2791_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, WD2791x, "WD2791", tag, owner, clock) +wd2791_t::wd2791_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, WD2791x, "WD2791", tag, owner, clock, "wd2791", __FILE__) { step_times = fd179x_step_times; delay_register_commit = 16; @@ -2458,7 +2458,7 @@ wd2791_t::wd2791_t(const machine_config &mconfig, const char *tag, device_t *own ready_hooked = true; } -wd2793_t::wd2793_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, WD2793x, "WD2793", tag, owner, clock) +wd2793_t::wd2793_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, WD2793x, "WD2793", tag, owner, clock, "wd2793", __FILE__) { step_times = fd179x_step_times; delay_register_commit = 16; @@ -2472,7 +2472,7 @@ wd2793_t::wd2793_t(const machine_config &mconfig, const char *tag, device_t *own ready_hooked = true; } -wd2795_t::wd2795_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, WD2795x, "WD2795", tag, owner, clock) +wd2795_t::wd2795_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, WD2795x, "WD2795", tag, owner, clock, "wd2795", __FILE__) { step_times = fd179x_step_times; delay_register_commit = 16; @@ -2494,7 +2494,7 @@ int wd2795_t::calc_sector_size(UINT8 size, UINT8 command) const return 128 << ((size + 1) & 3); } -wd2797_t::wd2797_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, WD2797x, "WD2797", tag, owner, clock) +wd2797_t::wd2797_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_analog_t(mconfig, WD2797x, "WD2797", tag, owner, clock, "wd2797", __FILE__) { step_times = fd179x_step_times; delay_register_commit = 16; @@ -2516,7 +2516,7 @@ int wd2797_t::calc_sector_size(UINT8 size, UINT8 command) const return 128 << ((size + 1) & 3); } -wd1770_t::wd1770_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_digital_t(mconfig, WD1770x, "WD1770", tag, owner, clock) +wd1770_t::wd1770_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_digital_t(mconfig, WD1770x, "WD1770", tag, owner, clock, "wd1770", __FILE__) { step_times = wd_digital_step_times; delay_register_commit = 32; @@ -2530,7 +2530,7 @@ wd1770_t::wd1770_t(const machine_config &mconfig, const char *tag, device_t *own ready_hooked = false; } -wd1772_t::wd1772_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_digital_t(mconfig, WD1772x, "WD1772", tag, owner, clock) +wd1772_t::wd1772_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_digital_t(mconfig, WD1772x, "WD1772", tag, owner, clock, "wd1772", __FILE__) { const static int wd1772_step_times[4] = { 12000, 24000, 4000, 6000 }; @@ -2551,7 +2551,7 @@ int wd1772_t::settle_time() const return 30000; } -wd1773_t::wd1773_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_digital_t(mconfig, WD1773x, "WD1773", tag, owner, clock) +wd1773_t::wd1773_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : wd_fdc_digital_t(mconfig, WD1773x, "WD1773", tag, owner, clock, "wd1773", __FILE__) { step_times = wd_digital_step_times; delay_register_commit = 32; diff --git a/src/emu/machine/wd_fdc.h b/src/emu/machine/wd_fdc.h index 8b87e7f56b3..90f99941134 100644 --- a/src/emu/machine/wd_fdc.h +++ b/src/emu/machine/wd_fdc.h @@ -112,7 +112,7 @@ class wd_fdc_t : public device_t { public: typedef delegate<void (bool state)> line_cb; - wd_fdc_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + wd_fdc_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); void dden_w(bool dden); void set_floppy(floppy_image_device *floppy); @@ -414,7 +414,7 @@ private: class wd_fdc_analog_t : public wd_fdc_t { public: - wd_fdc_analog_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + wd_fdc_analog_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); protected: virtual void pll_reset(bool fm, attotime when); @@ -432,7 +432,7 @@ private: class wd_fdc_digital_t : public wd_fdc_t { public: - wd_fdc_digital_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + wd_fdc_digital_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); protected: static const int wd_digital_step_times[4]; diff --git a/src/emu/machine/x2212.c b/src/emu/machine/x2212.c index 9629d593a3e..40469ce607c 100644 --- a/src/emu/machine/x2212.c +++ b/src/emu/machine/x2212.c @@ -36,7 +36,7 @@ const device_type X2212 = &device_creator<x2212_device>; //------------------------------------------------- x2212_device::x2212_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, X2212, "X2212", tag, owner, clock), + : device_t(mconfig, X2212, "X2212", tag, owner, clock, "x2212", __FILE__), device_memory_interface(mconfig, *this), device_nvram_interface(mconfig, *this), m_auto_save(false), diff --git a/src/emu/machine/x76f041.c b/src/emu/machine/x76f041.c index 7fc2bd8b23e..1d9a64f0868 100644 --- a/src/emu/machine/x76f041.c +++ b/src/emu/machine/x76f041.c @@ -33,7 +33,7 @@ inline void ATTR_PRINTF(3,4) x76f041_device::verboselog(int n_level, const char const device_type X76F041 = &device_creator<x76f041_device>; x76f041_device::x76f041_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_secure_serial_flash(mconfig, X76F041, "X76F041", tag, owner, clock) + : device_secure_serial_flash(mconfig, X76F041, "X76F041", tag, owner, clock, "x76f041", __FILE__) { } diff --git a/src/emu/machine/x76f100.c b/src/emu/machine/x76f100.c index 245e96237fc..6fdf91ab66f 100644 --- a/src/emu/machine/x76f100.c +++ b/src/emu/machine/x76f100.c @@ -31,7 +31,7 @@ inline void ATTR_PRINTF(3,4) x76f100_device::verboselog(int n_level, const char const device_type X76F100 = &device_creator<x76f100_device>; x76f100_device::x76f100_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_secure_serial_flash(mconfig, X76F100, "X76F100", tag, owner, clock) + : device_secure_serial_flash(mconfig, X76F100, "X76F100", tag, owner, clock, "x76f100", __FILE__) { } diff --git a/src/emu/machine/z80ctc.c b/src/emu/machine/z80ctc.c index be5be3e8f63..57b8d49f953 100644 --- a/src/emu/machine/z80ctc.c +++ b/src/emu/machine/z80ctc.c @@ -80,7 +80,7 @@ const device_type Z80CTC = &device_creator<z80ctc_device>; //------------------------------------------------- z80ctc_device::z80ctc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, Z80CTC, "Zilog Z80 CTC", tag, owner, clock), + : device_t(mconfig, Z80CTC, "Zilog Z80 CTC", tag, owner, clock, "z80ctc", __FILE__), device_z80daisy_interface(mconfig, *this) { } diff --git a/src/emu/machine/z80dart.c b/src/emu/machine/z80dart.c index 1b032422f57..ff3c6acf30c 100644 --- a/src/emu/machine/z80dart.c +++ b/src/emu/machine/z80dart.c @@ -467,7 +467,7 @@ WRITE8_MEMBER( z80dart_device::ba_cd_w ) //------------------------------------------------- z80dart_channel::z80dart_channel(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, Z80DART_CHANNEL, "Z80-DART channel", tag, owner, clock), + : device_t(mconfig, Z80DART_CHANNEL, "Z80-DART channel", tag, owner, clock, "z80dart_channel", __FILE__), device_serial_interface(mconfig, *this), m_rx_error(0), m_rx_fifo(-1), diff --git a/src/emu/machine/z80dma.c b/src/emu/machine/z80dma.c index 34ba154a0e7..ccfa60ac4ab 100644 --- a/src/emu/machine/z80dma.c +++ b/src/emu/machine/z80dma.c @@ -144,7 +144,7 @@ const device_type Z80DMA = &device_creator<z80dma_device>; //------------------------------------------------- z80dma_device::z80dma_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, Z80DMA, "Z8410", tag, owner, clock), + : device_t(mconfig, Z80DMA, "Z8410", tag, owner, clock, "z80dma", __FILE__), device_z80daisy_interface(mconfig, *this) { } diff --git a/src/emu/machine/z80pio.c b/src/emu/machine/z80pio.c index a0041c816d9..a53e0a48941 100644 --- a/src/emu/machine/z80pio.c +++ b/src/emu/machine/z80pio.c @@ -56,7 +56,7 @@ const device_type Z80PIO = &device_creator<z80pio_device>; //------------------------------------------------- z80pio_device::z80pio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, Z80PIO, "Z8420", tag, owner, clock), + : device_t(mconfig, Z80PIO, "Z8420", tag, owner, clock, "z80pio", __FILE__), device_z80daisy_interface(mconfig, *this) { } diff --git a/src/emu/machine/z80sio.c b/src/emu/machine/z80sio.c index f254963e16d..313e69c3fa1 100644 --- a/src/emu/machine/z80sio.c +++ b/src/emu/machine/z80sio.c @@ -298,7 +298,7 @@ inline attotime z80sio_device::sio_channel::compute_time_per_character() //------------------------------------------------- z80sio_device::z80sio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, Z80SIO, "Zilog Z80 SIO", tag, owner, clock), + : device_t(mconfig, Z80SIO, "Zilog Z80 SIO", tag, owner, clock, "z80sio", __FILE__), device_z80daisy_interface(mconfig, *this) { for (int i = 0; i < 8; i++) diff --git a/src/emu/machine/z80sti.c b/src/emu/machine/z80sti.c index e58a16811dd..1d8373faa67 100644 --- a/src/emu/machine/z80sti.c +++ b/src/emu/machine/z80sti.c @@ -84,7 +84,7 @@ const int z80sti_device::PRESCALER[] = { 0, 4, 10, 16, 50, 64, 100, 200 }; //------------------------------------------------- z80sti_device::z80sti_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, Z80STI, "Mostek MK3801", tag, owner, clock), + : device_t(mconfig, Z80STI, "Mostek MK3801", tag, owner, clock, "z80sti", __FILE__), device_serial_interface(mconfig, *this), device_z80daisy_interface(mconfig, *this), m_gpip(0), diff --git a/src/emu/machine/z8536.c b/src/emu/machine/z8536.c index d58070164e3..7540d68b9a4 100644 --- a/src/emu/machine/z8536.c +++ b/src/emu/machine/z8536.c @@ -1016,7 +1016,7 @@ inline void z8536_device::external_port_w(int port, int bit, int state) //------------------------------------------------- z8536_device::z8536_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, Z8536, "Zilog Z8536", tag, owner, clock), + : device_t(mconfig, Z8536, "Zilog Z8536", tag, owner, clock, "z8536", __FILE__), device_z80daisy_interface(mconfig, *this), m_int(CLEAR_LINE) { |