/* Flushes all PCI posted write transactions from a PCI host bridge to system memory. */
EFI_STATUS EFIAPI PciIoFlush(IN EFI_PCI_IO_PROTOCOL *This)
/* Flushes all PCI posted write transactions from a PCI host bridge to system memory. */
EFI_STATUS EFIAPI PciIoFlush(IN EFI_PCI_IO_PROTOCOL *This)
{
  EFI_STATUS     Status;
  PCI_IO_DEVICE  *PciIoDevice;
  PciIoDevice = PCI_IO_DEVICE_FROM_PCI_IO_THIS (This);
  Status = PciIoDevice->PciRootBridgeIo->Flush (
                                           PciIoDevice->PciRootBridgeIo
                                           );
  if (EFI_ERROR (Status)) {
    REPORT_STATUS_CODE_WITH_DEVICE_PATH (
      EFI_ERROR_CODE | EFI_ERROR_MINOR,
      EFI_IO_BUS_PCI | EFI_IOB_EC_CONTROLLER_ERROR,
      PciIoDevice->DevicePath
      );
  }
  return Status;
}