Extend 'usb_pipe' to track the controller and ports of each device.
[seabios.git] / src / usb-ohci.c
index 7e91b9f0f1aebb6b9772e212c6e9c862d62d7dd0..86eba0d16787eda4f5141517c3b225a6c39eec1a 100644 (file)
@@ -211,6 +211,7 @@ ohci_init(u16 bdf, int busid)
     struct usb_ohci_s *cntl = malloc_tmphigh(sizeof(*cntl));
     memset(cntl, 0, sizeof(*cntl));
     cntl->usb.busid = busid;
+    cntl->usb.bdf = bdf;
     cntl->usb.type = USB_TYPE_OHCI;
 
     u32 baseaddr = pci_config_readl(bdf, PCI_BASE_ADDRESS_0);