rendered paste body//---------------------------------------------------------------------------bool AppleVIAATARoot::isaBridgePublished( void * target, void * param, IOService * service ){ IOPCIDevice * bridge; AppleVIAATARoot * root = (AppleVIAATARoot *) target; const ISABridgeInfo * info; UInt16 bridgeDID; UInt8 bridgeRev; if (root == 0) return false; bridge = OSDynamicCast( IOPCIDevice, service ); if (bridge == 0) return false; bridgeDID = bridge->configRead16(kIOPCIConfigDeviceID); bridgeRev = bridge->configRead8(kIOPCIConfigRevisionID); info = &gISABridges[0]; while (info->deviceID) { IOLog("Checking device id 0x%x\n", info->deviceID); if ((bridgeDID == info->deviceID) && (bridgeRev >= info->minRevID)) break; info++; } // PASCAL: IOLog("Hey dude, found device %s, vendor id is 0x%x, device id is 0x%x, revision is 0x%x!\n", info->name, bridge->configRead16(kIOPCIConfigVendorID), bridgeDID, bridgeRev); // PASCAL: Ignore the stuff above and set info manually to the right device! - TESTING info = &gISABridges[15]; root->setProperty(kHardwareNameKey, info->name); root->fHardwareType = info->hwType; root->fHardwareFlags = info->hwFlags; root->applyToClients( registerClientApplier, 0 ); if (root->fISABridgeNotifier) root->fISABridgeNotifier->disable(); return false;}