coreboot/payloads/libpayload/include
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
..
arm/arch payloads/libpayload: Add fast data types to types.h 2025-03-10 15:21:44 +00:00
arm64/arch libpayload: arm64: Fix asynchronous exception routing in payload 2025-11-25 16:49:56 +00:00
arpa
mock/arch payloads/libpayload: Add fast data types to types.h 2025-03-10 15:21:44 +00:00
pci
riscv/arch payloads/libpayload: Add support for RISC-V 64-bit architecture 2026-01-07 00:31:24 +00:00
storage
sys
udc
usb libpayload: Add bulk with timeout callback to USB 2026-01-09 15:02:44 +00:00
x86/arch payloads/libpayload: Add fast data types to types.h 2025-03-10 15:21:44 +00:00
archive.h
assert.h libpayload: Use __func__ instead of old __FUNCTION__ 2023-02-17 16:19:44 +00:00
boot_device.h
cbfs.h libpayload: Remove legacy CBFS API 2024-02-22 21:18:39 +00:00
cbfs_glue.h
cbgfx.h
coreboot_tables.h coreboot_tables: Update CB_MEM_TAG and LB_MEM_TAG values to 17 2026-01-05 03:09:30 +00:00
ctype.h
delay.h libpayload: Use Kconfig instead of weak symbol for arch_ndelay() 2025-05-22 19:27:30 +00:00
die.h treewide: Move stdlib.h to commonlib 2024-03-15 10:09:43 +00:00
endian.h Remove <swab.h> and swabXX() functions 2025-12-12 07:09:45 +00:00
errno.h
exception.h
fmap.h
fpmath.h
gdb.h
getopt.h
inttypes.h
kconfig.h
keycodes.h
libpayload.h libpayload: Add API to get physical memory size 2025-12-11 19:45:26 +00:00
limits.h Revert "libpayload: Define UCHAR_MAX/CHAR_MIN/CHAR_MAX" 2025-10-14 09:58:49 +00:00
lp_vboot.h libpayload: Add vboot and reboot utility functions 2023-09-18 15:42:31 +00:00
lz4.h payloads/libpayload: Support legacy LZ4 compression format 2025-11-13 23:45:02 +00:00
lzma.h
malloc.h
multiboot_tables.h
panel.h
pci.h
queue.h
stdarg.h libpayload/include/stdarg.h: Add va_copy builtin 2023-08-17 16:46:07 +00:00
stdbool.h
stddef.h libpayload: Outsource delay function into own header 2023-08-24 13:35:02 +00:00
stdint.h libpayload: Add missing SIZE_MAX define 2024-08-19 23:20:00 +00:00
stdio.h
stdlib.h treewide: Move stdlib.h to commonlib 2024-03-15 10:09:43 +00:00
string.h libpayload: Use Kconfig for architecture memcpy, not weak symbols 2025-05-22 19:27:24 +00:00
strings.h libpayload: strings.h: Use builtin __ffs instead of included one 2023-03-07 17:11:05 +00:00
sysinfo.h libpayload: Increase SYSINFO_MAX_GPIOS to 10 2026-01-01 12:47:46 +00:00
term.h
time.h
unistd.h
video_console.h
wchar.h