]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg/LoadPciRom: Fix the ConnectAll() implementation
authorRuiyu Ni <ruiyu.ni@intel.com>
Fri, 22 Jul 2016 02:14:05 +0000 (10:14 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Mon, 25 Jul 2016 02:20:14 +0000 (10:20 +0800)
commitfc41b97f128a0c7f28a9cc250e629a0ad2262ac8
tree486d7fccdaf9a27a9ef13299926a44d2e015a454
parent1b0319535bc751e27846cbf0c4a1eb4d7d690e97
ShellPkg/LoadPciRom: Fix the ConnectAll() implementation

Old implementation depends on UefiHandleParsingLib and uses
incorrect Index to get handle type.
The simplest ConnectAll() implementation can be just to
locate all handles and call BS.ConnectController() for each
of them recursively. BS.ConnectController() does nothing
to the image handle. Such implementation is borrowed from
BDS core implementation.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
ShellPkg/Library/UefiShellDebug1CommandsLib/LoadPciRom.c