On Tue, 25 Nov 2003, Ethan Mattor wrote:

> Hi,
> 
> I have been trying do deconstruct your USB driver for some time now.  I am a
> bit stuck, and could use some help.  It I assume that the structure
> usb_operations is a mechanism to reference either the UHCI or OHCI routines
> for a variety of functions.  I cannot find the code that puts the UHCI
> function pointers into the structure.  Where is this accomplished?
> 
> Thanks in advance,
> 
> Ethan.

The pointer is set in core/hcd-pci.c, line 191 (approx):

        hcd->self.op = &usb_hcd_operations;

(within the usb_hcd_pci_probe routine).  The usb_hcd_operations table 
itself it defined in core/hcd.c.

Alan Stern



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to