MdeModulePkg/PciBus: Refine EFI_PCI_ROM_IMAGE_MAPPING
The patch doesn't impact real functionality. It only renames EFI_PCI_ROM_IMAGE_MAPPING to PCI_ROM_IMAGE, and changes prototype of PciRomAddImageMapping so that no explicit type cast is needed when calling this function. It also removes unused field RomBase from PCI_IO_DEVICE structure. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
@ -282,7 +282,7 @@ RegisterPciDevice (
|
||||
PciIoDevice->BusNumber,
|
||||
PciIoDevice->DeviceNumber,
|
||||
PciIoDevice->FunctionNumber,
|
||||
(UINT64) (UINTN) PciIoDevice->PciIo.RomImage,
|
||||
PciIoDevice->PciIo.RomImage,
|
||||
PciIoDevice->PciIo.RomSize
|
||||
);
|
||||
}
|
||||
@ -308,7 +308,7 @@ RegisterPciDevice (
|
||||
PciIoDevice->BusNumber,
|
||||
PciIoDevice->DeviceNumber,
|
||||
PciIoDevice->FunctionNumber,
|
||||
(UINT64) (UINTN) PciIoDevice->PciIo.RomImage,
|
||||
PciIoDevice->PciIo.RomImage,
|
||||
PciIoDevice->PciIo.RomSize
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user