EHCI real mode driver PORTSC issue

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
Jonatan44
Posts: 24
Joined: Fri Sep 11, 2009 1:22 am

EHCI real mode driver PORTSC issue

Post by Jonatan44 »

hi everyone,
I'm working on ehci driver for real mode platform, when i look for connected devices the default value of the disconnected port (portsc[n]) is 0x1000 instead of 0x2000 or 0x3000 as specified in ehci specs, what can cause the portsc[n] to change it's default value?

thanks!
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Re: EHCI real mode driver PORTSC issue

Post by jal »

Jonatan44 wrote:I'm working on ehci driver for real mode platform, when i look for connected devices the default value of the disconnected port (portsc[n]) is 0x1000 instead of 0x2000 or 0x3000 as specified in ehci specs, what can cause the portsc[n] to change it's default value?
BIOS?


JAL
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Re: EHCI real mode driver PORTSC issue

Post by pcmattman »

You should do a BIOS handoff and then an EHCI reset before reading any of the port status registers. After a proper handoff/reset you should see the proper "default value" for ports.

Also note that on some controllers you need to power up the port before it reports anything useful such as device presence or the enabled state.
Post Reply