/* Return protocol version from SCP for a given protocol ID. */
EFI_STATUS ScmiGetProtocolVersion(IN SCMI_PROTOCOL_ID ProtocolId, OUT UINT32 *Version)
/* Return protocol version from SCP for a given protocol ID. */
EFI_STATUS ScmiGetProtocolVersion(IN SCMI_PROTOCOL_ID ProtocolId, OUT UINT32 *Version)
{
  EFI_STATUS  Status;
  UINT32      *ProtocolVersion;
  Status = ScmiProtocolDiscoveryCommon (
             ProtocolId,
             ScmiMessageIdProtocolVersion,
             (UINT32 **)&ProtocolVersion
             );
  if (EFI_ERROR (Status)) {
    return Status;
  }
  *Version = *ProtocolVersion;
  return EFI_SUCCESS;
}