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