MdeModulePkg/PciBus: Change PCI_IO_DEVICE.RomSize to UINT32 type
Per PCI Spec, the option ROM BAR is 32bit so the maximum option ROM size can be hold by UINT32 type. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ray Ni <ray.ni@intel.com> Reviewed-by: Hao Wu <hao.a.wu@intel.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Supporting functions implementaion for PCI devices management.
|
||||
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
|
||||
(C) Copyright 2018 Hewlett Packard Enterprise Development LP<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -259,7 +259,7 @@ RegisterPciDevice (
|
||||
);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
PciIoDevice->EmbeddedRom = FALSE;
|
||||
PciIoDevice->RomSize = PlatformOpRomSize;
|
||||
PciIoDevice->RomSize = (UINT32) PlatformOpRomSize;
|
||||
PciIoDevice->PciIo.RomSize = PlatformOpRomSize;
|
||||
PciIoDevice->PciIo.RomImage = PlatformOpRomBuffer;
|
||||
//
|
||||
@@ -285,7 +285,7 @@ RegisterPciDevice (
|
||||
);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
PciIoDevice->EmbeddedRom = FALSE;
|
||||
PciIoDevice->RomSize = PlatformOpRomSize;
|
||||
PciIoDevice->RomSize = (UINT32) PlatformOpRomSize;
|
||||
PciIoDevice->PciIo.RomSize = PlatformOpRomSize;
|
||||
PciIoDevice->PciIo.RomImage = PlatformOpRomBuffer;
|
||||
//
|
||||
|
Reference in New Issue
Block a user