Added HDD model tag capability and extra MS-6119 BIOS (#6287)

* Added HDD version tag capability

* Added additional PB MS-6119 BIOS
This commit is contained in:
mw308
2025-10-06 16:16:42 +01:00
committed by GitHub
parent 2193938266
commit 65cf2649f1
4 changed files with 19 additions and 1 deletions

View File

@@ -552,7 +552,10 @@ ide_hd_identify(const ide_t *ide)
/* Serial Number */
ide_padstr((char *) (ide->buffer + 10), "", 20);
/* Firmware */
ide_padstr((char *) (ide->buffer + 23), EMU_VERSION_EX, 8);
if (hdd[ide->hdd_num].version_ex)
ide_padstr((char *) (ide->buffer + 23), hdd[ide->hdd_num].version_ex, 8);
else
ide_padstr((char *) (ide->buffer + 23), EMU_VERSION_EX, 8);
/* Model */
if (hdd[ide->hdd_num].model)
ide_padstr((char *) (ide->buffer + 27), hdd[ide->hdd_num].model, 40);

View File

@@ -621,6 +621,9 @@ hdd_preset_apply(int hdd_id)
if (preset->model)
hd->model = preset->model;
if (preset->version_ex)
hd->version_ex = preset->version_ex;
if (!hd->speed_preset)
return;

View File

@@ -99,6 +99,7 @@ typedef struct hdd_preset_t {
uint32_t max_multiple;
double full_stroke_ms;
double track_seek_ms;
const char *version_ex;
} hdd_preset_t;
typedef struct hdd_cache_seg_t {
@@ -186,6 +187,8 @@ typedef struct hard_disk_t {
const char *model;
const char *version_ex;
hdd_zone_t zones[HDD_MAX_ZONES];
hdd_cache_t cache;

View File

@@ -708,6 +708,15 @@ static const device_config_t ms6119_config[] = {
.spinner = { 0 },
.selection = { { 0 } },
.bios = {
{
.name = "AMIBIOS 6 (071595) - Revision 1.72 (Packard Bell Tacoma with logo)",
.internal_name = "tacoma_logo",
.bios_type = BIOS_NORMAL,
.files_no = 1,
.local = 0,
.size = 262144,
.files = { "roms/machines/ms6119/A19P2172.ROM", "" }
},
{
.name = "AMIBIOS 6 (071595) - Revision 1.90 (Packard Bell Tacoma)",
.internal_name = "tacoma",