X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EdkModulePkg%2FBus%2FPci%2FPciBus%2FDxe%2FPciEnumeratorSupport.c;h=3b796a6b42822364e2f2a0e39effba14e4802fa5;hp=ce605cc8131c23c4092046a872e271aabd8b1f60;hb=1cc8ee7861a59532700a6fd1255689576eda0f52;hpb=582510249f2fb1334e507b99421b9485f6b89159 diff --git a/EdkModulePkg/Bus/Pci/PciBus/Dxe/PciEnumeratorSupport.c b/EdkModulePkg/Bus/Pci/PciBus/Dxe/PciEnumeratorSupport.c index ce605cc813..3b796a6b42 100644 --- a/EdkModulePkg/Bus/Pci/PciBus/Dxe/PciEnumeratorSupport.c +++ b/EdkModulePkg/Bus/Pci/PciBus/Dxe/PciEnumeratorSupport.c @@ -969,6 +969,7 @@ Returns: } +STATIC EFI_STATUS ProcessOptionRomLight ( IN PCI_IO_DEVICE *PciIoDevice @@ -1432,7 +1433,6 @@ Returns: // TODO: BarIndex - add argument and description to function comment { UINT32 Value; - UINT64 BarValue64; UINT32 OriginalValue; UINT32 Mask; UINT32 Data; @@ -1441,7 +1441,6 @@ Returns: OriginalValue = 0; Value = 0; - BarValue64 = 0; Status = BarExisted ( PciIoDevice, @@ -1491,7 +1490,7 @@ Returns: // Need to treat it as no-bar // if (PciIoDevice->PciBar[BarIndex].Length == 0) { - PciIoDevice->PciBar[BarIndex].BarType = 0; + PciIoDevice->PciBar[BarIndex].BarType = (PCI_BAR_TYPE) 0; } PciIoDevice->PciBar[BarIndex].Prefetchable = FALSE;