Re: writing device driver for USB MOUSE

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

 



Hi,

You are wrong.

Gadget Drivers for USB are drivers that reside on the USB device. 
Are you writing USB drivers on the Host or on the device

Regards
Narendra


----- Original Message ----- 
From: "sanjay kumar" <xs2sanjay@xxxxxxxxx>
To: "kernelnewbies" <kernelnewbies@xxxxxxxxxxxx>
Cc: "mayank rana" <mayank_rana_it@xxxxxxxxxxx>
Sent: Tuesday, January 17, 2006 12:33 PM
Subject: Re: writing device driver for USB MOUSE


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.
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.

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




--
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