The PCI host bridge can signal failures in its initialization to

the PCI Bus driver through the function call NotifyPhase().

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14483 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Olivier Martin
2013-07-18 07:21:35 +00:00
committed by niruiyu
parent 591fb3781a
commit ea8d98fa9f
2 changed files with 32 additions and 8 deletions

View File

@@ -82,7 +82,11 @@ PciEnumerator (
//
// Notify the pci bus enumeration is about to begin
//
NotifyPhase (PciResAlloc, EfiPciHostBridgeBeginEnumeration);
Status = NotifyPhase (PciResAlloc, EfiPciHostBridgeBeginEnumeration);
if (EFI_ERROR (Status)) {
return Status;
}
//
// Start the bus allocation phase
@@ -105,7 +109,11 @@ PciEnumerator (
//
// Notify the pci bus enumeration is about to complete
//
NotifyPhase (PciResAlloc, EfiPciHostBridgeEndEnumeration);
Status = NotifyPhase (PciResAlloc, EfiPciHostBridgeEndEnumeration);
if (EFI_ERROR (Status)) {
return Status;
}
//
// Process P2C