]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BeagleBoardPkg/PciEmulation/PciEmulation.c
Moving OMAP 3530 code out of BeagleBoard package into its own package
[mirror_edk2.git] / BeagleBoardPkg / PciEmulation / PciEmulation.c
index dee054197163650a3f3cebae8e545503666ef982..fa44570b4c0453f702e4052c9ba0588b8e159533 100644 (file)
@@ -318,12 +318,7 @@ PciIoUnmap (
     // Make sure we read buffer from uncached memory and not the cache
     //
     gCpu->FlushDataCache (gCpu, Map->HostAddress, Map->NumberOfBytes, EfiCpuFlushTypeInvalidate);
-  } else if (Map->Operation == EfiPciOperationBusMasterCommonBuffer) {
-    //
-    // CPU was using uncached address, so anything in the cached range is bogus
-    //
-    gCpu->FlushDataCache (gCpu, Map->DeviceAddress, Map->NumberOfBytes, EfiCpuFlushTypeInvalidate);   
-  }
+  } 
   
   FreePool (Map);
 
@@ -441,7 +436,6 @@ PciIoAttributes (
   case EfiPciIoAttributeOperationDisable:
     // Since we are not a real PCI device no enable/set or disable operations exist.
     return EFI_SUCCESS;
-    break;
     
   default:
   ASSERT (FALSE);