coreboot-kgpe-d16/payloads/libpayload/include
Julius Werner 277498c283 libpayload: usbmsc: Factor out usb_msc_force_init() function
We're planning to have a use case with a custom USB device that
implements the USB mass storage protocol on its bulk endpoints, but does
not have the normal MSC class/protocol interface descriptors and does
not support class-specific control requests (Get Max LUN and Bulk-Only
Reset). We'd like to identify/enumerate the device via
usb_generic_create() in our payload but then reuse all the normal MSC
driver code. In order to make that possible, this patch factors a new
usb_msc_force_init() function out of usb_msc_init() which will
initialize an MSC device without checking its descriptors. It also adds
some "quirks" flags that allow devices registered this way to customize
behavior of the MSC stack.

Change-Id: I50392128409cb2a879954f234149a5e3b060a229
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34227
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
2019-08-22 10:37:26 +00:00
..
arm/arch
arm64/arch
arpa
mips/arch
pci
storage payloads: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-07 17:15:30 +00:00
sys
udc
usb libpayload: usbmsc: Factor out usb_msc_force_init() function 2019-08-22 10:37:26 +00:00
x86/arch
archive.h
assert.h
cbfs.h
cbfs_core.h libpayload: cbfs: Require input size and output size for cbfs_decompress 2019-02-28 13:56:26 +00:00
cbfs_ram.h
cbgfx.h
compiler.h Make common macros double-evaluation safe 2019-04-04 19:38:31 +00:00
coreboot_tables.h libpayload: cbgfx: Allow rotation of the display 2019-08-08 03:20:06 +00:00
ctype.h
die.h
endian.h payloads: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-07 17:15:30 +00:00
errno.h
exception.h
fmap_serialized.h fmap: Add FMAP_AREA_PRESERVE 2019-03-04 13:25:01 +00:00
gdb.h
getopt.h
inttypes.h
ipchksum.h
kconfig.h Add new CONFIG(XXX) macro to replace IS_ENABLED(CONFIG_XXX) 2019-03-07 17:06:28 +00:00
keycodes.h
libpayload.h Add buffer_to/from_fifo32(_prefix) helpers 2019-08-22 10:36:22 +00:00
limits.h libpayload: limits.h: Provide reliable definitions for all XXX_MAX/MIN 2019-04-10 10:43:27 +00:00
lz4.h
lzma.h
malloc.h
multiboot_tables.h
panel.h
pci.h
queue.h
stdarg.h
stddef.h
stdint.h
stdio.h
stdlib.h libpayload: Deduplicate strtol and strtoull 2019-04-10 10:44:31 +00:00
string.h libpayload/libc: Tidy utf16le_to_ascii 2019-07-23 09:09:45 +00:00
strings.h
swab.h
sysinfo.h vboot: deprecate vboot_handoff structure 2019-07-23 12:07:07 +00:00
term.h
time.h
unistd.h
video_console.h