Page 1 of 1

EHCI real mode driver PORTSC issue

Posted: Wed Sep 22, 2010 4:22 am
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!

Re: EHCI real mode driver PORTSC issue

Posted: Wed Sep 22, 2010 8:49 am
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

Re: EHCI real mode driver PORTSC issue

Posted: Wed Sep 22, 2010 8:09 pm
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.