/* Returns the HOB data for the matching HOB GUID. */
EFI_STATUS GetGuidedHobData(IN VOID *HobList, IN CONST EFI_GUID *HobGuid, OUT VOID **HobData)
/* Returns the HOB data for the matching HOB GUID. */
EFI_STATUS GetGuidedHobData(IN VOID *HobList, IN CONST EFI_GUID *HobGuid, OUT VOID **HobData)
{
  EFI_HOB_GUID_TYPE  *Hob;
  if ((HobList == NULL) || (HobGuid == NULL) || (HobData == NULL)) {
    return EFI_INVALID_PARAMETER;
  }
  Hob = GetNextGuidHob (HobGuid, HobList);
  if (Hob == NULL) {
    return EFI_NOT_FOUND;
  }
  *HobData = GET_GUID_HOB_DATA (Hob);
  if (*HobData == NULL) {
    return EFI_NOT_FOUND;
  }
  return EFI_SUCCESS;
}