Fixed the STPC chipset PCI Vendor and Device ID's.

This commit is contained in:
OBattler
2020-07-11 00:56:45 +02:00
parent 0d2e69142d
commit e0ea2b1f69

View File

@@ -692,12 +692,16 @@ stpc_setup(stpc_t *dev)
stpc_log("STPC: setup()\n"); stpc_log("STPC: setup()\n");
/* Northbridge */ /* Northbridge */
dev->pci_conf[0][0x00] = 0x4a;
dev->pci_conf[0][0x01] = 0x10;
if (dev->local & STPC_NB_CLIENT) { if (dev->local & STPC_NB_CLIENT) {
/* Client */
dev->pci_conf[0][0x00] = 0x0e;
dev->pci_conf[0][0x01] = 0x10;
dev->pci_conf[0][0x02] = 0x64; dev->pci_conf[0][0x02] = 0x64;
dev->pci_conf[0][0x03] = 0x05; dev->pci_conf[0][0x03] = 0x05;
} else { } else {
/* Atlas, Elite, Consumer II */
dev->pci_conf[0][0x00] = 0x4a;
dev->pci_conf[0][0x01] = 0x10;
dev->pci_conf[0][0x02] = 0x0a; dev->pci_conf[0][0x02] = 0x0a;
dev->pci_conf[0][0x03] = 0x02; dev->pci_conf[0][0x03] = 0x02;
} }
@@ -710,17 +714,30 @@ stpc_setup(stpc_t *dev)
dev->pci_conf[0][0x0b] = 0x06; dev->pci_conf[0][0x0b] = 0x06;
/* ISA Bridge */ /* ISA Bridge */
dev->pci_conf[1][0x00] = 0x4a;
dev->pci_conf[1][0x01] = 0x10;
if (dev->local & STPC_ISAB_CLIENT) { if (dev->local & STPC_ISAB_CLIENT) {
/* Client */
dev->pci_conf[1][0x00] = 0x0e;
dev->pci_conf[1][0x01] = 0x10;
dev->pci_conf[1][0x02] = 0xcc; dev->pci_conf[1][0x02] = 0xcc;
dev->pci_conf[1][0x03] = 0x55; dev->pci_conf[1][0x03] = 0x55;
} else if (dev->local & STPC_ISAB_CONSUMER2) { } else if (dev->local & STPC_ISAB_CONSUMER2) {
/* Consumer II */
dev->pci_conf[1][0x00] = 0x4a;
dev->pci_conf[1][0x01] = 0x10;
dev->pci_conf[1][0x02] = 0x0b; dev->pci_conf[1][0x02] = 0x0b;
dev->pci_conf[1][0x03] = 0x02; dev->pci_conf[1][0x03] = 0x02;
} else { } else if (dev->local & STPC_IDE_ATLAS) {
/* Atlas */
dev->pci_conf[1][0x00] = 0x4a;
dev->pci_conf[1][0x01] = 0x10;
dev->pci_conf[1][0x02] = 0x10; dev->pci_conf[1][0x02] = 0x10;
dev->pci_conf[1][0x03] = 0x02; dev->pci_conf[1][0x03] = 0x02;
} else {
/* Elite */
dev->pci_conf[1][0x00] = 0x4a;
dev->pci_conf[1][0x01] = 0x10;
dev->pci_conf[1][0x02] = 0x1a;
dev->pci_conf[1][0x03] = 0x02;
} }
dev->pci_conf[1][0x04] = 0x0f; dev->pci_conf[1][0x04] = 0x0f;