Angus
Angus

Reputation: 12621

Device Driver programming - USB

I have to discuss the codeflow of the USB host controller. This USB host controller is the interface between the device and the OS. There are numerous USB devices (eg.keyboard,camera,mouse,etc).

Where will I find the code to see how the communication between the USB device and OS happens through the USB host-controller ?

Upvotes: 1

Views: 1237

Answers (2)

user2699113
user2699113

Reputation: 4509

I suggest you to take a look at USB host controller specifications - UHCI/OHCI/EHCI/XHCI because this knowledge will be necessary to understand whole USB stack in linux kernel.

You may also download some example sources provided by several embedded microcontroller producers (i.e. Atmel). Probably those drivers will be easier to analyse than linux sources.

Upvotes: 1

Federico
Federico

Reputation: 3892

Download the Linux kernel source code, and start reading the code in drivers/usb. Here an online reference, and the README about the USB-tree

Upvotes: 1

Related Questions