X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/usb-driver/blobdiff_plain/e71b6bf3f359a5b670cf4a14fa15836572da2492..795992adafc1a2fdfb06b91c957dc3759e0a6c39:/usb-driver.h diff --git a/usb-driver.h b/usb-driver.h index faab957..f911a8f 100644 --- a/usb-driver.h +++ b/usb-driver.h @@ -15,6 +15,8 @@ #define MAGIC 0xa410b413UL +#define WDU_GET_MAX_PACKET_SIZE(x) ((unsigned short) (((x) & 0x7ff) * (1 + (((x) & 0x1800) >> 11)))) + /* http://www.jungo.com/support/documentation/windriver/811/wdusb_man_mhtml/node78.html#SECTION001734000000000000000 */ struct header_struct { @@ -350,3 +352,11 @@ struct usb_device_info { WDU_CONFIGURATION *pActiveConfig; WDU_INTERFACE *pActiveInterface[WD_USB_MAX_INTERFACES]; }; + +struct usb_device_info_get { + WDU_DEVICE_DESCRIPTOR Descriptor; + WDU_PIPE_INFO Pipe0; + unsigned char dummy[128]; + WDU_CONFIGURATION cfg; + +};