for (;;) {
if (pci_classprog(ehcipci) == PCI_CLASS_SERIAL_USB_EHCI) {
// Found an ehci controller.
- int ret = ehci_init(ehcipci->bdf, count++, pci->bdf);
+ int ret = ehci_init(ehcipci, count++, pci);
if (ret)
// Error
break;
}
if (pci_classprog(pci) == PCI_CLASS_SERIAL_USB_UHCI)
- uhci_init(pci->bdf, count++);
+ uhci_init(pci, count++);
else if (pci_classprog(pci) == PCI_CLASS_SERIAL_USB_OHCI)
- ohci_init(pci->bdf, count++);
+ ohci_init(pci, count++);
}
}