USB driver
USB driver
Anyone have source/docs or tutorial links on USB they would like to share?
Thanks
_mark()
Thanks
_mark()
Re:USB driver
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.
Please write a tutorial when you are done, so that the rest of us can use USB.
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:USB driver
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 )
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 )
-
- Member
- Posts: 1600
- Joined: Wed Oct 18, 2006 11:59 am
- Location: Vienna/Austria
- Contact:
Re:USB driver
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.
_mark(), why don't you drop an eye into the linux source code? I 've found some usb.c stuff there.
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
BlueillusionOS iso image
Re:USB driver
Ya - I been poking around in the linux source. With any luck I can put together a more simple example....
_mark()
_mark()
Re:USB driver
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
These may or may not help, but they are worth a try:
http://www.usb.org/developers/docs
http://www.cybertrails.com/~fys/usb.htm
K.J.
http://www.usb.org/developers/docs
http://www.cybertrails.com/~fys/usb.htm
K.J.
Re:USB driver
hey - thanks, I had found that first one, but the second link is good in that it provides practicle examples.
_mark()
_mark()
Re:USB driver
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.
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
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()
_mark()
Re: USB driver
After 10 years...
You guys managed to make an implementation?
You guys managed to make an implementation?
Re: USB driver
http://code.google.com/p/tatos/
Tatos has got a working ehci/uhci driver implementation.
Regards
M2004
Tatos has got a working ehci/uhci driver implementation.
Regards
M2004
Re: USB driver
PrettyOS owns implementation for UHCI, OHCI, EHCI. USB 2.0 works well with mass storage devices.
http://sourceforge.net/p/prettyos/code/ ... l/storage/
http://sourceforge.net/p/prettyos/code/ ... l/storage/
http://www.henkessoft.de/OS_Dev/OS_Dev3.htm (OSDEV)
http://www.c-plusplus.de/forum/viewforu ... is-62.html
irc.euirc.net #PrettyOS
http://www.c-plusplus.de/forum/viewforu ... is-62.html
irc.euirc.net #PrettyOS