From 3ac92ccf4fefe71d415f5dbc5921e5d541534478 Mon Sep 17 00:00:00 2001 From: MaxwellS04 Date: Fri, 30 May 2025 23:20:50 +0700 Subject: [PATCH 1/2] Assorted Cirrus fixes 1. Correct the linear framebuffer setting on VLB Cirrus chips; should fix segfaults when you use them with default configuration 2. Add the "On-Board" name and correct internal_name to the onboard Cirrus Logic GD5420 --- src/video/vid_cl54xx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/video/vid_cl54xx.c b/src/video/vid_cl54xx.c index 0d02c10c3..2377e792b 100644 --- a/src/video/vid_cl54xx.c +++ b/src/video/vid_cl54xx.c @@ -4796,7 +4796,7 @@ static const device_config_t gd5430_vlb_config[] = { .description = "Linear framebuffer base", .type = CONFIG_SELECTION, .default_string = NULL, - .default_int = 2, + .default_int = 2048, .file_filter = NULL, .spinner = { 0 }, .selection = { @@ -4871,7 +4871,7 @@ static const device_config_t gd5434_vlb_config[] = { .description = "Linear framebuffer base", .type = CONFIG_SELECTION, .default_string = NULL, - .default_int = 2, + .default_int = 2048, .file_filter = NULL, .spinner = { 0 }, .selection = { @@ -4982,8 +4982,8 @@ const device_t gd5420_isa_device = { }; const device_t gd5420_onboard_device = { - .name = "Cirrus Logic GD5420 (ISA)", - .internal_name = "cl_gd5420_isa", + .name = "Cirrus Logic GD5420 (ISA) (On-Board)", + .internal_name = "cl_gd5420_onboard", .flags = DEVICE_ISA16, .local = CIRRUS_ID_CLGD5420 | 0x200, .init = gd54xx_init, From 4a4aa3b0e18fa81c4d8b488c05ff8ec509052d25 Mon Sep 17 00:00:00 2001 From: TC1995 Date: Fri, 30 May 2025 20:45:12 +0200 Subject: [PATCH 2/2] Small important change for the 53c400 (May 30th, 2025) Upon an initial POST, the initital status/control 53c400 port should be 0, fixes various versions of the T130B driver on Windows 95 builds. --- src/scsi/scsi_ncr53c400.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scsi/scsi_ncr53c400.c b/src/scsi/scsi_ncr53c400.c index 0e04e0b5e..7a87b4ac9 100644 --- a/src/scsi/scsi_ncr53c400.c +++ b/src/scsi/scsi_ncr53c400.c @@ -759,7 +759,7 @@ ncr53c400_init(const device_t *info) scsi_bus->bus_device = ncr->bus; scsi_bus->timer = ncr->timer; scsi_bus->priv = ncr->priv; - ncr400->status_ctrl = STATUS_BUFFER_NOT_READY; + ncr400->status_ctrl = 0x00; ncr400->buffer_host_pos = 128; timer_add(&ncr400->timer, ncr53c400_callback, ncr400, 0);