Add ISA speed control to PIIX and VIA southbridges, and M6117 SoC

This commit is contained in:
RichardG867
2021-03-14 19:44:09 -03:00
parent 0f80e956d5
commit 7cdceb056f
3 changed files with 91 additions and 2 deletions

View File

@@ -1237,9 +1237,10 @@ static void
piix_speed_changed(void *priv)
{
piix_t *dev = (piix_t *) priv;
int te;
if (!dev)
return;
te = timer_is_enabled(&dev->fast_off_timer);
int te = timer_is_enabled(&dev->fast_off_timer);
timer_stop(&dev->fast_off_timer);
if (te)
@@ -1306,6 +1307,8 @@ static void
dev->port_92 = device_add(&port_92_pci_device);
cpu_set_isa_pci_div(4);
dma_alias_set();
if (dev->type < 4)