Page 1 of 1

USB Driver

Posted: Sat Apr 30, 2011 6:16 pm
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 ;(

Re: USB Driver

Posted: Sun May 01, 2011 6:33 am
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