diff options
Diffstat (limited to 'src/emu/machine')
-rw-r--r-- | src/emu/machine/6525tpi.c | 23 | ||||
-rw-r--r-- | src/emu/machine/68681.c | 25 | ||||
-rw-r--r-- | src/emu/machine/74148.c | 15 | ||||
-rw-r--r-- | src/emu/machine/74153.c | 15 | ||||
-rw-r--r-- | src/emu/machine/adc083x.c | 45 | ||||
-rw-r--r-- | src/emu/machine/adc1038.c | 18 | ||||
-rw-r--r-- | src/emu/machine/adc1213x.c | 36 | ||||
-rw-r--r-- | src/emu/machine/idectrl.c | 25 | ||||
-rw-r--r-- | src/emu/machine/k053252.c | 21 | ||||
-rw-r--r-- | src/emu/machine/latch8.c | 21 | ||||
-rw-r--r-- | src/emu/machine/mb14241.c | 14 | ||||
-rw-r--r-- | src/emu/machine/mb87078.c | 14 | ||||
-rw-r--r-- | src/emu/machine/pd4990a.c | 18 | ||||
-rw-r--r-- | src/emu/machine/pic8259.c | 21 | ||||
-rw-r--r-- | src/emu/machine/pit8253.c | 34 | ||||
-rw-r--r-- | src/emu/machine/rp5h01.c | 18 | ||||
-rw-r--r-- | src/emu/machine/smc91c9x.c | 44 | ||||
-rw-r--r-- | src/emu/machine/tms6100.c | 28 | ||||
-rw-r--r-- | src/emu/machine/upd4701.c | 18 | ||||
-rw-r--r-- | src/emu/machine/wd17xx.c | 229 |
20 files changed, 0 insertions, 682 deletions
diff --git a/src/emu/machine/6525tpi.c b/src/emu/machine/6525tpi.c index 73595a6eb96..000fee687fb 100644 --- a/src/emu/machine/6525tpi.c +++ b/src/emu/machine/6525tpi.c @@ -197,29 +197,6 @@ static DEVICE_RESET( tpi6525 ) tpi6525->in_c = 0xff; } - -DEVICE_GET_INFO( tpi6525 ) -{ - switch (state) - { - /* --- the following bits of info are returned as 64-bit signed integers --- */ - case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(tpi6525_state); break; - - /* --- the following bits of info are returned as pointers to data or functions --- */ - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME( tpi6525 ); break; - case DEVINFO_FCT_STOP: /* Nothing */ break; - case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME( tpi6525 ); break; - - /* --- the following bits of info are returned as NULL-terminated strings --- */ - case DEVINFO_STR_NAME: strcpy(info->s, "6525 TPI"); break; - case DEVINFO_STR_FAMILY: strcpy(info->s, "6525 TPI"); break; - case DEVINFO_STR_VERSION: strcpy(info->s, "1.0"); break; - case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break; - case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright MESS Team"); break; - } -} - - /*************************************************************************** IMPLEMENTATION ***************************************************************************/ diff --git a/src/emu/machine/68681.c b/src/emu/machine/68681.c index a4ff2f1dfe8..395d244b073 100644 --- a/src/emu/machine/68681.c +++ b/src/emu/machine/68681.c @@ -903,31 +903,6 @@ static DEVICE_RESET(duart68681) duart68681->channel[1].tx_timer->adjust(attotime::never, 1); } -/*------------------------------------------------- - device get info callback --------------------------------------------------*/ - -DEVICE_GET_INFO(duart68681) -{ - switch (state) - { - /* --- the following bits of info are returned as 64-bit signed integers --- */ - case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(duart68681_state); break; - - /* --- the following bits of info are returned as pointers to data or functions --- */ - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(duart68681); break; - case DEVINFO_FCT_STOP: /* nothing */ break; - case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(duart68681);break; - - /* --- the following bits of info are returned as NULL-terminated strings --- */ - case DEVINFO_STR_NAME: strcpy(info->s, "DUART 68681"); break; - case DEVINFO_STR_FAMILY: strcpy(info->s, "DUART"); break; - case DEVINFO_STR_VERSION: strcpy(info->s, "1.0"); break; - case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break; - case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break; - } -} - const device_type DUART68681 = &device_creator<duart68681_device>; duart68681_device::duart68681_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) diff --git a/src/emu/machine/74148.c b/src/emu/machine/74148.c index 5426221d562..2bb59b429de 100644 --- a/src/emu/machine/74148.c +++ b/src/emu/machine/74148.c @@ -214,21 +214,6 @@ static DEVICE_RESET( ttl74148 ) state->last_enable_output = -1; } - -DEVICE_GET_INFO(ttl74148) -{ - switch (state) - { - case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(ttl74148_state); break; - - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(ttl74148); break; - - case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(ttl74148); break; - - case DEVINFO_STR_NAME: strcpy(info->s, "74148"); break; - } -} - const device_type TTL74148 = &device_creator<ttl74148_device>; ttl74148_device::ttl74148_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) diff --git a/src/emu/machine/74153.c b/src/emu/machine/74153.c index 7ec0a7cea53..199b0203d3b 100644 --- a/src/emu/machine/74153.c +++ b/src/emu/machine/74153.c @@ -176,21 +176,6 @@ static DEVICE_RESET( ttl74153 ) state->last_output[1] = -1; } -DEVICE_GET_INFO(ttl74153) -{ - switch (state) - { - - case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(ttl74153_state); break; - - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(ttl74153); break; - - case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(ttl74153); break; - - case DEVINFO_STR_NAME: strcpy(info->s, "74153"); break; - } -} - const device_type TTL74153 = &device_creator<ttl74153_device>; ttl74153_device::ttl74153_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) diff --git a/src/emu/machine/adc083x.c b/src/emu/machine/adc083x.c index b5bb54726ce..b813c6decba 100644 --- a/src/emu/machine/adc083x.c +++ b/src/emu/machine/adc083x.c @@ -505,51 +505,6 @@ static DEVICE_RESET( adc0831 ) adc083x->state = STATE_IDLE; } -/*------------------------------------------------- - device definition --------------------------------------------------*/ - -DEVICE_GET_INFO(adc0831) -{ - switch (state) - { - case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(adc0831_state); break; - - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(adc0831); break; - - case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(adc0831); break; - - case DEVINFO_STR_NAME: strcpy(info->s, "A/D Converters 0831"); break; - } -} - -DEVICE_GET_INFO(adc0832) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "A/D Converters 0832"); break; - default: DEVICE_GET_INFO_CALL(adc0831); break; - } -} - -DEVICE_GET_INFO(adc0834) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "A/D Converters 0834"); break; - default: DEVICE_GET_INFO_CALL(adc0831); break; - } -} - -DEVICE_GET_INFO(adc0838) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "A/D Converters 0838"); break; - default: DEVICE_GET_INFO_CALL(adc0831); break; - } -} - const device_type ADC0831 = &device_creator<adc0831_device>; adc0831_device::adc0831_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) diff --git a/src/emu/machine/adc1038.c b/src/emu/machine/adc1038.c index 0628486bb54..d3b1a59440c 100644 --- a/src/emu/machine/adc1038.c +++ b/src/emu/machine/adc1038.c @@ -161,24 +161,6 @@ static DEVICE_RESET( adc1038 ) adc1038->sars = 1; } -/*------------------------------------------------- - device definition --------------------------------------------------*/ - -DEVICE_GET_INFO(adc1038) -{ - switch (state) - { - case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(adc1038_state); break; - - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(adc1038); break; - - case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(adc1038); break; - - case DEVINFO_STR_NAME: strcpy(info->s, "A/D Converters 1038"); break; - } -} - const device_type ADC1038 = &device_creator<adc1038_device>; adc1038_device::adc1038_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) diff --git a/src/emu/machine/adc1213x.c b/src/emu/machine/adc1213x.c index cf833f471dc..d123dced2a2 100644 --- a/src/emu/machine/adc1213x.c +++ b/src/emu/machine/adc1213x.c @@ -354,42 +354,6 @@ static DEVICE_RESET( adc12138 ) adc1213x->acq_time = ADC1213X_ACQUISITION_TIME_10_CCLK; } -/*------------------------------------------------- - device definition --------------------------------------------------*/ - -DEVICE_GET_INFO(adc12138) -{ - switch (state) - { - case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(adc12138_state); break; - - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(adc12138); break; - - case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(adc12138); break; - - case DEVINFO_STR_NAME: strcpy(info->s, "A/D Converter 12138"); break; - } -} - -DEVICE_GET_INFO(adc12130) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "A/D Converter 12130"); break; - default: DEVICE_GET_INFO_CALL(adc12138); break; - } -} - -DEVICE_GET_INFO(adc12132) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "A/D Converter 12132"); break; - default: DEVICE_GET_INFO_CALL(adc12138); break; - } -} - const device_type ADC12130 = &device_creator<adc12130_device>; adc12130_device::adc12130_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) diff --git a/src/emu/machine/idectrl.c b/src/emu/machine/idectrl.c index 284b95df744..b4a420f9a26 100644 --- a/src/emu/machine/idectrl.c +++ b/src/emu/machine/idectrl.c @@ -1943,31 +1943,6 @@ SLOT_INTERFACE_START(ide_devices) SLOT_INTERFACE("hdd", IDE_HARDDISK) SLOT_INTERFACE_END -/*------------------------------------------------- - device get info callback --------------------------------------------------*/ - -DEVICE_GET_INFO( ide_controller ) -{ - switch (state) - { - /* --- the following bits of info are returned as 64-bit signed integers --- */ - case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(ide_state); break; - - /* --- the following bits of info are returned as pointers to data or functions --- */ - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(ide_controller); break; - case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(ide_controller);break; - - /* --- the following bits of info are returned as NULL-terminated strings --- */ - case DEVINFO_STR_NAME: strcpy(info->s, "IDE Controller"); break; - case DEVINFO_STR_FAMILY: strcpy(info->s, "Disk Controller"); break; - case DEVINFO_STR_VERSION: strcpy(info->s, "1.0"); break; - case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break; - case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break; - } -} - - 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) diff --git a/src/emu/machine/k053252.c b/src/emu/machine/k053252.c index 5896f133244..8b019a24517 100644 --- a/src/emu/machine/k053252.c +++ b/src/emu/machine/k053252.c @@ -231,27 +231,6 @@ static DEVICE_RESET( k053252 ) } -DEVICE_GET_INFO( k053252 ) -{ - switch (state) - { - /* --- the following bits of info are returned as 64-bit signed integers --- */ - case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(k053252_state); break; - - /* --- the following bits of info are returned as pointers to data or functions --- */ - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(k053252); break; - case DEVINFO_FCT_STOP: /* Nothing */ break; - case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(k053252); break; - - /* --- the following bits of info are returned as NULL-terminated strings --- */ - case DEVINFO_STR_NAME: strcpy(info->s, "Konami 053252"); break; - case DEVINFO_STR_FAMILY: strcpy(info->s, "Konami Video IC"); break; - case DEVINFO_STR_VERSION: strcpy(info->s, "1.0"); break; - case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break; - case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright MAME Team"); break; - } -} - const device_type K053252 = &device_creator<k053252_device>; k053252_device::k053252_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) diff --git a/src/emu/machine/latch8.c b/src/emu/machine/latch8.c index cc260d14199..d84fd06f8f4 100644 --- a/src/emu/machine/latch8.c +++ b/src/emu/machine/latch8.c @@ -232,27 +232,6 @@ static DEVICE_RESET( latch8 ) } -DEVICE_GET_INFO( latch8 ) -{ - switch (state) - { - /* --- the following bits of info are returned as 64-bit signed integers --- */ - case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(latch8_t); break; - - /* --- the following bits of info are returned as pointers to data or functions --- */ - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(latch8);break; - case DEVINFO_FCT_STOP: /* Nothing */ break; - case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(latch8);break; - - /* --- the following bits of info are returned as NULL-terminated strings --- */ - case DEVINFO_STR_NAME: strcpy(info->s, "8 bit latch"); break; - case DEVINFO_STR_FAMILY: strcpy(info->s, "Latches"); break; - case DEVINFO_STR_VERSION: strcpy(info->s, "1.0"); break; - case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break; - case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break; - } -} - const device_type LATCH8 = &device_creator<latch8_device>; latch8_device::latch8_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) diff --git a/src/emu/machine/mb14241.c b/src/emu/machine/mb14241.c index 049e12cb9ed..cb14b53008d 100644 --- a/src/emu/machine/mb14241.c +++ b/src/emu/machine/mb14241.c @@ -68,20 +68,6 @@ static DEVICE_RESET( mb14241 ) mb14241->shift_count = 0; } -DEVICE_GET_INFO(mb14241) -{ - switch (state) - { - case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(mb14241_state); break; - - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(mb14241); break; - - case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(mb14241); break; - - case DEVINFO_STR_NAME: strcpy(info->s, "MB14241"); break; - } -} - const device_type MB14241 = &device_creator<mb14241_device>; mb14241_device::mb14241_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) diff --git a/src/emu/machine/mb87078.c b/src/emu/machine/mb87078.c index 47fa5437600..de48be6633c 100644 --- a/src/emu/machine/mb87078.c +++ b/src/emu/machine/mb87078.c @@ -266,20 +266,6 @@ static DEVICE_RESET( mb87078 ) mb87078_reset_comp_w(device, 1); } -DEVICE_GET_INFO(mb87078) -{ - switch (state) - { - case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(mb87078_state); break; - - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(mb87078); break; - - case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(mb87078); break; - - case DEVINFO_STR_NAME: strcpy(info->s, "Fujitsu MB87078"); break; - } -} - const device_type MB87078 = &device_creator<mb87078_device>; mb87078_device::mb87078_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) diff --git a/src/emu/machine/pd4990a.c b/src/emu/machine/pd4990a.c index 24d2b61e1da..7c244bb75b6 100644 --- a/src/emu/machine/pd4990a.c +++ b/src/emu/machine/pd4990a.c @@ -521,24 +521,6 @@ static DEVICE_RESET( upd4990a ) upd4990a->command_line = 0; } -/*------------------------------------------------- - device definition --------------------------------------------------*/ - -DEVICE_GET_INFO(upd4990a) -{ - switch (state) - { - case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(upd4990a_state); break; - - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(upd4990a); break; - - case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(upd4990a); break; - - case DEVINFO_STR_NAME: strcpy(info->s, "NEC uPD4990A"); break; - } -} - const device_type UPD4990A = &device_creator<upd4990a_device>; upd4990a_device::upd4990a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) diff --git a/src/emu/machine/pic8259.c b/src/emu/machine/pic8259.c index ff663534405..2f52daf52df 100644 --- a/src/emu/machine/pic8259.c +++ b/src/emu/machine/pic8259.c @@ -448,27 +448,6 @@ static DEVICE_RESET( pic8259 ) { pic8259->master = pic8259->sp_en_func(); } - -DEVICE_GET_INFO( pic8259 ) { - switch ( state ) { - /* --- the following bits of info are returned as 64-bit signed integers --- */ - case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(pic8259_t); break; - - /* --- the following bits of info are returned as pointers to data or functions --- */ - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(pic8259); break; - case DEVINFO_FCT_STOP: /* nothing */ break; - case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(pic8259); break; - - /* --- the following bits of info are returned as NULL-terminated strings --- */ - case DEVINFO_STR_NAME: strcpy(info->s, "Intel PIC8259"); break; - case DEVINFO_STR_FAMILY: strcpy(info->s, "PIC8259"); break; - case DEVINFO_STR_VERSION: strcpy(info->s, "1.00"); break; - case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break; - case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright the MAME and MESS Teams"); break; - } -} - - const device_type PIC8259 = &device_creator<pic8259_device>; pic8259_device::pic8259_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) diff --git a/src/emu/machine/pit8253.c b/src/emu/machine/pit8253.c index 8274f5c5870..25681190933 100644 --- a/src/emu/machine/pit8253.c +++ b/src/emu/machine/pit8253.c @@ -1154,40 +1154,6 @@ static DEVICE_RESET( pit8253 ) { } } - -DEVICE_GET_INFO( pit8253 ) { - switch ( state ) { - /* --- the following bits of info are returned as 64-bit signed integers --- */ - case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(pit8253_t); break; - - /* --- the following bits of info are returned as pointers to data or functions --- */ - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(pit8253); break; - case DEVINFO_FCT_STOP: /* nothing */ break; - case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(pit8253); break; - - /* --- the following bits of info are returned as NULL-terminated strings --- */ - case DEVINFO_STR_NAME: strcpy(info->s, "Intel PIT8253"); break; - case DEVINFO_STR_FAMILY: strcpy(info->s, "PIT8253"); break; - case DEVINFO_STR_VERSION: strcpy(info->s, "1.00"); break; - case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break; - case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright the MAME and MESS Teams"); break; - } -} - - -DEVICE_GET_INFO( pit8254 ) { - switch ( state ) { - /* --- the following bits of info are returned as 64-bit signed integers --- */ - case DEVINFO_STR_NAME: strcpy(info->s, "Intel PIT8254"); break; - - /* --- the following bits of info are returned as pointers to data or functions --- */ - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(pit8254); break; - - default: DEVICE_GET_INFO_CALL(pit8253); break; - } -} - - const device_type PIT8253 = &device_creator<pit8253_device>; pit8253_device::pit8253_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) diff --git a/src/emu/machine/rp5h01.c b/src/emu/machine/rp5h01.c index 69a376431e3..16c51ca0f78 100644 --- a/src/emu/machine/rp5h01.c +++ b/src/emu/machine/rp5h01.c @@ -222,24 +222,6 @@ static DEVICE_RESET( rp5h01 ) rp5h01->old_clock = -1; } -/*------------------------------------------------- - device definition --------------------------------------------------*/ - -DEVICE_GET_INFO(rp5h01) -{ - switch (state) - { - case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(rp5h01_state); break; - - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(rp5h01); break; - - case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(rp5h01); break; - - case DEVINFO_STR_NAME: strcpy(info->s, "RP5H01"); break; - } -} - const device_type RP5H01 = &device_creator<rp5h01_device>; rp5h01_device::rp5h01_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) diff --git a/src/emu/machine/smc91c9x.c b/src/emu/machine/smc91c9x.c index 274fe27dfa0..90f5878c967 100644 --- a/src/emu/machine/smc91c9x.c +++ b/src/emu/machine/smc91c9x.c @@ -584,50 +584,6 @@ static DEVICE_RESET( smc91c9x ) } -/*------------------------------------------------- - device get info callback --------------------------------------------------*/ - -static DEVICE_GET_INFO( smc91c9x ) -{ - switch (state) - { - /* --- the following bits of info are returned as 64-bit signed integers --- */ - case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(smc91c9x_state); break; - - /* --- the following bits of info are returned as pointers to data or functions --- */ - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(smc91c9x); break; - case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(smc91c9x);break; - - /* --- the following bits of info are returned as NULL-terminated strings --- */ - case DEVINFO_STR_NAME: /* provided by subclasses */ break; - case DEVINFO_STR_FAMILY: strcpy(info->s, "SMC91C9X Ethernet Controller");break; - case DEVINFO_STR_VERSION: strcpy(info->s, "1.0"); break; - case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break; - case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break; - } -} - -DEVICE_GET_INFO( smc91c94 ) -{ - switch (state) - { - /* --- the following bits of info are returned as NULL-terminated strings --- */ - case DEVINFO_STR_NAME: strcpy(info->s, "SMC91C94"); break; - default: DEVICE_GET_INFO_CALL(smc91c9x); break; - } -} - -DEVICE_GET_INFO( smc91c96 ) -{ - switch (state) - { - /* --- the following bits of info are returned as NULL-terminated strings --- */ - case DEVINFO_STR_NAME: strcpy(info->s, "SMC91C96"); break; - default: DEVICE_GET_INFO_CALL(smc91c9x); break; - } -} - 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) { diff --git a/src/emu/machine/tms6100.c b/src/emu/machine/tms6100.c index 2ea90c02f6e..c7569dd3053 100644 --- a/src/emu/machine/tms6100.c +++ b/src/emu/machine/tms6100.c @@ -260,34 +260,6 @@ READ_LINE_DEVICE_HANDLER( tms6100_data_r ) return tms->data; } -/*------------------------------------------------- - TMS 6100 device definition --------------------------------------------------*/ - -DEVICE_GET_INFO(tms6100) -{ - switch (state) - { - case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(tms6100_state); break; - - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(tms6100); break; - - case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(tms6100); break; - - case DEVINFO_STR_NAME: strcpy(info->s, "TMS6100"); break; - } -} - -DEVICE_GET_INFO(m58819) -{ - switch (state) - { - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(m58819); break; - case DEVINFO_STR_NAME: strcpy(info->s, "M58819"); break; - default: DEVICE_GET_INFO_CALL(tms6100); break; - } -} - const device_type TMS6100 = &device_creator<tms6100_device>; tms6100_device::tms6100_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) diff --git a/src/emu/machine/upd4701.c b/src/emu/machine/upd4701.c index 5d120bc6600..4c3ad6b0467 100644 --- a/src/emu/machine/upd4701.c +++ b/src/emu/machine/upd4701.c @@ -301,24 +301,6 @@ static DEVICE_RESET( upd4701 ) upd4701->cf = 1; } -/*------------------------------------------------- - device definition --------------------------------------------------*/ - -DEVICE_GET_INFO(upd4701) -{ - switch (state) - { - case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(upd4701_state); break; - - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(upd4701); break; - - case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(upd4701); break; - - case DEVINFO_STR_NAME: strcpy(info->s, "NEC uPD4701 Encoder"); break; - } -} - const device_type UPD4701 = &device_creator<upd4701_device>; upd4701_device::upd4701_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) diff --git a/src/emu/machine/wd17xx.c b/src/emu/machine/wd17xx.c index 6373628d3fc..8249b54025d 100644 --- a/src/emu/machine/wd17xx.c +++ b/src/emu/machine/wd17xx.c @@ -2099,235 +2099,6 @@ void wd17xx_reset(device_t *device) DEVICE_RESET_CALL( wd1770 ); } - -/*************************************************************************** - DEVICE GETINFO -***************************************************************************/ - -DEVICE_GET_INFO(wd1770) -{ - switch (state) - { - case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(wd1770_state); break; - - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(wd1770); break; - - case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(wd1770); break; - - case DEVINFO_STR_NAME: strcpy(info->s, "WD1770"); break; - } -} - -DEVICE_GET_INFO(fd1771) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "FD1771"); break; - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - -DEVICE_GET_INFO(fd1781) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "FD1781"); break; - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - -DEVICE_GET_INFO(fd1791) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "FD1791"); break; - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - -DEVICE_GET_INFO(fd1792) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "FD1792"); break; - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - -DEVICE_GET_INFO(fd1793) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "FD1793"); break; - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - -DEVICE_GET_INFO(fd1794) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "FD1794"); break; - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - -DEVICE_GET_INFO(fd1795) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "FD1795"); break; - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - -DEVICE_GET_INFO(fd1797) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "FD1797"); break; - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - -DEVICE_GET_INFO(fd1761) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "FD1761"); break; - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - -DEVICE_GET_INFO(fd1762) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "FD1762"); break; - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - -DEVICE_GET_INFO(fd1763) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "FD1763"); break; - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - -DEVICE_GET_INFO(fd1764) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "FD1764"); break; - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - -DEVICE_GET_INFO(fd1765) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "FD1765"); break; - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - -DEVICE_GET_INFO(fd1767) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "FD1767"); break; - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - -DEVICE_GET_INFO(wd2791) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "WD2791"); break; - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - -DEVICE_GET_INFO(wd2793) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "WD2793"); break; - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - -DEVICE_GET_INFO(wd2795) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "WD2795"); break; - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - -DEVICE_GET_INFO(wd2797) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "WD2797"); break; - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - -DEVICE_GET_INFO(wd1772) -{ - switch (state) - { - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(wd1772); break; - - case DEVINFO_STR_NAME: strcpy(info->s, "WD1772"); break; - - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - -DEVICE_GET_INFO(wd1773) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "WD1773"); break; - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - -DEVICE_GET_INFO(mb8866) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "MB8866"); break; - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - -DEVICE_GET_INFO(mb8876) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "MB8876"); break; - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - -DEVICE_GET_INFO(mb8877) -{ - switch (state) - { - case DEVINFO_STR_NAME: strcpy(info->s, "MB8877"); break; - default: DEVICE_GET_INFO_CALL(wd1770); break; - } -} - const device_type FD1771 = &device_creator<fd1771_device>; fd1771_device::fd1771_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |