speedtch usbatm.c,1.20,1.21 usbatm.h,1.13,1.14
baldrick at free.fr
Wed Apr 27 06:06:52 EDT 2005
> > One thing is special, however: the endpoints are initialized to bulk
> > pipes from usbatm_driver.in and .out, and I assumed that the subdriver
> > could override it by an iso pipe, if needed. I guess I should better
> > check the endpoint descriptor instead to determine if it's bulk or iso,
> > and this all can (and should) be done after bind.
> Having given it some thought, I'm not so certain this is the right thing
> to do. E.g. if the driver only chooses in its bind() which endpoint it
> wants to use, how does it make the core know?
I don't understand what the problem is. Anyway, we could do the following:
restore these fields in the public part of struct usbatm_data:
The driver can set them in the bind method if it wants. After bind, the
channels are setup. I guess at this point the core works out what kind
of endpoint it is (bulk or iso).
More information about the Usbatm