X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/usb-driver/blobdiff_plain/3be69a94facf84cca07986b87e41e7684a903773..795992adafc1a2fdfb06b91c957dc3759e0a6c39:/usb-driver.h diff --git a/usb-driver.h b/usb-driver.h index 2d184d6..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 {