/* The function implements the ReadDevice protocol member of VIRTIO_DEVICE_PROTOCOL. */
EFI_STATUS EFIAPI VirtioPciDeviceRead(IN VIRTIO_DEVICE_PROTOCOL *This, IN UINTN FieldOffset, IN UINTN FieldSize, IN UINTN BufferSize, OUT VOID *Buffer)
/* The function implements the ReadDevice protocol member of VIRTIO_DEVICE_PROTOCOL. */
EFI_STATUS EFIAPI VirtioPciDeviceRead(IN VIRTIO_DEVICE_PROTOCOL *This, IN UINTN FieldOffset, IN UINTN FieldSize, IN UINTN BufferSize, OUT VOID *Buffer)
{
  VIRTIO_PCI_DEVICE  *Dev;
  Dev = VIRTIO_PCI_DEVICE_FROM_VIRTIO_DEVICE (This);
  return VirtioPciIoRead (
           Dev,
           Dev->DeviceSpecificConfigurationOffset + FieldOffset,
           FieldSize,
           BufferSize,
           Buffer
           );
}