Extend 'usb_pipe' to track the controller and ports of each device.
[seabios.git] / src / usb-uhci.c
index 65498089d6ca0845fd7b80e1c1928ef09ebdb271..40f83bb9a850d57b1662fd2d1ab6d6ba136e2fed 100644 (file)
@@ -186,6 +186,7 @@ uhci_init(u16 bdf, int busid)
     struct usb_uhci_s *cntl = malloc_tmphigh(sizeof(*cntl));
     memset(cntl, 0, sizeof(*cntl));
     cntl->usb.busid = busid;
+    cntl->usb.bdf = bdf;
     cntl->usb.type = USB_TYPE_UHCI;
     cntl->iobase = (pci_config_readl(bdf, PCI_BASE_ADDRESS_4)
                     & PCI_BASE_ADDRESS_IO_MASK);