Hi,
Currently, in an usbdevfs-based application it is not possible to know
the speed the device is operating at. But this information is sometime
required, for example to interpret the bInterval and wMaxPacketSize
fields of interrupt/isochronous endpoint descriptors. Specifically, it
is a problem to differentiate between full and high speed because this
is not indicated in descriptors.
We suggest to add a new IOCTL (e.g. USBDEVFS_GET_SPEED) which reports
the speed as an int value as one of the following constants:
#define USBDEVFS_SPEED_UNKNOWN 0
#define USBDEVFS_SPEED_LOW 1
#define USBDEVFS_SPEED_FULL 2
#define USBDEVFS_SPEED_HIGH 3
#define USBDEVFS_SPEED_WIRELESS 4
#define USBDEVFS_SPEED_SUPER 5
#define USBDEVFS_SPEED_SUPER_PLUS 6
Alternatively you could introduce IOCTL USBDEVFS_CONNECTINFO_2 and
struct usbdevfs_connectinfo_2.
Best Regards,
Reinhard
--
Reinhard Huck
Thesycon Software Solutions GmbH & Co. KG
http://www.thesycon.de
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html