USB Driver

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
raz0r
Posts: 19
Joined: Sat Apr 30, 2011 6:02 pm

USB Driver

Post by raz0r »

Hi,

Im trying to develop a usb driver in the OS from my university, and I dont have idea about what´s the first step that i need consider.

I read USB Protocol Specification, and i read about the packets that i can send to the bus to comunicate usbdriver--hardware.
I need only make that the OS detect the USB connected on the computer, but, how can i send handshake packet to the usb-bus ? Whats the asm registers that i need know? Can i test the code in win32 disabling usb controller?

Im testing the OS in bochs and i dont have idea if this vm have a bridge for usb .. i dont have idea if i can test this code in bochs.

EDIT: I read http://wiki.osdev.org/USB but don´t have examples in ANSI C or asm ;(
M2004
Member
Member
Posts: 65
Joined: Sun Mar 07, 2010 2:12 am

Re: USB Driver

Post by M2004 »

Here's an example of communicating with uhci controller.
This should give you a place to start.

http://www.frontiernet.net/~fys/usb.htm

regards
Mac2004
Post Reply