diff options
Diffstat (limited to 'include/usbdevice.h')
-rw-r--r-- | include/usbdevice.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/usbdevice.h b/include/usbdevice.h index 41716364b31..d46fa06789c 100644 --- a/include/usbdevice.h +++ b/include/usbdevice.h @@ -291,8 +291,9 @@ struct usb_bus_instance; * USB Spec Release number */ +#ifndef USB_BCD_VERSION #define USB_BCD_VERSION 0x0110 - +#endif /* * Device Requests (c.f Table 9-2) @@ -467,7 +468,11 @@ typedef struct urb_link { * function driver to inform it that data has arrived. */ +#if USB_BCD_VERSION == 0x0200 +#define URB_BUF_SIZE 2048 +#else #define URB_BUF_SIZE 128 /* in linux we'd malloc this, but in u-boot we prefer static data */ +#endif struct urb { struct usb_endpoint_instance *endpoint; @@ -595,6 +600,7 @@ struct usb_device_instance { unsigned long usbd_rxtx_timestamp; unsigned long usbd_last_rxtx_timestamp; + unsigned int speed; }; /* Bus Interface configuration structure |