]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[usb] Allow endpoints to be refilled to a specified upper limit
authorMichael Brown <mcb30@ipxe.org>
Mon, 12 Oct 2020 14:28:26 +0000 (15:28 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 12 Oct 2020 14:28:26 +0000 (15:28 +0100)
commite30c26d01c7493a7e02e77fc80c490fc85612d5a
tree1a6f62f48209d3eb16c8da00345df8431bc81a34
parentebf01660810c4ff923754323049d49d37321fd49
[usb] Allow endpoints to be refilled to a specified upper limit

For USB mass storage devices, we do not want to submit more bulk IN
packets than are required for the inbound data, since this will waste
memory.

Allow an upper limit to be specified on each refill attempt.  The
endpoint will be refilled to the lower of this limit or the limit
specified by usb_refill_init().

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/bus/usb.c
src/include/ipxe/usb.h