-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Following code does work:
static void bootblock_southbridge_init(void) {
/* ROM decode last 8MB FF800000 - FFFFFFFF on VT8237S/VT8237A */ /* ROM decode last 4MB FFC00000 - FFFFFFFF on VT8237R */
device_t dev;
/* Power management controller */ //dev = pci_locate_device(PCI_ID(PCI_VENDOR_ID_VIA, // PCI_DEVICE_ID_VIA_VT8237R_LPC), 0);
//if (dev == PCI_DEV_INVALID) { /* Power management controller */ dev = pci_locate_device(PCI_ID(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_VT8237S_LPC), 0); //}
if (dev == PCI_DEV_INVALID) return;
pci_write_config8(dev, 0x41, 0x7f); }
If one uncomment the commented out parts. It stops working. Nothing is changed if the if (dev == PCI_DEV_INVALID) return; is moved to the if or not.
Rudolf