mirror of
https://github.com/ipxe/ipxe
synced 2025-12-20 03:55:46 +03:00
[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>
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user