mirror of https://github.com/acidanthera/audk.git
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:
parent
db9d722df1
commit
96d1b1722e
|
@ -356,6 +356,20 @@ Returns:
|
||||||
PciIoDevice->PciIo.RomSize = PlatformOpRomSize;
|
PciIoDevice->PciIo.RomSize = PlatformOpRomSize;
|
||||||
PciIoDevice->PciIo.RomImage = PlatformOpRomBuffer;
|
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
|
// Process Image
|
||||||
//
|
//
|
||||||
|
|
|
@ -284,6 +284,10 @@ Returns:
|
||||||
PciDevice->PciIo.RomSize = RomImageSize;
|
PciDevice->PciIo.RomSize = RomImageSize;
|
||||||
PciDevice->PciIo.RomImage = RomInMemory;
|
PciDevice->PciIo.RomImage = RomInMemory;
|
||||||
|
|
||||||
|
//
|
||||||
|
// For OpROM read from PCI device:
|
||||||
|
// Add the Rom Image to internal database for later PCI light enumeration
|
||||||
|
//
|
||||||
PciRomAddImageMapping (
|
PciRomAddImageMapping (
|
||||||
NULL,
|
NULL,
|
||||||
PciDevice->PciRootBridgeIo->SegmentNumber,
|
PciDevice->PciRootBridgeIo->SegmentNumber,
|
||||||
|
|
Loading…
Reference in New Issue