/* Read the config space of a given PCI device (both normal and extended). */
STATIC RETURN_STATUS EFIAPI ProtoDevReadConfig(IN PCI_CAP_DEV *PciDevice, IN UINT16 SourceOffset, OUT VOID *DestinationBuffer, IN UINT16 Size)
/* Read the config space of a given PCI device (both normal and extended). */
STATIC RETURN_STATUS EFIAPI ProtoDevReadConfig(IN PCI_CAP_DEV *PciDevice, IN UINT16 SourceOffset, OUT VOID *DestinationBuffer, IN UINT16 Size)
{
  PROTO_DEV  *ProtoDev;
  ProtoDev = PROTO_DEV_FROM_PCI_CAP_DEV (PciDevice);
  return ProtoDevTransferConfig (
           ProtoDev->PciIo,
           ProtoDev->PciIo->Pci.Read,
           SourceOffset,
           DestinationBuffer,
           Size
           );
}