]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/PciBusNoEnumerationDxe/PciOptionRomSupport.c
Adding some new libraries to experiment with size reduction. Trying not to duplicate...
[mirror_edk2.git] / DuetPkg / PciBusNoEnumerationDxe / PciOptionRomSupport.c
index 02815c76d38d3f0462afdf8793f9c6dd76a56266..064b634806ad97aa558d4454ede0d527db370604 100644 (file)
@@ -68,7 +68,7 @@ Returns:
   //\r
   // 0x30\r
   //\r
-  RomBarIndex = PCI_DEVICE_ROMBAR;\r
+  RomBarIndex = PCI_EXPANSION_ROM_BASE;\r
 \r
   if (IS_PCI_BRIDGE (&PciIoDevice->Pci)) {\r
     //\r
@@ -148,7 +148,6 @@ Returns:
   UINT16                    OffsetPcir;\r
   UINT32                    RomBarOffset;\r
   UINT32                    RomBar;\r
-  UINT64                    Temp;\r
   EFI_STATUS                retStatus;\r
   BOOLEAN                   FirstCheck;\r
   UINT8                     *Image;\r
@@ -164,7 +163,6 @@ Returns:
   Indicator     = 0;\r
   RomImageSize  = 0;\r
   RomInMemory   = NULL;\r
-  Temp          = 0;\r
   CodeType      = 0xFF;\r
 \r
   //\r
@@ -174,7 +172,7 @@ Returns:
   //\r
   // 0x30\r
   //\r
-  RomBarIndex = PCI_DEVICE_ROMBAR;\r
+  RomBarIndex = PCI_EXPANSION_ROM_BASE;\r
   if (IS_PCI_BRIDGE (&(PciDevice->Pci))) {\r
     //\r
     // if is ppb\r