Implemented VIA PIPC device PCI reset function and improved that of PIIX.

This commit is contained in:
OBattler
2020-10-20 18:38:41 +02:00
parent 4c4fed4109
commit f1b59303ab
2 changed files with 50 additions and 5 deletions

View File

@@ -1170,7 +1170,23 @@ piix_reset(void *p)
piix_write(0, 0xa8, 0x0f, p);
}
if (dev->type == 5)
piix_write(0, 0xe1, 0x40, p);
piix_write(1, 0x04, 0x00, p);
if (dev->type == 5) {
piix_write(1, 0x09, 0x8a, p);
piix_write(1, 0x10, 0xf1, p);
piix_write(1, 0x11, 0x01, p);
piix_write(1, 0x14, 0xf5, p);
piix_write(1, 0x15, 0x03, p);
piix_write(1, 0x18, 0x71, p);
piix_write(1, 0x19, 0x01, p);
piix_write(1, 0x1c, 0x75, p);
piix_write(1, 0x1d, 0x03, p);
} else
piix_write(1, 0x09, 0x80, p);
piix_write(1, 0x20, 0x01, p);
piix_write(1, 0x21, 0x00, p);
piix_write(1, 0x41, 0x00, p);
piix_write(1, 0x43, 0x00, p);