coreboot/payloads/libpayload/include/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_registers.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
usb.h libpayload: Add bulk with timeout callback to USB 2026-01-09 15:02:44 +00:00
usbdisk.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
usbmsc.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00