diff options
| author | Michael Brown | 2020-10-12 16:28:26 +0200 |
|---|---|---|
| committer | Michael Brown | 2020-10-12 16:28:26 +0200 |
| commit | e30c26d01c7493a7e02e77fc80c490fc85612d5a (patch) | |
| tree | 1a6f62f48209d3eb16c8da00345df8431bc81a34 /src/include/ipxe | |
| parent | [usb] Allow device halt to be cleared independently of host controller (diff) | |
| download | ipxe-e30c26d01c7493a7e02e77fc80c490fc85612d5a.tar.gz ipxe-e30c26d01c7493a7e02e77fc80c490fc85612d5a.tar.xz ipxe-e30c26d01c7493a7e02e77fc80c490fc85612d5a.zip | |
[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>
Diffstat (limited to 'src/include/ipxe')
| -rw-r--r-- | src/include/ipxe/usb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/ipxe/usb.h b/src/include/ipxe/usb.h index a05ac613c..70d6daf33 100644 --- a/src/include/ipxe/usb.h +++ b/src/include/ipxe/usb.h @@ -621,6 +621,7 @@ usb_recycle ( struct usb_endpoint *ep, struct io_buffer *iobuf ) { } extern int usb_prefill ( struct usb_endpoint *ep ); +extern int usb_refill_limit ( struct usb_endpoint *ep, unsigned int max ); extern int usb_refill ( struct usb_endpoint *ep ); extern void usb_flush ( struct usb_endpoint *ep ); |
