Add the Rom Image to internal database for later PCI light enumeration

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4439 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
eric_tian 2007-12-26 08:49:07 +00:00
parent db9d722df1
commit 96d1b1722e
2 changed files with 18 additions and 0 deletions

View File

@ -356,6 +356,20 @@ Returns:
PciIoDevice->PciIo.RomSize = PlatformOpRomSize;
PciIoDevice->PciIo.RomImage = PlatformOpRomBuffer;
//
// For OpROM read from gPciPlatformProtocol:
// Add the Rom Image to internal database for later PCI light enumeration
//
PciRomAddImageMapping (
NULL,
PciIoDevice->PciRootBridgeIo->SegmentNumber,
PciIoDevice->BusNumber,
PciIoDevice->DeviceNumber,
PciIoDevice->FunctionNumber,
(UINT64) (UINTN) PciIoDevice->PciIo.RomImage,
PciIoDevice->PciIo.RomSize
);
//
// Process Image
//

View File

@ -284,6 +284,10 @@ Returns:
PciDevice->PciIo.RomSize = RomImageSize;
PciDevice->PciIo.RomImage = RomInMemory;
//
// For OpROM read from PCI device:
// Add the Rom Image to internal database for later PCI light enumeration
//
PciRomAddImageMapping (
NULL,
PciDevice->PciRootBridgeIo->SegmentNumber,