Page 1 of 2

Can anybody give a simple code for EHCI!

Posted: Sun Apr 10, 2011 1:19 am
by ppppllll1234
Can anybody give a simple C code for EHCI ?

the code function is use EHCI to read USB Device Descritptor!

Very Thanks!!!

Re: Can anybody give a simple code for EHCI!

Posted: Sun Apr 10, 2011 1:28 am
by madeofstaples
While it is frowned upon to directly ask for working source code, it may be helpful for me to complete a tutorial if I do help you through this. I may be a little busy tomorrow (well, today I guess), but maybe we can make this a mutual effort that will benefit others as well.

Re: Can anybody give a simple code for EHCI!

Posted: Sun Apr 10, 2011 1:36 am
by ppppllll1234
this website have a simple code for UHCI to read USB Device:

http://www.frontiernet.net/~fys/usb.htm

I want to get a simple code like the code ,but it's for EHCI

Re: Can anybody give a simple code for EHCI!

Posted: Mon Apr 11, 2011 1:18 am
by ppppllll1234
Can anybody help me? I'm crazy

Re: Can anybody give a simple code for EHCI!

Posted: Mon Apr 11, 2011 1:51 am
by Brynet-Inc
ppppllll1234 wrote:Can anybody help me? I'm crazy
Hi crazy, I'm wacko.

EDIT: Removed 2015: Imageshack replaced all links with spam.

Re: Can anybody give a simple code for EHCI!

Posted: Mon Apr 11, 2011 4:00 am
by ppppllll1234
Does nobody known EHCI ? It's simple code don't write out?

Re: Can anybody give a simple code for EHCI!

Posted: Mon Apr 11, 2011 4:03 am
by JackScott
There are quite a few people here who have implemented an EHCI controller (I'm not one of them).

Understand that it's frowned upon to ask directly for source code. Nobody learns from just using pasted source code, only from truly understanding the answer. You'll be much better off attempting to implement a driver based on the wiki and the specifications, and then posting here with any specific problems you have.

Re: Can anybody give a simple code for EHCI!

Posted: Mon Apr 11, 2011 4:12 am
by jal
Not to mention that you are nagging. Most people hate nagging.


JAL

Re: Can anybody give a simple code for EHCI!

Posted: Mon Apr 11, 2011 5:20 am
by Solar
And you are aware that the UHCI code you referenced is (quote) "a rough draft" that "is purposely bloated" to serve as template for a size-coding contest - not as a replacement for a 150-page standard spec and / or the 2000-line Wiki article we have on the subject?

Re: Can anybody give a simple code for EHCI!

Posted: Tue Apr 12, 2011 2:12 am
by rdos
Link to EHCI-driver: http://rdos.net/vc/viewvc.cgi/trunk/ker ... iew=markup

It is not complete (quite a few stubs), and any EHCI-driver must necesarily live side-by-side with some USB abstraction, and an OHCI/UHCI companion driver.

IOW, there are no fast short-cuts to a working EHCI.

Re: Can anybody give a simple code for EHCI!

Posted: Sat Sep 24, 2011 4:34 am
by ehenkes
There are quite a few people here who have implemented an EHCI controller (I'm not one of them).
PrettyOS team is going to implement all usb HC drivers (ehci/uhci/ohci/xhci). EHCI and corresponding USB 2.0 transfers work well. We can use memory-sticks as usb mass storage devices with FAT12/16/32.

http://85.214.142.202/pretty/doc/ehci_8c-source.html
http://85.214.142.202/pretty/doc/ehciQHqTD_8c.html
http://85.214.142.202/pretty/doc/usb__hc_8c.html
http://85.214.142.202/pretty/doc/usb2_8c.html
http://85.214.142.202/pretty/doc/usb2__msd_8c.html

We could need assistance with ohci-usb-transactions :D

Re: Can anybody give a simple code for EHCI!

Posted: Sat Sep 24, 2011 11:20 am
by Brynet-Inc
ehenkes wrote:
There are quite a few people here who have implemented an EHCI controller (I'm not one of them).
PrettyOS team is going to implement all usb HC drivers (ehci/uhci/ohci/xhci). EHCI and corresponding USB 2.0 transfers work well. We can use memory-sticks as usb mass storage devices with FAT12/16/32.

http://85.214.142.202/pretty/doc/ehci_8c-source.html
http://85.214.142.202/pretty/doc/ehciQHqTD_8c.html
http://85.214.142.202/pretty/doc/usb__hc_8c.html
http://85.214.142.202/pretty/doc/usb2_8c.html
http://85.214.142.202/pretty/doc/usb2__msd_8c.html

We could need assistance with ohci-usb-transactions :D
This topic is several months old..

BTW, links to IP addresses are not future-proof, you might want to look into fixing that.

Re: Can anybody give a simple code for EHCI!

Posted: Fri Sep 13, 2013 10:46 am
by ehenkes
Best Link: http://prettyos.de

UHCI, OHCI work well on emulators. EHCI works well with real hardware.

We are just working on a xHCI driver. It works well with real hardware.

Re: Can anybody give a simple code for EHCI!

Posted: Fri Sep 13, 2013 10:48 am
by Combuster
Necromancy bordering on advertising? :shock:

Re: Can anybody give a simple code for EHCI!

Posted: Fri Sep 13, 2013 1:46 pm
by rdos
Many modern computers with EHCI lack companion controllers and instead have an internal HUB, which means that the USB HUB functionality also must be implemented before you have anything useful.