mirror of https://github.com/acidanthera/audk.git
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:
parent
b113ddc3d8
commit
2c46dd239b
|
@ -2464,13 +2464,11 @@ PciFindProtocolInterface (
|
||||||
{
|
{
|
||||||
UINTN Index;
|
UINTN Index;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
BOOLEAN FoundInterface;
|
|
||||||
EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *Descriptors;
|
EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *Descriptors;
|
||||||
UINT16 MinBus;
|
UINT16 MinBus;
|
||||||
UINT16 MaxBus;
|
UINT16 MaxBus;
|
||||||
BOOLEAN IsEnd;
|
BOOLEAN IsEnd;
|
||||||
|
|
||||||
FoundInterface = FALSE;
|
|
||||||
//
|
//
|
||||||
// Go through all handles, until the one meets the criteria is found
|
// Go through all handles, until the one meets the criteria is found
|
||||||
//
|
//
|
||||||
|
@ -2502,17 +2500,12 @@ PciFindProtocolInterface (
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MinBus <= Bus && MaxBus >= Bus) {
|
if (MinBus <= Bus && MaxBus >= Bus) {
|
||||||
FoundInterface = TRUE;
|
return EFI_SUCCESS;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FoundInterface) {
|
return EFI_NOT_FOUND;
|
||||||
return EFI_SUCCESS;
|
|
||||||
} else {
|
|
||||||
return EFI_INVALID_PARAMETER;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue