From 984437dfa96c798541fe58180bdbfb150b268345 Mon Sep 17 00:00:00 2001 From: SarahW Date: Sun, 1 Nov 2020 21:42:55 +0000 Subject: [PATCH] Default W83877TF SuperIO to all devices disabled. Fixes FIC VA-503+ IO port conflicts introduced following APM/ACPI implementation. --- src/w83877tf.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/w83877tf.c b/src/w83877tf.c index 6d86ad6..bc4dccc 100644 --- a/src/w83877tf.c +++ b/src/w83877tf.c @@ -235,14 +235,20 @@ static void w83877_common_init(int chip, uint16_t base, uint8_t key) w83877tf_global.regs[0x16] = 0x04; else w83877tf_global.regs[0x16] = 0x05; - w83877tf_global.regs[0x20] = 0xfc; - w83877tf_global.regs[0x23] = 0xde; - w83877tf_global.regs[0x24] = 0xfe; - w83877tf_global.regs[0x25] = 0xbe; - w83877tf_global.regs[0x26] = 0x23; - w83877tf_global.regs[0x27] = 0x05; - w83877tf_global.regs[0x28] = 0x43; - w83877tf_global.regs[0x29] = 0x60; + w83877tf_global.regs[0x20] = 0; + w83877tf_global.regs[0x23] = 0; + w83877tf_global.regs[0x24] = 0; + w83877tf_global.regs[0x25] = 0; + w83877tf_global.regs[0x26] = 0; + w83877tf_global.regs[0x27] = 0; + w83877tf_global.regs[0x28] = 0; + w83877tf_global.regs[0x29] = 0; + + fdc_remove(); + lpt1_remove(); + lpt2_remove(); + serial1_remove(); + serial2_remove(); w83877tf_global.chip = chip; w83877tf_global.unlock_key = key;