/* Determine if the device can support Fast Back to Back attribute. */
EFI_STATUS GetFastBackToBackSupport(IN PCI_IO_DEVICE *PciIoDevice, IN UINT8 StatusIndex)
/* Determine if the device can support Fast Back to Back attribute. */
EFI_STATUS GetFastBackToBackSupport(IN PCI_IO_DEVICE *PciIoDevice, IN UINT8 StatusIndex)
{
  EFI_PCI_IO_PROTOCOL  *PciIo;
  EFI_STATUS           Status;
  UINT32               StatusRegister;
  PciIo  = &PciIoDevice->PciIo;
  Status = PciIo->Pci.Read (PciIo, EfiPciIoWidthUint16, StatusIndex, 1, &StatusRegister);
  if (EFI_ERROR (Status)) {
    return EFI_UNSUPPORTED;
  }
  if ((StatusRegister & EFI_PCI_FAST_BACK_TO_BACK_CAPABLE) != 0) {
    return EFI_SUCCESS;
  } else {
    return EFI_UNSUPPORTED;
  }
}