Because my OS runs on a USB drive, I want to be able to read from it. So I started looking for info about USB driver programming. Practically the only thing I could find was the wiki page, which referenced to some design documents. Scrolling through the large documents searching for clues on how to start communicating with the device, I find myself looking for a needle in a haystack. I don't know where to start.
Aren't there any better documents (I am talking about the OHCI doc)?
Getting started on USB driver
- Revelation
- Member
- Posts: 47
- Joined: Sat Jun 21, 2008 8:15 am
Getting started on USB driver
Now is the winter of my disk content.
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: Getting started on USB driver
If you ever want to develop your OS, you need to learn how to search the web
USB 3.0 spec
USB 2.0 spec
OHCI
UHCI
EHCI
The ULPI link seems to be down but I'm sure you'll find it if you just Google.
USB 3.0 spec
USB 2.0 spec
OHCI
UHCI
EHCI
The ULPI link seems to be down but I'm sure you'll find it if you just Google.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]
Re: Getting started on USB driver
Check out usb4dos at http://freenet-homepage.de/dieterp/
Should be helpful
Should be helpful
Re: Getting started on USB driver
Also try using the forum search http://forum.osdev.org/viewtopic.php?f= ... ex#p139910
The code is to run on DexOS, but you could just as eay run it from your own.
Also this should help http://www.usbmadesimple.co.uk/index.html
The code is to run on DexOS, but you could just as eay run it from your own.
Also this should help http://www.usbmadesimple.co.uk/index.html
- Revelation
- Member
- Posts: 47
- Joined: Sat Jun 21, 2008 8:15 am
Re: Getting started on USB driver
Thanks. I understand more of what I have to do. Now I'm trying to implement a mass storage device class. There are some nice documents here.
Now is the winter of my disk content.
- Revelation
- Member
- Posts: 47
- Joined: Sat Jun 21, 2008 8:15 am
Re: Getting started on USB driver
I'm still having some trouble with sending packages, because I don't know what value I should use for SYNC. I'm trying to read the device descriptor.
edit: I think I got that wrong. To read that data I should make an entry in the frame list that contains a TD with the package in it.
edit: I think I got that wrong. To read that data I should make an entry in the frame list that contains a TD with the package in it.
Now is the winter of my disk content.