Give all PC87307 machines the earlier GPIO behaviour (#6332)

This commit is contained in:
Cacodemon345
2025-10-13 01:40:29 +06:00
committed by GitHub
parent 50c9fd6a0d
commit 05fe82a205
3 changed files with 14 additions and 4 deletions

View File

@@ -1139,6 +1139,7 @@ extern int machine_at_acerv60n_init(const machine_t *);
extern int machine_at_p65up5_cp6nd_init(const machine_t *);
extern int machine_at_8600ttc_init(const machine_t *);
extern int machine_at_686nx_init(const machine_t *);
extern uint32_t machine_ap440fx_vs440fx_gpio_handler(uint8_t write, uint32_t val);
extern int machine_at_ap440fx_init(const machine_t *);
#ifdef EMU_DEVICE_H
extern const device_t vs440fx_device;

View File

@@ -303,6 +303,15 @@ machine_at_686nx_init(const machine_t *model)
return ret;
}
uint32_t
machine_ap440fx_vs440fx_gpio_handler(uint8_t write, uint32_t val)
{
if (!write)
return 0xff7f;
(void)val; /* Writes are ignored. */
}
int
machine_at_ap440fx_init(const machine_t *model)
{

View File

@@ -15608,7 +15608,7 @@ const machine_t machines[] = {
.chipset = MACHINE_CHIPSET_INTEL_430TX,
.init = machine_at_optiplexgn_init,
.p1_handler = machine_generic_p1_handler,
.gpio_handler = NULL,
.gpio_handler = machine_ap440fx_vs440fx_gpio_handler,
.available_flag = MACHINE_AVAILABLE,
.gpio_acpi_handler = NULL,
.cpu = {
@@ -17328,7 +17328,7 @@ const machine_t machines[] = {
.chipset = MACHINE_CHIPSET_INTEL_440FX,
.init = machine_at_ap440fx_init,
.p1_handler = machine_generic_p1_handler,
.gpio_handler = NULL,
.gpio_handler = machine_ap440fx_vs440fx_gpio_handler,
.available_flag = MACHINE_AVAILABLE,
.gpio_acpi_handler = NULL,
.cpu = {
@@ -17374,7 +17374,7 @@ const machine_t machines[] = {
.chipset = MACHINE_CHIPSET_INTEL_440FX,
.init = machine_at_vs440fx_init,
.p1_handler = machine_generic_p1_handler,
.gpio_handler = NULL,
.gpio_handler = machine_ap440fx_vs440fx_gpio_handler,
.available_flag = MACHINE_AVAILABLE,
.gpio_acpi_handler = NULL,
.cpu = {
@@ -17781,7 +17781,7 @@ const machine_t machines[] = {
.chipset = MACHINE_CHIPSET_INTEL_440LX,
.init = machine_at_optiplexgxa_init,
.p1_handler = machine_generic_p1_handler,
.gpio_handler = NULL,
.gpio_handler = machine_ap440fx_vs440fx_gpio_handler,
.available_flag = MACHINE_AVAILABLE,
.gpio_acpi_handler = NULL,
.cpu = {