void Memory_PCIDevice_hook(void* arg1, void* arg2, void* arg3, void* arg4, void* arg5, void* arg6) { pci_dt_t* current = arg1; if(current->class_id == PCI_CLASS_BRIDGE_HOST) { dram_controller_dev = current; } else if(is_smbus_controller(current)) { smbus_controller_dev = current; } }
void Memory_PCIDevice_hook(void* arg1, void* arg2, void* arg3, void* arg4) { pci_dt_t* current = arg1; if(current->class_id == PCI_CLASS_BRIDGE_HOST) { dram_controller_dev = current; DBG("dram_controller_dev found devID=%08x\n", current->device_id); } else if(is_smbus_controller(current)) { smbus_controller_dev = current; DBG("smbus_controller_dev found devID=%08x\n", current->device_id); } }