From d2a8043c4b4d04c5771e888205a59f8998645168 Mon Sep 17 00:00:00 2001 From: smf- Date: Thu, 9 May 2024 00:52:59 +0100 Subject: moved PC Card devices to src/devices/bus/pccard and changed signals to match specification to avoid unnecessary inversions. [smf] KONAMI_DUAL_PCCARD: New device, used by Punchmania 2 to allow 2 x 32MB linear flash cards to be installed in a single slot (replacing the previous 64MB linear flash card, that does not seem to exist). [smf] Renamed the remaining 16MB and 32MB flash cards, to indicate that they are rebranded Fujitsu cards. [smf] Linear flash cards can now be write protected. [smf] ID245P01: New device, a rebranded Sharp linear flash card that is also used by Konami. [smf] PM24276: New device, a 16 bit linear flash card. [smf] ataflash creates a generic CIS and identify buffer if it is missing from the CHD, also the card can be detected. [smf] --- scripts/src/bus.lua | 27 ++++++++++++++++++++++---- scripts/src/machine.lua | 50 ------------------------------------------------- 2 files changed, 23 insertions(+), 54 deletions(-) (limited to 'scripts') diff --git a/scripts/src/bus.lua b/scripts/src/bus.lua index 79c00329c85..f0f2e9c0006 100644 --- a/scripts/src/bus.lua +++ b/scripts/src/bus.lua @@ -488,10 +488,6 @@ end --@src/devices/bus/ata/ataintf.h,BUSES["ATA"] = true --------------------------------------------------- -if (MACHINES["ATAFLASH"]~=null) then - BUSES["ATA"] = true -end - if (BUSES["ATA"]~=null) then files { MAME_DIR .. "src/devices/bus/ata/atadev.cpp", @@ -2191,6 +2187,29 @@ if (BUSES["PC_JOY"]~=null) then end +--------------------------------------------------- +-- +--@src/devices/bus/pccard/pccard.h,BUSES["PCCARD"] = true +--------------------------------------------------- + +if (BUSES["PCCARD"]~=null) then + files { + MAME_DIR .. "src/devices/bus/pccard/pccard.cpp", + MAME_DIR .. "src/devices/bus/pccard/pccard.h", + MAME_DIR .. "src/devices/bus/pccard/ataflash.cpp", + MAME_DIR .. "src/devices/bus/pccard/ataflash.h", + MAME_DIR .. "src/devices/bus/pccard/k573npu.cpp", + MAME_DIR .. "src/devices/bus/pccard/k573npu.h", + MAME_DIR .. "src/devices/bus/pccard/konami_dual.cpp", + MAME_DIR .. "src/devices/bus/pccard/konami_dual.h", + MAME_DIR .. "src/devices/bus/pccard/linflash.cpp", + MAME_DIR .. "src/devices/bus/pccard/linflash.h", + MAME_DIR .. "src/devices/bus/pccard/sram.cpp", + MAME_DIR .. "src/devices/bus/pccard/sram.h", + } +end + + --------------------------------------------------- -- --@src/devices/bus/pc_kbd/pc_kbdc.h,BUSES["PC_KBD"] = true diff --git a/scripts/src/machine.lua b/scripts/src/machine.lua index 147271a2626..3953786b204 100644 --- a/scripts/src/machine.lua +++ b/scripts/src/machine.lua @@ -918,19 +918,6 @@ if (MACHINES["ATAHLE"]~=null) then } end ---------------------------------------------------- --- ---@src/devices/machine/ataflash.h,MACHINES["ATAFLASH"] = true ---------------------------------------------------- - -if (MACHINES["ATAFLASH"]~=null) then - MACHINES["PCCARD"] = true - files { - MAME_DIR .. "src/devices/machine/ataflash.cpp", - MAME_DIR .. "src/devices/machine/ataflash.h", - } -end - --------------------------------------------------- -- --@src/devices/machine/atastorage.h,MACHINES["ATASTORAGE"] = true @@ -2108,18 +2095,6 @@ if (MACHINES["LH5810"]~=null) then } end ---------------------------------------------------- --- ---@src/devices/machine/linflash.h,MACHINES["LINFLASH"] = true ---------------------------------------------------- - -if (MACHINES["LINFLASH"]~=null) then - files { - MAME_DIR .. "src/devices/machine/linflash.cpp", - MAME_DIR .. "src/devices/machine/linflash.h", - } -end - --------------------------------------------------- -- --@src/devices/machine/locomo.h,MACHINES["LOCOMO"] = true @@ -3067,7 +3042,6 @@ end --------------------------------------------------- if (MACHINES["RF5C296"]~=null) then - MACHINES["PCCARD"] = true files { MAME_DIR .. "src/devices/machine/rf5c296.cpp", MAME_DIR .. "src/devices/machine/rf5c296.h", @@ -4140,18 +4114,6 @@ if (MACHINES["Z8536"]~=null) then } end ---------------------------------------------------- --- ---@src/devices/machine/pccard.h,MACHINES["PCCARD"] = true ---------------------------------------------------- - -if (MACHINES["PCCARD"]~=null) then - files { - MAME_DIR .. "src/devices/machine/pccard.cpp", - MAME_DIR .. "src/devices/machine/pccard.h", - } -end - --------------------------------------------------- -- --@src/devices/machine/i8255.h,MACHINES["I8255"] = true @@ -5320,18 +5282,6 @@ if (MACHINES["MC88200"]~=null) then } end ---------------------------------------------------- --- ---@src/devices/machine/pccard_sram.h,MACHINES["PCCARD_SRAM"] = true ---------------------------------------------------- - -if (MACHINES["PCCARD_SRAM"]~=null) then - files { - MAME_DIR .. "src/devices/machine/pccard_sram.cpp", - MAME_DIR .. "src/devices/machine/pccard_sram.h", - } -end - --------------------------------------------------- -- --@src/devices/machine/tc9223.h,MACHINES["TC9223"] = true -- cgit v1.2.3