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;
|
BusPadding = FALSE;
|
||||||
if (gPciHotPlugInit != NULL) {
|
if (gPciHotPlugInit != NULL) {
|
||||||
|
|
||||||
if (IsRootPciHotPlugBus (PciDevice->DevicePath, &HpIndex)) {
|
if (IsPciHotPlugBus (PciDevice)) {
|
||||||
|
|
||||||
//
|
//
|
||||||
// If it is initialized, get the padded bus range
|
// If it is initialized, get the padded bus range
|
||||||
//
|
//
|
||||||
Status = gPciHotPlugInit->GetResourcePadding (
|
Status = gPciHotPlugInit->GetResourcePadding (
|
||||||
gPciHotPlugInit,
|
gPciHotPlugInit,
|
||||||
gPciRootHpcPool[HpIndex].HpbDevicePath,
|
PciDevice->DevicePath,
|
||||||
PciAddress,
|
PciAddress,
|
||||||
&State,
|
&State,
|
||||||
(VOID **) &Descriptors,
|
(VOID **) &Descriptors,
|
||||||
|
|
Loading…
Reference in New Issue