diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2017-10-26 15:54:30 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2017-10-31 11:11:03 +0800 |
commit | 221c8fd512eda0f6b9c9d5409cc3a9df05ba8c92 (patch) | |
tree | dcbc3e06f8cd691aee6c9d4a95dfdd12b918132f /MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c | |
parent | af807bb98682d0b11dc37188d80fb70687ae2512 (diff) | |
download | edk2-221c8fd512eda0f6b9c9d5409cc3a9df05ba8c92.tar.gz edk2-221c8fd512eda0f6b9c9d5409cc3a9df05ba8c92.tar.bz2 edk2-221c8fd512eda0f6b9c9d5409cc3a9df05ba8c92.zip |
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>
Diffstat (limited to 'MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c')
-rw-r--r-- | MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c index 3713c07844..4382d79c2d 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c @@ -551,7 +551,7 @@ LoadOpRomImage ( PciDevice->BusNumber,
PciDevice->DeviceNumber,
PciDevice->FunctionNumber,
- (UINT64) (UINTN) PciDevice->PciIo.RomImage,
+ PciDevice->PciIo.RomImage,
PciDevice->PciIo.RomSize
);
@@ -766,7 +766,7 @@ ProcessOpRomImage ( PciDevice->BusNumber,
PciDevice->DeviceNumber,
PciDevice->FunctionNumber,
- (UINT64) (UINTN) PciDevice->PciIo.RomImage,
+ PciDevice->PciIo.RomImage,
PciDevice->PciIo.RomSize
);
RetStatus = EFI_SUCCESS;
|