trunk/src/emu/sound/nes_apu.c
| r23844 | r23845 | |
| 769 | 769 | const device_type NES = &device_creator<nesapu_device>; |
| 770 | 770 | |
| 771 | 771 | nesapu_device::nesapu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 772 | | : device_t(mconfig, NES, "N2A03", tag, owner, clock, "nesapu", __FILE__), |
| 772 | : device_t(mconfig, NES, "N2A03 APU", tag, owner, clock, "nesapu", __FILE__), |
| 773 | 773 | device_sound_interface(mconfig, *this) |
| 774 | 774 | { |
| 775 | 775 | m_token = global_alloc_clear(nesapu_state); |
trunk/src/emu/sound/wave.c
| r23844 | r23845 | |
| 85 | 85 | const device_type WAVE = &device_creator<wave_device>; |
| 86 | 86 | |
| 87 | 87 | wave_device::wave_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 88 | | : device_t(mconfig, WAVE, "Cassette", tag, owner, clock, "wawe", __FILE__), |
| 88 | : device_t(mconfig, WAVE, "Wave", tag, owner, clock, "wawe", __FILE__), |
| 89 | 89 | device_sound_interface(mconfig, *this) |
| 90 | 90 | { |
| 91 | 91 | } |
trunk/src/emu/sound/sn76496.h
| r23844 | r23845 | |
| 144 | 144 | { |
| 145 | 145 | public: |
| 146 | 146 | gamegear_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 147 | | : sn76496_base_device(mconfig, GAMEGEAR, "Game Gear PSG", tag, 0x8000, 0x01, 0x08, true, true, 8, false, owner, clock, "gamegear", __FILE__) |
| 147 | : sn76496_base_device(mconfig, GAMEGEAR, "Game Gear PSG", tag, 0x8000, 0x01, 0x08, true, true, 8, false, owner, clock, "gamegear_psg", __FILE__) |
| 148 | 148 | { } |
| 149 | 149 | }; |
| 150 | 150 | |
trunk/src/emu/cpu/psx/sio.c
| r23844 | r23845 | |
| 26 | 26 | const device_type PSX_SIO1 = &device_creator<psxsio1_device>; |
| 27 | 27 | |
| 28 | 28 | psxsio0_device::psxsio0_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 29 | | psxsio_device(mconfig, PSX_SIO0, tag, owner, clock, "psxsio0", __FILE__) |
| 29 | psxsio_device(mconfig, PSX_SIO0, "PSX SIO-0", tag, owner, clock, "psxsio0", __FILE__) |
| 30 | 30 | { |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | psxsio1_device::psxsio1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 34 | | psxsio_device(mconfig, PSX_SIO1, tag, owner, clock, "psxsio1", __FILE__) |
| 34 | psxsio_device(mconfig, PSX_SIO1, "PSX SIO-1", tag, owner, clock, "psxsio1", __FILE__) |
| 35 | 35 | { |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | | psxsio_device::psxsio_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : |
| 39 | | device_t(mconfig, type, "PSX SIO", tag, owner, clock, shortname, source), |
| 38 | psxsio_device::psxsio_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) : |
| 39 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), |
| 40 | 40 | m_irq_handler(*this) |
| 41 | 41 | { |
| 42 | 42 | } |
trunk/src/emu/cpu/psx/sio.h
| r23844 | r23845 | |
| 38 | 38 | class psxsio_device : public device_t |
| 39 | 39 | { |
| 40 | 40 | public: |
| 41 | | psxsio_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); |
| 41 | psxsio_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); |
| 42 | 42 | |
| 43 | 43 | // static configuration helpers |
| 44 | 44 | template<class _Object> static devcb2_base &set_irq_handler(device_t &device, _Object object) { return downcast<psxsio_device &>(device).m_irq_handler.set_callback(object); } |
trunk/src/emu/machine/pci.c
| r23844 | r23845 | |
| 88 | 88 | // pci_bus_legacy_device - constructor |
| 89 | 89 | //------------------------------------------------- |
| 90 | 90 | pci_bus_legacy_device::pci_bus_legacy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 91 | | device_t(mconfig, PCI_BUS, "PCI Bus", tag, owner, clock, "pci_bus_legacy", __FILE__), |
| 91 | device_t(mconfig, PCI_BUS, "PCI Bus Legacy", tag, owner, clock, "pci_bus_legacy", __FILE__), |
| 92 | 92 | m_father(NULL) |
| 93 | 93 | { |
| 94 | 94 | for (int i = 0; i < ARRAY_LENGTH(m_devtag); i++) { |
trunk/src/emu/machine/mc146818.c
| r23844 | r23845 | |
| 112 | 112 | //------------------------------------------------- |
| 113 | 113 | |
| 114 | 114 | mc146818_device::mc146818_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 115 | | : device_t(mconfig, MC146818, "NVRAM", tag, owner, clock, "mc146818", __FILE__), |
| 115 | : device_t(mconfig, MC146818, "MC146818", tag, owner, clock, "mc146818", __FILE__), |
| 116 | 116 | device_rtc_interface(mconfig, *this), |
| 117 | 117 | device_nvram_interface(mconfig, *this), |
| 118 | 118 | m_write_irq(*this), |
trunk/src/mess/machine/ti99/videowrp.c
| r23844 | r23845 | |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | ti_std_video_device::ti_std_video_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 34 | | : ti_video_device(mconfig, TI99VIDEO, "Video subsystem", tag, owner, clock, "ti99_video", __FILE__) |
| 34 | : ti_video_device(mconfig, TI99VIDEO, "TI99 STD Video subsystem", tag, owner, clock, "ti99_video", __FILE__) |
| 35 | 35 | { |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | ti_exp_video_device::ti_exp_video_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 39 | | : ti_video_device(mconfig, V9938VIDEO, "Video subsystem", tag, owner, clock, "v9938_video", __FILE__) |
| 39 | : ti_video_device(mconfig, V9938VIDEO, "TI99 EXP Video subsystem", tag, owner, clock, "v9938_video", __FILE__) |
| 40 | 40 | { |
| 41 | 41 | } |
| 42 | 42 | |
trunk/src/mess/machine/ti99/peribox.c
| r23844 | r23845 | |
| 227 | 227 | for (int i=2; i <= 8; i++) m_slot[i] = NULL; |
| 228 | 228 | } |
| 229 | 229 | |
| 230 | | peribox_device::peribox_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) |
| 231 | | : bus8z_device(mconfig, PERIBOX, "Peripheral expansion box", tag, owner, clock, shortname, source) |
| 230 | peribox_device::peribox_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) |
| 231 | : bus8z_device(mconfig, type, name, tag, owner, clock, shortname, source) |
| 232 | 232 | { |
| 233 | 233 | for (int i=2; i <= 8; i++) m_slot[i] = NULL; |
| 234 | 234 | } |
| r23844 | r23845 | |
| 436 | 436 | *****************************************************************************/ |
| 437 | 437 | |
| 438 | 438 | peribox_gen_device::peribox_gen_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 439 | | : peribox_device(mconfig, tag, owner, clock, "peribox_gen", __FILE__) |
| 439 | : peribox_device(mconfig, PERIBOX_GEN, "Peripheral expansion box Generic", tag, owner, clock, "peribox_gen", __FILE__) |
| 440 | 440 | { |
| 441 | 441 | }; |
| 442 | 442 | |
| r23844 | r23845 | |
| 473 | 473 | *****************************************************************************/ |
| 474 | 474 | |
| 475 | 475 | peribox_sg_device::peribox_sg_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 476 | | : peribox_device(mconfig, tag, owner, clock, "peribox_sg", __FILE__) |
| 476 | : peribox_device(mconfig, PERIBOX_SG, "Peripheral expansion box SGCPU", tag, owner, clock, "peribox_sg", __FILE__) |
| 477 | 477 | { |
| 478 | 478 | }; |
| 479 | 479 | |
| r23844 | r23845 | |
| 517 | 517 | *****************************************************************************/ |
| 518 | 518 | |
| 519 | 519 | peribox_ev_device::peribox_ev_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 520 | | : peribox_device(mconfig, tag, owner, clock, "peribox_ev", __FILE__) |
| 520 | : peribox_device(mconfig, PERIBOX_EV, "Peripheral expansion box EVPC", tag, owner, clock, "peribox_ev", __FILE__) |
| 521 | 521 | { |
| 522 | 522 | }; |
| 523 | 523 | |
trunk/src/mess/machine/ti99/peribox.h
| r23844 | r23845 | |
| 47 | 47 | friend class peribox_slot_device; |
| 48 | 48 | public: |
| 49 | 49 | peribox_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 50 | | peribox_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); |
| 50 | peribox_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); |
| 51 | 51 | |
| 52 | 52 | // Next six methods are called from the console |
| 53 | 53 | DECLARE_READ8Z_MEMBER(readz); |
trunk/src/mess/machine/thomson.c
| r23844 | r23845 | |
| 670 | 670 | //------------------------------------------------- |
| 671 | 671 | |
| 672 | 672 | to7_io_line_device::to7_io_line_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 673 | | : device_t(mconfig, TO7_IO_LINE, "Serial source", tag, owner, clock, "to7_io_line", __FILE__), |
| 673 | : device_t(mconfig, TO7_IO_LINE, "T07 Serial source", tag, owner, clock, "to7_io_line", __FILE__), |
| 674 | 674 | device_serial_interface(mconfig, *this) |
| 675 | 675 | { |
| 676 | 676 | } |
trunk/src/mess/machine/a2eauxslot.c
| r23844 | r23845 | |
| 25 | 25 | // a2eauxslot_slot_device - constructor |
| 26 | 26 | //------------------------------------------------- |
| 27 | 27 | a2eauxslot_slot_device::a2eauxslot_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 28 | | device_t(mconfig, A2EAUXSLOT_SLOT, "Apple II Slot", tag, owner, clock, "a2eauxslot_slot", __FILE__), |
| 28 | device_t(mconfig, A2EAUXSLOT_SLOT, "Apple IIe AUX Slot", tag, owner, clock, "a2eauxslot_slot", __FILE__), |
| 29 | 29 | device_slot_interface(mconfig, *this) |
| 30 | 30 | { |
| 31 | 31 | } |
| r23844 | r23845 | |
| 98 | 98 | //------------------------------------------------- |
| 99 | 99 | |
| 100 | 100 | a2eauxslot_device::a2eauxslot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 101 | | device_t(mconfig, A2EAUXSLOT, "Apple II Bus", tag, owner, clock, "a2eauxslot", __FILE__) |
| 101 | device_t(mconfig, A2EAUXSLOT, "Apple IIe AUX Bus", tag, owner, clock, "a2eauxslot", __FILE__) |
| 102 | 102 | { |
| 103 | 103 | } |
| 104 | 104 | |
trunk/src/mess/machine/psxcd.c
| r23844 | r23845 | |
| 90 | 90 | }; |
| 91 | 91 | |
| 92 | 92 | psxcd_device::psxcd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 93 | | cdrom_image_device(mconfig, PSXCD, "Cdrom", tag, owner, clock, "psx_cd", __FILE__), |
| 93 | cdrom_image_device(mconfig, PSXCD, "PSX Cdrom", tag, owner, clock, "psx_cd", __FILE__), |
| 94 | 94 | m_irq_handler(*this) |
| 95 | 95 | { |
| 96 | 96 | static_set_static_config(*this, &psx_cdrom); |
trunk/src/mame/video/vrender0.c
| r23844 | r23845 | |
| 602 | 602 | const device_type VIDEO_VRENDER0 = &device_creator<vr0video_device>; |
| 603 | 603 | |
| 604 | 604 | vr0video_device::vr0video_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 605 | | : device_t(mconfig, VIDEO_VRENDER0, "VRender0", tag, owner, clock, "vr0video", __FILE__) |
| 605 | : device_t(mconfig, VIDEO_VRENDER0, "VRender0 Video", tag, owner, clock, "vr0video", __FILE__) |
| 606 | 606 | { |
| 607 | 607 | m_token = global_alloc_clear(vr0video_state); |
| 608 | 608 | } |
trunk/src/mame/video/ppu2c0x.c
| r23844 | r23845 | |
| 181 | 181 | |
| 182 | 182 | // The PPU_2C05 variants have different protection value, set at DEVICE_START, but otherwise are all the same... |
| 183 | 183 | // Vs. Unisystem (Ninja Jajamaru Kun) |
| 184 | | ppu2c05_01_device::ppu2c05_01_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C05_01, "2C05 PPU", tag, owner, clock, "ppu2c05_01", __FILE__) |
| 184 | ppu2c05_01_device::ppu2c05_01_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C05_01, "2C05_01 PPU", tag, owner, clock, "ppu2c05_01", __FILE__) |
| 185 | 185 | { |
| 186 | 186 | m_security_value = 0x1b; // game (jajamaru) doesn't seem to ever actually check it |
| 187 | 187 | } |
| 188 | 188 | // Vs. Unisystem (Mighty Bomb Jack) |
| 189 | | ppu2c05_02_device::ppu2c05_02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C05_02, "2C05 PPU", tag, owner, clock, "ppu2c05_02", __FILE__) |
| 189 | ppu2c05_02_device::ppu2c05_02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C05_02, "2C05_02 PPU", tag, owner, clock, "ppu2c05_02", __FILE__) |
| 190 | 190 | { |
| 191 | 191 | m_security_value = 0x3d; |
| 192 | 192 | } |
| 193 | 193 | // Vs. Unisystem (Gumshoe) |
| 194 | | ppu2c05_03_device::ppu2c05_03_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C05_03, "2C05 PPU", tag, owner, clock, "ppu2c05_03", __FILE__) |
| 194 | ppu2c05_03_device::ppu2c05_03_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C05_03, "2C05_03 PPU", tag, owner, clock, "ppu2c05_03", __FILE__) |
| 195 | 195 | { |
| 196 | 196 | m_security_value = 0x1c; |
| 197 | 197 | } |
| 198 | 198 | // Vs. Unisystem (Top Gun) |
| 199 | | ppu2c05_04_device::ppu2c05_04_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C05_04, "2C05 PPU", tag, owner, clock, "ppu2c05_04", __FILE__) |
| 199 | ppu2c05_04_device::ppu2c05_04_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ppu2c0x_device(mconfig, PPU_2C05_04, "2C05_04 PPU", tag, owner, clock, "ppu2c05_04", __FILE__) |
| 200 | 200 | { |
| 201 | 201 | m_security_value = 0x1b; |
| 202 | 202 | } |
trunk/src/mame/machine/mega32x.c
| r23844 | r23845 | |
| 214 | 214 | const device_type SEGA_32X_NTSC = &device_creator<sega_32x_ntsc_device>; |
| 215 | 215 | const device_type SEGA_32X_PAL = &device_creator<sega_32x_pal_device>; |
| 216 | 216 | |
| 217 | | sega_32x_device::sega_32x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, device_type type, const char *shortname, const char *source) |
| 218 | | : device_t(mconfig, type, "sega_32x_device", tag, owner, clock, shortname, source), |
| 217 | sega_32x_device::sega_32x_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) |
| 218 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), |
| 219 | 219 | m_master_cpu(*this, "32x_master_sh2"), |
| 220 | 220 | m_slave_cpu(*this, "32x_slave_sh2"), |
| 221 | 221 | m_lch_pwm(*this, "lch_pwm"), |
| r23844 | r23845 | |
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | sega_32x_ntsc_device::sega_32x_ntsc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 227 | | : sega_32x_device(mconfig, tag, owner, clock, SEGA_32X_NTSC, "sega_32x_ntsc", __FILE__) |
| 227 | : sega_32x_device(mconfig, SEGA_32X_NTSC, "sega_32x_ntsc", tag, owner, clock, "sega_32x_ntsc", __FILE__) |
| 228 | 228 | { |
| 229 | 229 | } |
| 230 | 230 | |
| 231 | 231 | sega_32x_pal_device::sega_32x_pal_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 232 | | : sega_32x_device(mconfig, tag, owner, clock, SEGA_32X_PAL, "sega_32x_pal", __FILE__) |
| 232 | : sega_32x_device(mconfig, SEGA_32X_PAL, "sega_32x_pal", tag, owner, clock, "sega_32x_pal", __FILE__) |
| 233 | 233 | { |
| 234 | 234 | } |
| 235 | 235 | |
trunk/src/mame/machine/mega32x.h
| r23844 | r23845 | |
| 25 | 25 | class sega_32x_device : public device_t |
| 26 | 26 | { |
| 27 | 27 | public: |
| 28 | | sega_32x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, device_type type, const char *shortname, const char *source); |
| 28 | sega_32x_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); |
| 29 | 29 | |
| 30 | 30 | required_device<cpu_device> m_master_cpu; |
| 31 | 31 | required_device<cpu_device> m_slave_cpu; |
trunk/src/mame/machine/megacd.c
| r23844 | r23845 | |
| 22 | 22 | const device_type SEGA_SEGACD_JAPAN = &device_creator<sega_segacd_japan_device>; |
| 23 | 23 | const device_type SEGA_SEGACD_EUROPE = &device_creator<sega_segacd_europe_device>; |
| 24 | 24 | |
| 25 | | sega_segacd_device::sega_segacd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, device_type type, const char *shortname, const char *source) |
| 26 | | : device_t(mconfig, type, "sega_segacd_device", tag, owner, clock, shortname, source), |
| 25 | sega_segacd_device::sega_segacd_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) |
| 26 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), |
| 27 | 27 | m_scdcpu(*this, "segacd_68k") |
| 28 | 28 | { |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | sega_segacd_us_device::sega_segacd_us_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 32 | | : sega_segacd_device(mconfig, tag, owner, clock, SEGA_SEGACD_US, "sega_segacd_us", __FILE__) |
| 32 | : sega_segacd_device(mconfig, SEGA_SEGACD_US, "sega_segacd_us", tag, owner, clock, "sega_segacd_us", __FILE__) |
| 33 | 33 | { |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | sega_segacd_japan_device::sega_segacd_japan_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 37 | | : sega_segacd_device(mconfig, tag, owner, clock, SEGA_SEGACD_JAPAN, "sega_segacd_japan", __FILE__) |
| 37 | : sega_segacd_device(mconfig, SEGA_SEGACD_JAPAN, "sega_segacd_japan", tag, owner, clock, "sega_segacd_japan", __FILE__) |
| 38 | 38 | { |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | sega_segacd_europe_device::sega_segacd_europe_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 42 | | : sega_segacd_device(mconfig, tag, owner, clock, SEGA_SEGACD_EUROPE, "sega_segacd_europe", __FILE__) |
| 42 | : sega_segacd_device(mconfig, SEGA_SEGACD_EUROPE, "sega_segacd_europe", tag, owner, clock, "sega_segacd_europe", __FILE__) |
| 43 | 43 | { |
| 44 | 44 | } |
| 45 | 45 | |
trunk/src/mame/machine/megacd.h
| r23844 | r23845 | |
| 198 | 198 | class sega_segacd_device : public device_t |
| 199 | 199 | { |
| 200 | 200 | public: |
| 201 | | sega_segacd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, device_type type, const char *shortname, const char *source); |
| 201 | sega_segacd_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); |
| 202 | 202 | |
| 203 | 203 | required_device<cpu_device> m_scdcpu; |
| 204 | 204 | lc89510_temp_device *lc89510_temp; |