/* Return total number of SCMI protocols supported by the SCP firmware. */
STATIC EFI_STATUS BaseGetTotalProtocols(IN SCMI_BASE_PROTOCOL *This, OUT UINT32 *TotalProtocols)
/* Return total number of SCMI protocols supported by the SCP firmware. */
STATIC EFI_STATUS BaseGetTotalProtocols(IN SCMI_BASE_PROTOCOL *This, OUT UINT32 *TotalProtocols)
{
  EFI_STATUS  Status;
  UINT32      *ReturnValues;
  Status = ScmiGetProtocolAttributes (ScmiProtocolIdBase, &ReturnValues);
  if (EFI_ERROR (Status)) {
    return Status;
  }
  *TotalProtocols = SCMI_TOTAL_PROTOCOLS (ReturnValues[0]);
  return EFI_SUCCESS;
}