Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Sun Rui <rui.sun@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13241
6f19259b-4bc3-4df7-8a09-
765794883524
This way avoids the control transfer on a shared port between EHCI and companion host\r
controller when UHCI gets attached earlier than EHCI and a USB 2.0 device inserts.\r
\r
This way avoids the control transfer on a shared port between EHCI and companion host\r
controller when UHCI gets attached earlier than EHCI and a USB 2.0 device inserts.\r
\r
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
}\r
\r
Ehc->DebugPortOffset = DebugPort & 0x1FFF;\r
}\r
\r
Ehc->DebugPortOffset = DebugPort & 0x1FFF;\r
- Ehc->DebugPortBarNum = (DebugPort >> 13) - 1;\r
+ Ehc->DebugPortBarNum = (UINT8)((DebugPort >> 13) - 1);\r
Ehc->DebugPortNum = (UINT8)((Ehc->HcStructParams & 0x00F00000) >> 20);\r
\r
return EFI_SUCCESS;\r
Ehc->DebugPortNum = (UINT8)((Ehc->HcStructParams & 0x00F00000) >> 20);\r
\r
return EFI_SUCCESS;\r