Hi,

I have a driver for three different usb crypto tokens.
It works completely in userspace by using ioctls on the
/proc/bus/usb/... device.

Now I'd like to add support for another usb crypto token.
What that token does is still 90+% the same, but it differers
in one small issue: the three tokens I already support are
using usb control transfers, so it was easy to implement this.

The new token has two interrupt endpoints.
How can I talk to these from userspace?

Data is read with a usb "c2 02 00 00 00 00 00 01" packet,
data is written with usb "42 01 00 00 00 00 xx 00" packets.
Other combinations i sniffed were "42 65", "42 a0" and "42 a1",
but i don't knoe their meaning yet.

The kernel documentation on usbfs is very sparse, it mostly
links to the devio.c source code. For control and bulk transfer
thats fine as these are quite easy to do. But I have no idea
how to interrupt transfers as required from userspace.

Any example or code fragment would be very helpful.
I read parts of drivers/usb/core/*.c but didn't know
the inner workings of linux-usb in detail.

Thanks for your help.

Regards, Andreas



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to