From d51afdea8cff9fd1582464abd7df7f1c9a3bc748 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Thu, 19 Nov 2020 15:45:12 -0300 Subject: [PATCH] Fix 80-conductor cable GPIOs for WCF-681 and 6VIA85X --- src/acpi.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/acpi.c b/src/acpi.c index cbf7345c9..48ff9b510 100644 --- a/src/acpi.c +++ b/src/acpi.c @@ -35,6 +35,7 @@ #include <86box/pit.h> #include <86box/apm.h> #include <86box/acpi.h> +#include <86box/machine.h> #ifdef ENABLE_ACPI_LOG @@ -1156,8 +1157,14 @@ acpi_reset(void *priv) - Bit 11: ATX power (active high) - Bit 4: 80-conductor cable on primary IDE channel (active low) - Bit 3: 80-conductor cable on secondary IDE channel (active low) - - Bit 2: password cleared (active low) */ - dev->regs.gpi_val = 0xffffffe7; + - Bit 2: password cleared (active low) + AEWIN WCF-681: + - Bit 3: 80-conductor cable on primary IDE channel (active low) + - Bit 2: 80-conductor cable on secondary IDE channel (active low) + Acorp 6VIA85X: + - Bit 3: 80-conductor cable on secondary IDE channel (active low) + - Bit 1: 80-conductor cable on primary IDE channel (active low) */ + dev->regs.gpi_val = !strcmp(machines[machine].internal_name, "wcf681") ? 0xffffffe3 : 0xffffffe5; } }