mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/PciBus: Reserve Bus number for non-root and root HPBs
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=656 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Tested-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
2e94e41297
commit
cbbccf3cf3
|
@ -1125,14 +1125,14 @@ PciScanBus (
|
|||
BusPadding = FALSE;
|
||||
if (gPciHotPlugInit != NULL) {
|
||||
|
||||
if (IsRootPciHotPlugBus (PciDevice->DevicePath, &HpIndex)) {
|
||||
if (IsPciHotPlugBus (PciDevice)) {
|
||||
|
||||
//
|
||||
// If it is initialized, get the padded bus range
|
||||
//
|
||||
Status = gPciHotPlugInit->GetResourcePadding (
|
||||
gPciHotPlugInit,
|
||||
gPciRootHpcPool[HpIndex].HpbDevicePath,
|
||||
PciDevice->DevicePath,
|
||||
PciAddress,
|
||||
&State,
|
||||
(VOID **) &Descriptors,
|
||||
|
|
Loading…
Reference in New Issue