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!
EHCI real mode driver PORTSC issue
Re: EHCI real mode driver PORTSC issue
BIOS?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?
JAL
-
- 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
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.
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.