coreboot/payloads/libpayload/drivers/usb
Tomasz Michalec 829b8be432 libpayload: Add bulk with timeout callback to USB
Add bulk_timeout() callback to USB controllers that allows to issue bulk
transaction with configurable timeout. This allows to peek if there is
any incoming data from USB device without needing to wait 5 seconds if
there is no data.

'finalize' argument is omitted in bulk_timeout(), because any recent
controller doesn't use it in bulk() method anyway. For OHCI and UHCI,
which are only controllers using 'finalize', issuing bulk_timeout() with
USB_MAX_PROCESSING_TIME_US timeout is the same as issuing bulk() with
'finalize' set to zero.

Change-Id: I82dbe307b566e4fc6cca314924168f7ad677efe7
Signed-off-by: Tomasz Michalec <tmichalec@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/90043
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
2026-01-09 15:02:44 +00:00
..
dwc2.c libpayload: Add bulk with timeout callback to USB 2026-01-09 15:02:44 +00:00
dwc2.h
dwc2_private.h libpayload: Add bulk with timeout callback to USB 2026-01-09 15:02:44 +00:00
dwc2_rh.c
ehci.c libpayload: Add bulk with timeout callback to USB 2026-01-09 15:02:44 +00:00
ehci.h
ehci_private.h
ehci_rh.c
generic_hub.c
generic_hub.h
Kconfig
ohci.c libpayload: Add bulk with timeout callback to USB 2026-01-09 15:02:44 +00:00
ohci.h
ohci_private.h
ohci_rh.c
quirks.c
TODO
uhci.c libpayload: Add bulk with timeout callback to USB 2026-01-09 15:02:44 +00:00
uhci.h
uhci_private.h
uhci_rh.c
usb.c
usb_dev.c
usbhid.c
usbhub.c
usbinit.c
usbmsc.c libpayload: usbmsc: Correctly deal with disks larger than 2TB 2025-05-02 23:24:25 +00:00
xhci.c libpayload: Add bulk with timeout callback to USB 2026-01-09 15:02:44 +00:00
xhci.h
xhci_commands.c libpayload: Add bulk with timeout callback to USB 2026-01-09 15:02:44 +00:00
xhci_debug.c
xhci_devconf.c
xhci_events.c libpayload: Add bulk with timeout callback to USB 2026-01-09 15:02:44 +00:00
xhci_private.h libpayload: Add bulk with timeout callback to USB 2026-01-09 15:02:44 +00:00
xhci_rh.c