diff options
author | cracyc <cracyc@users.noreply.github.com> | 2016-07-26 10:19:02 -0500 |
---|---|---|
committer | cracyc <cracyc@users.noreply.github.com> | 2016-07-26 10:19:02 -0500 |
commit | 3708c7a37e0b213dc96d6d90cd823141a561192e (patch) | |
tree | f28ad2a7c0f200c42b1c9540007c530e77be7b43 /src/mame/drivers/firebeat.cpp | |
parent | c936278b52d16fb7cb763598ff112821efdfd637 (diff) |
atapicdr: unbreak firebeat (nw)
ins8250: reassert thre irq when setting mask (nw)
Diffstat (limited to 'src/mame/drivers/firebeat.cpp')
-rw-r--r-- | src/mame/drivers/firebeat.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mame/drivers/firebeat.cpp b/src/mame/drivers/firebeat.cpp index bdfaac9e1a6..89665e9625c 100644 --- a/src/mame/drivers/firebeat.cpp +++ b/src/mame/drivers/firebeat.cpp @@ -144,6 +144,7 @@ Keyboard Mania 2nd Mix - dongle, program CD, audio CD #include "machine/rtc65271.h" #include "machine/ins8250.h" #include "machine/midikbd.h" +#include "machine/atapicdr.h" #include "sound/ymz280b.h" #include "sound/cdda.h" #include "sound/rf5c400.h" @@ -1268,6 +1269,10 @@ static MACHINE_CONFIG_FRAGMENT( cdrom_config ) MCFG_SOUND_ROUTE(1, "^^^^rspeaker", 1.0) MACHINE_CONFIG_END +static SLOT_INTERFACE_START(firebeat_ata_devices) + SLOT_INTERFACE("cdrom", ATAPI_FIXED_CDROM) +SLOT_INTERFACE_END + static MACHINE_CONFIG_START( firebeat, firebeat_state ) /* basic machine hardware */ @@ -1284,7 +1289,7 @@ static MACHINE_CONFIG_START( firebeat, firebeat_state ) MCFG_FUJITSU_29F016A_ADD("flash_snd1") MCFG_FUJITSU_29F016A_ADD("flash_snd2") - MCFG_ATA_INTERFACE_ADD("ata", ata_devices, "cdrom", "cdrom", true) + MCFG_ATA_INTERFACE_ADD("ata", firebeat_ata_devices, "cdrom", "cdrom", true) MCFG_ATA_INTERFACE_IRQ_HANDLER(WRITELINE(firebeat_state, ata_interrupt)) MCFG_DEVICE_MODIFY("ata:1") @@ -1344,7 +1349,7 @@ static MACHINE_CONFIG_START( firebeat2, firebeat_state ) MCFG_FUJITSU_29F016A_ADD("flash_snd1") MCFG_FUJITSU_29F016A_ADD("flash_snd2") - MCFG_ATA_INTERFACE_ADD("ata", ata_devices, "cdrom", "cdrom", true) + MCFG_ATA_INTERFACE_ADD("ata", firebeat_ata_devices, "cdrom", "cdrom", true) MCFG_ATA_INTERFACE_IRQ_HANDLER(WRITELINE(firebeat_state, ata_interrupt)) MCFG_DEVICE_MODIFY("ata:1") @@ -1410,7 +1415,7 @@ static MACHINE_CONFIG_DERIVED( firebeat_spu, firebeat ) MCFG_SOUND_ROUTE(0, "lspeaker", 1.0) MCFG_SOUND_ROUTE(1, "rspeaker", 1.0) - MCFG_ATA_INTERFACE_ADD("spu_ata", ata_devices, "cdrom", nullptr, true) + MCFG_ATA_INTERFACE_ADD("spu_ata", firebeat_ata_devices, "cdrom", nullptr, true) MCFG_ATA_INTERFACE_IRQ_HANDLER(WRITELINE(firebeat_state, spu_ata_interrupt)) MACHINE_CONFIG_END |