ShellPkg: update pci enumeration routine for platforms with multiple pci segments.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eugene Cohen eugene@hp.com
reviewed-by: jaben carsey <jaben.carsey@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13524 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jcarsey 2012-07-11 19:08:40 +00:00
parent b113ddc3d8
commit 2c46dd239b
1 changed files with 2 additions and 9 deletions

View File

@ -2464,13 +2464,11 @@ PciFindProtocolInterface (
{
UINTN Index;
EFI_STATUS Status;
BOOLEAN FoundInterface;
EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *Descriptors;
UINT16 MinBus;
UINT16 MaxBus;
BOOLEAN IsEnd;
FoundInterface = FALSE;
//
// Go through all handles, until the one meets the criteria is found
//
@ -2502,17 +2500,12 @@ PciFindProtocolInterface (
}
if (MinBus <= Bus && MaxBus >= Bus) {
FoundInterface = TRUE;
break;
return EFI_SUCCESS;
}
}
}
if (FoundInterface) {
return EFI_SUCCESS;
} else {
return EFI_INVALID_PARAMETER;
}
return EFI_NOT_FOUND;
}
/**