OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 4:16 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: USB driver
PostPosted: Tue Apr 08, 2003 3:30 pm 
Anyone have source/docs or tutorial links on USB they would like to share?

Thanks
_mark()


Top
  
 
 Post subject: Re:USB driver
PostPosted: Tue Apr 08, 2003 6:14 pm 
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.


Top
  
 
 Post subject: Re:USB driver
PostPosted: Wed Apr 09, 2003 2:30 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 2:31 am
Posts: 5964
Location: In a galaxy, far, far away
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 :) )

_________________
Image May the source be with you.


Top
 Profile  
 
 Post subject: Re:USB driver
PostPosted: Wed Apr 09, 2003 2:41 am 
Offline
Member
Member

Joined: Wed Oct 18, 2006 11:59 am
Posts: 1600
Location: Vienna/Austria
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.

_________________
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image


Top
 Profile  
 
 Post subject: Re:USB driver
PostPosted: Wed Apr 09, 2003 7:15 am 
Ya - I been poking around in the linux source. With any luck I can put together a more simple example....:)

_mark()


Top
  
 
 Post subject: Re:USB driver
PostPosted: Wed Apr 09, 2003 10:11 am 
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).


Top
  
 
 Post subject: Re:USB driver
PostPosted: Fri Apr 11, 2003 1:15 am 
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.


Top
  
 
 Post subject: Re:USB driver
PostPosted: Fri Apr 11, 2003 7:02 pm 
hey - thanks, I had found that first one, but the second link is good in that it provides practicle examples.

_mark()


Top
  
 
 Post subject: Re:USB driver
PostPosted: Fri Apr 11, 2003 8:58 pm 
One more link:
http://www.beyondlogic.org/usb/usbdevdrvs.htm

K.J.


Top
  
 
 Post subject: Re:USB driver
PostPosted: Sun Apr 13, 2003 7:49 pm 
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. :)


Top
  
 
 Post subject: Re:USB driver
PostPosted: Mon Apr 14, 2003 7:07 am 
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()


Top
  
 
 Post subject: Re: USB driver
PostPosted: Thu Feb 21, 2013 7:01 am 
Offline

Joined: Wed Apr 28, 2010 6:51 am
Posts: 3
After 10 years...

You guys managed to make an implementation? [-o<


Top
 Profile  
 
 Post subject: Re: USB driver
PostPosted: Thu Feb 21, 2013 7:11 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9301
Location: On the balcony, where I can actually keep 1½m distance
They didn't live to tell the tale... :wink:

We have the USB page for all sorts of details

_________________
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]


Top
 Profile  
 
 Post subject: Re: USB driver
PostPosted: Fri Feb 22, 2013 10:35 am 
Offline
Member
Member

Joined: Sun Mar 07, 2010 2:12 am
Posts: 65
http://code.google.com/p/tatos/

Tatos has got a working ehci/uhci driver implementation.

Regards
M2004


Top
 Profile  
 
 Post subject: Re: USB driver
PostPosted: Mon Apr 08, 2013 4:15 pm 
Offline
Member
Member
User avatar

Joined: Mon Mar 23, 2009 3:15 am
Posts: 124
Location: Germany
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://www.henkessoft.de/OS_Dev/OS_Dev3.htm (OSDEV)
http://www.c-plusplus.de/forum/viewforu ... is-62.html
irc.euirc.net #PrettyOS


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: DotBot [Bot], SemrushBot [Bot] and 70 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group