On Mon, Mar 15, 2004 at 05:03:04PM -0500, Alan Stern wrote:
> Greg:
> 
> David Brownell has asked me to become the maintainer for dummy_hcd and to
> submit it for inclusion as an experimental driver in the official kernel.
> 
> dummy_hcd is simultaneously a host controller driver and a device 
> controller driver.  It creates a simulated HC together with a simulated 
> UDC plugged into it.  Gadget drivers can run under the simulated UDC and 
> will appear as regular USB devices on the simulated HC.  The simulation is 
> reasonably (although not totally) realistic.
> 
> It's a wonderful tool for testing and developing gadget drivers without
> the need for lots of additional hardware: Both the host driver and the
> gadget driver can run on the same computer.  It's been available for quite
> some time in David's gadget-2.6 tree and it works well.  I couldn't have
> gotten the file-storage gadget running in any reasonable length of time
> without it.

Hm, I get the following errors when trying to build the gadget drivers
with this driver selected:

drivers/usb/gadget/ether.c:260:9: #error Configure some USB peripheral controller 
driver!
drivers/usb/gadget/ether.c:395: error: `DRIVER_VERSION_NUM' undeclared here (not in a 
function)
drivers/usb/gadget/ether.c:395: error: initializer element is not constant
drivers/usb/gadget/ether.c:395: error: (near initialization for 
`device_desc.bcdDevice')
drivers/usb/gadget/ether.c:593: error: `EP_IN_NUM' undeclared here (not in a function)
drivers/usb/gadget/ether.c:593: error: initializer element is not constant
drivers/usb/gadget/ether.c:593: error: (near initialization for 
`fs_source_desc.bEndpointAddress')
drivers/usb/gadget/ether.c:603: error: `EP_OUT_NUM' undeclared here (not in a function)
drivers/usb/gadget/ether.c:603: error: initializer element is not constant
drivers/usb/gadget/ether.c:603: error: (near initialization for 
`fs_sink_desc.bEndpointAddress')
drivers/usb/gadget/ether.c:652: error: `EP_IN_NUM' undeclared here (not in a function)
drivers/usb/gadget/ether.c:652: error: initializer element is not constant
drivers/usb/gadget/ether.c:652: error: (near initialization for 
`hs_source_desc.bEndpointAddress')
drivers/usb/gadget/ether.c:663: error: `EP_OUT_NUM' undeclared here (not in a function)
drivers/usb/gadget/ether.c:663: error: initializer element is not constant
drivers/usb/gadget/ether.c:663: error: (near initialization for 
`hs_sink_desc.bEndpointAddress')
drivers/usb/gadget/ether.c:721: error: syntax error before "CHIP"
drivers/usb/gadget/ether.c: In function `set_ether_config':
drivers/usb/gadget/ether.c:786: error: `EP_IN_NAME' undeclared (first use in this 
function)
drivers/usb/gadget/ether.c:786: error: (Each undeclared identifier is reported only 
once
drivers/usb/gadget/ether.c:786: error: for each function it appears in.)
drivers/usb/gadget/ether.c:794: error: `EP_OUT_NAME' undeclared (first use in this 
function)
drivers/usb/gadget/ether.c: In function `eth_set_config':
drivers/usb/gadget/ether.c:950: warning: implicit declaration of function `hw_optimize'
drivers/usb/gadget/ether.c: In function `eth_ethtool_ioctl':
drivers/usb/gadget/ether.c:1354: error: `CHIP' undeclared (first use in this function)
drivers/usb/gadget/ether.c: In function `eth_bind':
drivers/usb/gadget/ether.c:1860: error: syntax error before "CHIP"

> By the way, is there any mechanism for adding dummy_hcd.c to your tree 
> while keeping all its associated BK history in gadget-2.6?  I know 
> practically nothing about the intricacies of BitKeeper, but clearly if you 
> simply apply this patch then all that history will be lost.

It's simpler just for me to apply this from an email.  Yeah, the history
will be lost, but no one really wants to see the whole development cycle
of the driver :)

I'll hold off applying this for now till the build fixes are done.

thanks,

greg k-h


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to