> From: xiaohuaw <[EMAIL PROTECTED]>
> Date: Thu, 18 Aug 2005 18:16:09 +0800
> 
> What's the pre-compilation* option with *driver/usb/gadget/ether.c to
> implete usbnet under linux.

Erm, there's the Kconfig "CONFIG_USB_ETH" option, which is the only
pre-compilation option.  (Other than adding RNDIS support.)

The options you ask about are internal to the driver, and are used to
make the gadgets be as interoperable as possible.


> #DEV_CONFIG_CDC or #DEV_CONFIG_SUBSET or 
> #DEV_CONFIG_CDC + #DEV_CONFIG_SUBSET?  What's the difference between 
> them? 

The driver has two basic modes:  CDC Ethernet support, or CDC subset.
Hardware that can implement CDC Ethernet should do that, to maximize
the number of different USB host implementations supported.  That
subset is much easier to support than CDC Ethernet ... but it's best
supported on Linux USB hosts, rather than e.g. Apple, BSD, or various
other operating systems.

So only **ONE** of DEV_CONFIG_{CDC,SUBSET} should be supported.
You're using OMAP, so you should have observed that building an
OMAP kernel enables DEV_CONFIG_CDC ... this hardware is very
capable, it supports the USB-IF standard approach easily.


>        which interfaces do the usbnet need? (interface_decriptor?)

The "usbnet" framework supports CDC Ethernet, the CDC Subset, and
also RNDIS.  It "needs" the interfaces associated with those kinds
of devices ... a data interface, and in some cases a separate control
(and status) interface.  That's what gets compiled into the driver.


> Anyone who can tell me the whole process of enumeration ethernet
> gadget?(by using CDC or SUBSET?) I want to know the SETUP packets PC
> will send after set_config. My platform is OMAP.

The simple way to see this is to enable VERBOSE debugging in the
omap_udc driver and just watch what happens through "dmesg".  Or
if you have a CATC sniffer, use that.

- Dave



> 
> 
> thanks
> 
> 
> 


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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