-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hal/ia32: Add platformctls for ehci #625
base: master
Are you sure you want to change the base?
Conversation
275a399
to
436944c
Compare
436944c
to
982afd5
Compare
|
||
if ((osOwned == 0) && ((dv & (1 << 24)) == 0) && ((dv & (1 << 16)) != 0)) { | ||
break; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if ((osOwned == 0) && ((dv & (1 << 24)) == 0) && ((dv & (1 << 16)) != 0)) { | |
break; | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two conditionals are for handling two separate situations: first one is relevant when the OS asks the BIOS for ownership of the USB controller, second one is when the OS wants to relinquish the ownership and return it to the BIOS. These conditions check for the states of "HC BIOS Owned" and "HC OS Owned" semaphores, respectively, to see whether the ownership was obtained/moved as needed. Removing the second case would hang the caller indefinitely if osOwned == 0
All USB UHCI/OHCI/EHCI/XHCI controllers have the same class:subclass 0c:03 and need to be differentiated based on progif (e.g. 0x20 for EHCI) JIRA: RTOS-937
JIRA: RTOS-937
Allows for controlling the state of various pci device configuration registers JIRA: RTOS-937
982afd5
to
0ff94d4
Compare
Setting up EHCI controller on ia32 requires a bit of talking to bios via PCI
JIRA: RTOS-937
Description
Motivation and Context
Types of changes
pctl_busmaster
has been removed. Its functionality is realized bypctl_pcicfg(pci_cfg_busmaster)
How Has This Been Tested?
Checklist:
Special treatment