History log of /device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
26cd2d6d2d1154cfda891085ad34905c69ff62ce 19-Aug-2015 Feng Tian <feng.tian@intel.com> MdeModulePkg/Xhci: make all timeout values be consistent with comments.

In the original code, there exists some mismatches between the real
waiting time and the corresponding timeout comments. For example, the
XHC_GENERIC_TIMEOUT comment says it's 10ms timeout value, but the real
code in fact waits 10s.

So the code is refined to be consistent in code logic and comments.

Note XHC_POLL_DELAY macro also be removed and the polling interval in
XhcWaitOpRegBit() is changed from 1ms to 1us to keep same code style
with other code. It has no real functionality impact.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18235 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c
b8b5ff5acd0d292bcd804e589d28677af5098573 25-Dec-2013 Elvin Li <elvin.li@intel.com> Update XhcWaitOpRegBit to take Timout argument as microsecond.

Signed-off-by: Elvin Li <elvin.li@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15020 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c
74b04490da9dcb90de61e31db51b8e137f9e6e3d 15-Oct-2013 Sergey Isakov <isakov-sl@bk.ru> MdeModulePkg/XhciDxe: Usb legacy support feature is optional. For those usb 3.0 devices which doesn’t support this feature, should directly return and not touch corresponding registers

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
Signed-off-by: Tian, Feng <feng.tian@intel.com>
Reviewed-by: Li, Elvin <elvin.li@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14776 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c
5bcb62a4098c9bde9be6af0833a025adc768e08d 09-Oct-2013 Elvin Li <elvin.li@intel.com> Just like EhciDxe, do not reset host controller when debug capability is enabled in XhciDxe driver.

Signed-off-by: Elvin Li <elvin.li@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14760 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c
6b4483cdbdcf5e74ee61b025116f86c4e15a4793 25-Nov-2011 erictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524> MdeModulePkg: The patch eliminates two assumptions
1) XHCI host controller hw always provides more than 5 interrupters.
Now using interrupter 0 to accommodate all received events.
2) XHCI host controller hw always provides 32bytes context size.
Now it dynamically detect context size and construct it.

also solved several issues:
1) Divides 64byte width register access to two 32bit registers access because some XHCI chipsets cannot support a single 64bit access.
2) Remove halt host controller statement in UsbBusDriverBindingStop(). It has been done by host controller’s DriverBindingStop(). And XhciDriverBindingStop() need XHCI host controller is in running state because it need execute DISABLE_SLOT cmd to release h/w resource.

signed-off-by: erictian
Reviewed-by: li-elvin

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12785 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c
a9292c1363437b081ea72fd8f3b2ed075e2a7ef3 14-Sep-2011 erictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524> 1) remove wrong global variable usage because it will bring data corrupt if there are multiple XHCI host controllers.
2) coding style clean up.

Signed-off-by: erictian
Reviewed-by: ydong10
Reviewed-by: jshi19

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12351 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c
ce9b590040986cad621a744bf595df400e378134 25-Aug-2011 erictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524> Fixed build error reported by ICC and GCC

Signed-off-by: erictian
Reviewed-by: li-elvin


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12209 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c
92870c983c6d99d31f449d8dcd729090255dda49 23-Aug-2011 erictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524> Enabling usb3.0 XHCI support.

Signed-off-by: erictian
Reviewed-by: jshi19

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12185 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/XhciReg.c