Intel SIO overhaul, slight DMA clean-ups and SIO-related additions, made the PIIX/SMSC series of southbridges aware of CPU speed changes, and fixed a bug in the 86F loading code.

This commit is contained in:
OBattler
2020-06-11 12:52:50 +02:00
parent de1cae40f7
commit 464a6da62f
6 changed files with 1050 additions and 225 deletions

View File

@@ -1161,6 +1161,20 @@ piix_close(void *p)
}
static void
piix_speed_changed(void *priv)
{
piix_t *dev = (piix_t *) priv;
int te;
te = timer_is_enabled(&dev->fast_off_timer);
timer_stop(&dev->fast_off_timer);
if (te)
timer_on_auto(&dev->fast_off_timer, dev->fast_off_period);
}
static void
*piix_init(const device_t *info)
{
@@ -1300,7 +1314,7 @@ const device_t piix_device =
piix_close,
piix_reset,
NULL,
NULL,
piix_speed_changed,
NULL,
NULL
};
@@ -1314,7 +1328,7 @@ const device_t piix_rev02_device =
piix_close,
piix_reset,
NULL,
NULL,
piix_speed_changed,
NULL,
NULL
};
@@ -1328,7 +1342,7 @@ const device_t piix3_device =
piix_close,
piix_reset,
NULL,
NULL,
piix_speed_changed,
NULL,
NULL
};
@@ -1342,7 +1356,7 @@ const device_t piix4_device =
piix_close,
piix_reset,
NULL,
NULL,
piix_speed_changed,
NULL,
NULL
};
@@ -1356,7 +1370,7 @@ const device_t piix4e_device =
piix_close,
piix_reset,
NULL,
NULL,
piix_speed_changed,
NULL,
NULL
};
@@ -1370,7 +1384,7 @@ const device_t slc90e66_device =
piix_close,
piix_reset,
NULL,
NULL,
piix_speed_changed,
NULL,
NULL
};