On Tuesday 22 August 2006 10:31 am, Iñaky Pérez-González wrote: > On Monday 21 August 2006 15:30, David Brownell wrote: > > > At this point, it weighs in at 292 lines compared > > > to 1002 for the current driver. > > > > Deleting 700+ lines sounds like a Good Thing to me. :) > > Is there any guide around explaining how to port to usbnet? Got a driver > around (UWB Networking over USB) that could use a diet.
No guide other than the source code, of which there should be plenty of examples ranging from trivial (cdc_subset) to complex (asix or rndis_host). Basically provide a "struct driver_info" suit all the methods specific to your hardware ... it's been made pretty flexible by now. I call the bits that plug into a "driver_info" a "minidriver". IMO the strength of that core is that it provides most of the generic USB parts of the network interface glue, including tricky bits like both RX and TX URB queues (getting good throughput without kluges like packet combining), and fault recovery. - Dave
pgpKw6PtYFkOP.pgp
Description: PGP signature
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
