From 550bb8de24a14bf8e95c1b422c0438ea6e8ac1d5 Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 25 Aug 2025 11:57:00 +0200 Subject: [PATCH] ALi M1487/M1489: Initialize the chipset's own keyboard controller when applicable, fixes #6048. --- src/chipset/ali1489.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/chipset/ali1489.c b/src/chipset/ali1489.c index fc51bbed2..80362e244 100644 --- a/src/chipset/ali1489.c +++ b/src/chipset/ali1489.c @@ -28,9 +28,10 @@ #include <86box/timer.h> #include <86box/io.h> #include <86box/device.h> - +#include <86box/keyboard.h> #include <86box/hdc_ide.h> #include <86box/hdc.h> +#include <86box/machine.h> #include <86box/mem.h> #include <86box/nmi.h> #include <86box/pic.h> @@ -485,6 +486,9 @@ ali1489_init(UNUSED(const device_t *info)) dev->port_92 = device_add(&port_92_pci_device); dev->smram = smram_add(); + if (machine_get_kbc_device(machine) == NULL) + device_add_params(&kbc_at_device, (void *) KBC_VEN_ALI); + ali1489_defaults(dev); return dev;