Home
last modified time | relevance | path

Searched refs:RomHeader (Results 1 – 3 of 3) sorted by relevance

/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/PciBusDxe/
DPciOptionRomSupport.c328 PCI_EXPANSION_ROM_HEADER *RomHeader; in ContainEfiImage() local
333 RomHeader = RomImage; in ContainEfiImage()
334 if (RomHeader == NULL) { in ContainEfiImage()
339 if (RomHeader->Signature != PCI_EXPANSION_ROM_HEADER_SIGNATURE) { in ContainEfiImage()
340 RomHeader = (PCI_EXPANSION_ROM_HEADER *) ((UINT8 *) RomHeader + 512); in ContainEfiImage()
347 if (RomHeader->PcirOffset == 0 || in ContainEfiImage()
348 (RomHeader->PcirOffset & 3) != 0 || in ContainEfiImage()
349 …(UINT8 *) RomHeader + RomHeader->PcirOffset + sizeof (PCI_DATA_STRUCTURE) > (UINT8 *) RomImage + R… in ContainEfiImage()
353 RomPcir = (PCI_DATA_STRUCTURE *) ((UINT8 *) RomHeader + RomHeader->PcirOffset); in ContainEfiImage()
363 RomHeader = (PCI_EXPANSION_ROM_HEADER *) ((UINT8 *) RomHeader + RomPcir->ImageLength * 512); in ContainEfiImage()
[all …]
/device/linaro/bootloader/edk2/DuetPkg/PciBusNoEnumerationDxe/
DPciOptionRomSupport.c154 PCI_EXPANSION_ROM_HEADER *RomHeader; in LoadOpRomImage() local
190 RomHeader = AllocatePool (sizeof (PCI_EXPANSION_ROM_HEADER)); in LoadOpRomImage()
191 if (RomHeader == NULL) { in LoadOpRomImage()
197 gBS->FreePool (RomHeader); in LoadOpRomImage()
219 (UINT8 *) RomHeader in LoadOpRomImage()
222 if (RomHeader->Signature != PCI_EXPANSION_ROM_HEADER_SIGNATURE) { in LoadOpRomImage()
233 OffsetPcir = RomHeader->PcirOffset; in LoadOpRomImage()
261 LegacyImageLength = ((UINT32)((EFI_LEGACY_EXPANSION_ROM_HEADER *)RomHeader)->Size512) * 512; in LoadOpRomImage()
281 gBS->FreePool (RomHeader); in LoadOpRomImage()
307 gBS->FreePool (RomHeader); in LoadOpRomImage()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/
DLegacyPci.c293 EFI_PCI_ROM_HEADER RomHeader; in GetPciLegacyRom() local
305 RomHeader.Raw = *Rom; in GetPciLegacyRom()
306 while (RomHeader.Generic->Signature == PCI_EXPANSION_ROM_HEADER_SIGNATURE) { in GetPciLegacyRom()
307 if (RomHeader.Generic->PcirOffset == 0 || in GetPciLegacyRom()
308 (RomHeader.Generic->PcirOffset & 3) !=0 || in GetPciLegacyRom()
309 …*ImageSize < RomHeader.Raw - (UINT8 *) *Rom + RomHeader.Generic->PcirOffset + sizeof (PCI_DATA_STR… in GetPciLegacyRom()
313 Pcir = (PCI_3_0_DATA_STRUCTURE *) (RomHeader.Raw + RomHeader.Generic->PcirOffset); in GetPciLegacyRom()
321 if ((UINTN)(RomHeader.Raw - (UINT8 *) *Rom) + Pcir->ImageLength * 512 > *ImageSize) { in GetPciLegacyRom()
355 BestImage = RomHeader.Raw; in GetPciLegacyRom()
362 BackupImage = RomHeader.Raw; in GetPciLegacyRom()
[all …]