[usb] Allow USB endpoints to specify a reserved header length for refills

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2016-01-19 00:01:11 +00:00
parent 8dc23d9b83
commit 71b83a6d00
11 changed files with 31 additions and 20 deletions

View File

@@ -472,7 +472,7 @@ static int efi_usb_async_start ( struct efi_usb_interface *usbintf,
usbep->context = context;
/* Prefill endpoint */
usb_refill_init ( &usbep->ep, len, EFI_USB_ASYNC_FILL );
usb_refill_init ( &usbep->ep, 0, len, EFI_USB_ASYNC_FILL );
if ( ( rc = usb_prefill ( &usbep->ep ) ) != 0 ) {
DBGC ( usbdev, "USBDEV %s %s could not prefill: %s\n",
usbintf->name, usb_endpoint_name ( &usbep->ep ),