diff options
author | Michael Brown | 2016-01-19 01:01:11 +0100 |
---|---|---|
committer | Michael Brown | 2016-01-19 01:01:11 +0100 |
commit | 71b83a6d00caedb62cc62a5810f99a7a1478f2ae (patch) | |
tree | 8e1224923a381d42a60f4bac985868e5294dad66 /src/drivers/usb | |
parent | [smsc95xx] Enable LEDs (diff) | |
download | ipxe-71b83a6d00caedb62cc62a5810f99a7a1478f2ae.tar.gz ipxe-71b83a6d00caedb62cc62a5810f99a7a1478f2ae.tar.xz ipxe-71b83a6d00caedb62cc62a5810f99a7a1478f2ae.zip |
[usb] Allow USB endpoints to specify a reserved header length for refills
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/usb')
-rw-r--r-- | src/drivers/usb/usbhub.c | 2 | ||||
-rw-r--r-- | src/drivers/usb/usbkbd.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/usb/usbhub.c b/src/drivers/usb/usbhub.c index 7095fc31..47914bcd 100644 --- a/src/drivers/usb/usbhub.c +++ b/src/drivers/usb/usbhub.c @@ -416,7 +416,7 @@ static int hub_probe ( struct usb_function *func, ( enhanced ? USB_HUB_FEATURES_ENHANCED : USB_HUB_FEATURES ); hubdev->flags = func->id->driver_data; usb_endpoint_init ( &hubdev->intr, usb, &usb_hub_intr_operations ); - usb_refill_init ( &hubdev->intr, 0, USB_HUB_INTR_FILL ); + usb_refill_init ( &hubdev->intr, 0, 0, USB_HUB_INTR_FILL ); process_init_stopped ( &hubdev->refill, &hub_refill_desc, NULL ); /* Locate hub interface descriptor */ diff --git a/src/drivers/usb/usbkbd.c b/src/drivers/usb/usbkbd.c index 76db5771..a8ab6ab7 100644 --- a/src/drivers/usb/usbkbd.c +++ b/src/drivers/usb/usbkbd.c @@ -425,7 +425,7 @@ static int usbkbd_probe ( struct usb_function *func, kbd->name = func->name; kbd->bus = usb->port->hub->bus; usbhid_init ( &kbd->hid, func, &usbkbd_operations, NULL ); - usb_refill_init ( &kbd->hid.in, sizeof ( kbd->report ), + usb_refill_init ( &kbd->hid.in, 0, sizeof ( kbd->report ), USBKBD_INTR_MAX_FILL ); /* Describe USB human interface device */ |