mirror of
https://github.com/86Box/86Box.git
synced 2026-02-24 20:35:32 -07:00
Give all PC87307 machines the earlier GPIO behaviour (#6332)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user