Re: writing device driver for USB MOUSE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 17, 2006 at 04:03:09PM +0900, sanjay kumar wrote:
> On 1/17/06, Greg KH <greg@xxxxxxxxx> wrote:
> > On Mon, Jan 16, 2006 at 08:39:06AM -0800, mayank rana wrote:
> > > hi to all
> > >
> > > I am working on writing device driver for USB mouse. Now I  studied
> > > the architecture of USB mouse , i.e  Configuration,Interface,Endpoint.
> > > I am also able to detect USB mouse  using my code. I am not getting
> > > how to write probe function which is  basically used for initializing
> > > above parameters. If somebody  is  able to tell me flow of probe
> > > funcation, I am very grateful to him.
> >
> > Have you read the USB documentation that is included in the kernel
> > source tree?  Look in Documentation/DocBook/usb and writing_usb_driver
> > (but the writing file is a bit out of date.)
> >
> > Also, the third edition of Linux Device Drivers (free online) has a
> > whole chapter all about USB that you should look at.
> 
> The usb device driver for a mouse will be a "usb gadget driver". Am i
> correct in my understanding.

You did not specify that your code is going to be a gadget driver,
sorry.

> The device driver book says, that it does not cover "usb gadget
> drivers", so where to look for pointers for writing "usb gadget
> driver" apart from the kernel source.

Have you tried posting your code and asking for help on the
linux-usb-devel mailing list?  That's the best place for this.

Hope this helps,

greg k-h

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux