summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Bus/Pci/EhciDxe/EhciReg.c
diff options
context:
space:
mode:
authorerictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-28 13:00:58 +0000
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-28 13:00:58 +0000
commit592b87a46de52d69471379cc619b264360f8613b (patch)
tree05eba856721790aa3af8834a7d555eb222222be4 /MdeModulePkg/Bus/Pci/EhciDxe/EhciReg.c
parent1ae301da81823ea3ab401e6b6da5ede8cb43100c (diff)
downloadedk2-platforms-592b87a46de52d69471379cc619b264360f8613b.tar.xz
update Ehci driver to distinct pci memory address and host address
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10121 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Pci/EhciDxe/EhciReg.c')
-rw-r--r--MdeModulePkg/Bus/Pci/EhciDxe/EhciReg.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/MdeModulePkg/Bus/Pci/EhciDxe/EhciReg.c b/MdeModulePkg/Bus/Pci/EhciDxe/EhciReg.c
index 7a533d78e1..0b8187a52d 100644
--- a/MdeModulePkg/Bus/Pci/EhciDxe/EhciReg.c
+++ b/MdeModulePkg/Bus/Pci/EhciDxe/EhciReg.c
@@ -564,7 +564,7 @@ EhcInitHC (
// Allocate the periodic frame and associated memeory
// management facilities if not already done.
//
- if (Ehc->PeriodFrameHost != NULL) {
+ if (Ehc->PeriodFrame != NULL) {
EhcFreeSched (Ehc);
}
@@ -573,24 +573,20 @@ EhcInitHC (
if (EFI_ERROR (Status)) {
return Status;
}
- //
- // 1. Program the CTRLDSSEGMENT register with the high 32 bit addr
- //
- EhcWriteOpReg (Ehc, EHC_CTRLDSSEG_OFFSET, Ehc->High32bitAddr);
//
- // 2. Clear USBINTR to disable all the interrupt. UEFI works by polling
+ // 1. Clear USBINTR to disable all the interrupt. UEFI works by polling
//
EhcWriteOpReg (Ehc, EHC_USBINTR_OFFSET, 0);
//
- // 3. Program periodic frame list, already done in EhcInitSched
- // 4. Start the Host Controller
+ // 2. Program periodic frame list, already done in EhcInitSched
+ // 3. Start the Host Controller
//
EhcSetOpRegBit (Ehc, EHC_USBCMD_OFFSET, USBCMD_RUN);
//
- // 5. Set all ports routing to EHC
+ // 4. Set all ports routing to EHC
//
EhcSetOpRegBit (Ehc, EHC_CONFIG_FLAG_OFFSET, CONFIGFLAG_ROUTE_EHC);