Page 1 of 1
USB driver
Posted: Tue Apr 08, 2003 3:30 pm
by _mark
Anyone have source/docs or tutorial links on USB they would like to share?
Thanks
_mark()
Re:USB driver
Posted: Tue Apr 08, 2003 6:14 pm
by Tim
No. If you wrote some USB code, AFAIK you'd be the first developer of a small OS to do so.
Please write a tutorial when you are done, so that the rest of us can use USB.
Re:USB driver
Posted: Wed Apr 09, 2003 2:30 am
by Pype.Clicker
in late '90s, i found a document from Intel explaining how USB works (that was hidden in the chipset datasheet with UDMA, AGP and other funny things like these).
No, i can't provide a link, because it probably has move. Just go to developer.intel.com
However, the best you'll probably be able to do is to provide enumeration and detection of new devices, but talking to the DEVICE itself ... hum ... i mean, the USB printer, or scanner, or joystick, or Alcatel modem ... this is the job of the hardware manufacturers, unfortunately.
And, as usual, they will not give you the knowledge to do so because it is too dangerous for them (or at least they think so
)
Re:USB driver
Posted: Wed Apr 09, 2003 2:41 am
by distantvoices
would be interesting. the usb abstracts the special needs of the devices more to faciliate uniform communication. Would suffice to say to usb: I want the printer print a doc, here is the data, do it?
_mark(), why don't you drop an eye into the linux source code? I 've found some usb.c stuff there.
Re:USB driver
Posted: Wed Apr 09, 2003 7:15 am
by _mark
Ya - I been poking around in the linux source. With any luck I can put together a more simple example....
_mark()
Re:USB driver
Posted: Wed Apr 09, 2003 10:11 am
by Tim
Just to expand on what I posted earlier: the information required to write your own USB stack should be out there, since the hardware is all standard. The reason why it's so difficult is because all the intelligence is in the drivers on the PC. This lets hardware manufacturers make really cheap and simple devices, because the clever stuff is only written once (presumably by Microsoft, inside Windows).
Re:USB driver
Posted: Fri Apr 11, 2003 1:15 am
by K.J.
Re:USB driver
Posted: Fri Apr 11, 2003 7:02 pm
by _mark
hey - thanks, I had found that first one, but the second link is good in that it provides practicle examples.
_mark()
Re:USB driver
Posted: Fri Apr 11, 2003 8:58 pm
by K.J.
Re:USB driver
Posted: Sun Apr 13, 2003 7:49 pm
by spm
Hi. There's a lot of good PDF's on the subject.. although I haven't yet dared try implementing USB, it seems like I might have to tomorrow (two freinds coming over with a semi-suicidal plan for making fun use of a little machine that can...
)
Here's some stuff:
http://yaxic.foo.is/docs/usb/usb_20.pdf <-- The USB 2.0 specification.
http://yaxic.foo.is/docs/usb/ <-- Loads of PDF's.
Have fun.
Re:USB driver
Posted: Mon Apr 14, 2003 7:07 am
by _mark
Thanks everyone - the links are helpful - my brain is kind of in USB overload right now though. Seems it is a slight bit more complicated then my keyboard driver...
_mark()
Re: USB driver
Posted: Thu Feb 21, 2013 7:01 am
by anizzomc
After 10 years...
You guys managed to make an implementation?
Re: USB driver
Posted: Thu Feb 21, 2013 7:11 am
by Combuster
They didn't live to tell the tale...
We have the
USB page for all sorts of details
Re: USB driver
Posted: Fri Feb 22, 2013 10:35 am
by M2004
http://code.google.com/p/tatos/
Tatos has got a working ehci/uhci driver implementation.
Regards
M2004
Re: USB driver
Posted: Mon Apr 08, 2013 4:15 pm
by ehenkes
PrettyOS owns implementation for UHCI, OHCI, EHCI. USB 2.0 works well with mass storage devices.
http://sourceforge.net/p/prettyos/code/ ... l/storage/