Can anybody give a simple code for EHCI!
-
- Posts: 13
- Joined: Sat Apr 09, 2011 9:28 pm
Can anybody give a simple code for EHCI!
Can anybody give a simple C code for EHCI ?
the code function is use EHCI to read USB Device Descritptor!
Very Thanks!!!
the code function is use EHCI to read USB Device Descritptor!
Very Thanks!!!
-
- Member
- Posts: 204
- Joined: Thu Apr 12, 2007 8:15 am
- Location: Michigan
Re: Can anybody give a simple code for EHCI!
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.
Some people are offended by the verifiable truth; such people tend to remain blissfully unencumbered by fact.
If you are one of these people, my posts may cause considerable discomfort. Read at your own risk.
If you are one of these people, my posts may cause considerable discomfort. Read at your own risk.
-
- Posts: 13
- Joined: Sat Apr 09, 2011 9:28 pm
Re: Can anybody give a simple code for EHCI!
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
http://www.frontiernet.net/~fys/usb.htm
I want to get a simple code like the code ,but it's for EHCI
-
- Posts: 13
- Joined: Sat Apr 09, 2011 9:28 pm
Re: Can anybody give a simple code for EHCI!
Can anybody help me? I'm crazy
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
Re: Can anybody give a simple code for EHCI!
Hi crazy, I'm wacko.ppppllll1234 wrote:Can anybody help me? I'm crazy
EDIT: Removed 2015: Imageshack replaced all links with spam.
Last edited by Brynet-Inc on Fri Aug 28, 2015 8:40 pm, edited 1 time in total.
-
- Posts: 13
- Joined: Sat Apr 09, 2011 9:28 pm
Re: Can anybody give a simple code for EHCI!
Does nobody known EHCI ? It's simple code don't write out?
Re: Can anybody give a simple code for EHCI!
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.
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!
Not to mention that you are nagging. Most people hate nagging.
JAL
JAL
Re: Can anybody give a simple code for EHCI!
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?
Every good solution is obvious once you've found it.
Re: Can anybody give a simple code for EHCI!
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.
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!
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.There are quite a few people here who have implemented an EHCI controller (I'm not one of them).
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
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
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
Re: Can anybody give a simple code for EHCI!
This topic is several months old..ehenkes wrote: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.There are quite a few people here who have implemented an EHCI controller (I'm not one of them).
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
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!
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.
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.
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
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Can anybody give a simple code for EHCI!
Necromancy bordering on advertising?
Re: Can anybody give a simple code for EHCI!
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.