]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/EhciDxe: factor out EhcIsDebugPortInUse()
authorLaszlo Ersek <lersek@redhat.com>
Wed, 5 Sep 2018 17:06:19 +0000 (19:06 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 6 Sep 2018 12:07:50 +0000 (14:07 +0200)
commitb48ec0e8ab1c881ea584ed76d2da0bac09db38ef
treeb4093023fd9d7ebf8e74ac290a0f18da676b6a01
parent22cf747fcf75dbfe51e5524ce1f9cf17b19914cd
MdeModulePkg/EhciDxe: factor out EhcIsDebugPortInUse()

The EhcReset(), EhcGetRootHubPortStatus() and EhcDriverBindingStart()
functions need to see whether the host controller (or a specific port on
the host controller) can be accessed, dependent on the controller having
(or the specific port being) an in-use debug port. Because the condition
isn't simple, extract it to a separate function.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Suggested-by: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c
MdeModulePkg/Bus/Pci/EhciDxe/Ehci.h
MdeModulePkg/Bus/Pci/EhciDxe/EhciReg.c
MdeModulePkg/Bus/Pci/EhciDxe/EhciReg.h