On Mon, 25 Jun 2007, Pete Zaitcev wrote:

> Sounds even more useful. Better abandon the halfway wrappers for the new
> ones. Another thing I'd think may be useful is to take the endpoint
> address instead of the pipe, because the pipe type is known to each
> wrapper, right?

I'm in favor of doing away with pipe values.  Bear in mind however that
the endpoint address or usb_host_endpoint structure doesn't quite
contain all the information of a pipe.  The extra missing ingredient is
a way to specify the direction for Control transfers (with Bulk,
Interrupt, or Isochronous transfers the endpoint descriptor determines
the direction).

If you prefer, the direction can be or'ed into the high bit of the 
endpoint number.  That's a reasonably standard approach, since it's how 
endpoint descriptors are formatted.  (Note that devices do not contain 
an endpoint descriptor for ep0.  usbcore makes up a fake descriptor of 
its own, with the direction permanently set to OUT.)

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to