Produce all the PciIo & Dpath protocol for all the pci devices under the current host bridge.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4703 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8
2008-02-19 04:17:05 +00:00
parent 23f642e80a
commit eb9a9a5e23
5 changed files with 122 additions and 182 deletions

View File

@@ -52,13 +52,6 @@ Returns:
return PciEnumeratorLight (Controller);
}
//
// If this host bridge has been already enumerated, then return successfully
//
if (RootBridgeExisted (Controller)) {
return EFI_SUCCESS;
}
//
// Get the rootbridge Io protocol to find the host bridge handle
//
@@ -277,7 +270,6 @@ Returns:
{
LIST_ENTRY *CurrentLink;
PCI_IO_DEVICE *Temp;
EFI_STATUS Status;
//
// Go through bridges to reach all devices
@@ -290,7 +282,7 @@ Returns:
//
// Go further to process the option rom under this bridge
//
Status = ProcessOptionRom (Temp, RomBase, MaxLength);
ProcessOptionRom (Temp, RomBase, MaxLength);
}
if (Temp->RomSize != 0 && Temp->RomSize <= MaxLength) {
@@ -298,10 +290,7 @@ Returns:
//
// Load and process the option rom
//
Status = LoadOpRomImage (Temp, RomBase);
if (Status == EFI_SUCCESS) {
Status = ProcessOpRomImage (Temp);
}
LoadOpRomImage (Temp, RomBase);
}
CurrentLink = CurrentLink->ForwardLink;