From 65cf2649f110ed390dd6c800fa76578d8937a3c9 Mon Sep 17 00:00:00 2001 From: mw308 <34479591+mw308@users.noreply.github.com> Date: Mon, 6 Oct 2025 16:16:42 +0100 Subject: [PATCH] Added HDD model tag capability and extra MS-6119 BIOS (#6287) * Added HDD version tag capability * Added additional PB MS-6119 BIOS --- src/disk/hdc_ide.c | 5 ++++- src/disk/hdd.c | 3 +++ src/include/86box/hdd.h | 3 +++ src/machine/m_at_slot1.c | 9 +++++++++ 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/disk/hdc_ide.c b/src/disk/hdc_ide.c index 566f255e9..6b116697f 100644 --- a/src/disk/hdc_ide.c +++ b/src/disk/hdc_ide.c @@ -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); diff --git a/src/disk/hdd.c b/src/disk/hdd.c index af4411ab0..3c94bfa65 100644 --- a/src/disk/hdd.c +++ b/src/disk/hdd.c @@ -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; diff --git a/src/include/86box/hdd.h b/src/include/86box/hdd.h index 1457efcae..e471cb54e 100644 --- a/src/include/86box/hdd.h +++ b/src/include/86box/hdd.h @@ -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; diff --git a/src/machine/m_at_slot1.c b/src/machine/m_at_slot1.c index 995c943b9..db014587e 100644 --- a/src/machine/m_at_slot1.c +++ b/src/machine/m_at_slot1.c @@ -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",