/* Return if this FMP is a system FMP or a device FMP, based upon FmpImageInfo. */
BOOLEAN IsSystemFmpImage(IN EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER *FmpImageHeader)
/* Return if this FMP is a system FMP or a device FMP, based upon FmpImageInfo. */
BOOLEAN IsSystemFmpImage(IN EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER *FmpImageHeader)
{
  GUID   *Guid;
  UINTN  Count;
  UINTN  Index;
  Guid  = PcdGetPtr (PcdSystemFmpCapsuleImageTypeIdGuid);
  Count = PcdGetSize (PcdSystemFmpCapsuleImageTypeIdGuid) / sizeof (GUID);
  for (Index = 0; Index < Count; Index++, Guid++) {
    if (CompareGuid (&FmpImageHeader->UpdateImageTypeId, Guid)) {
      return TRUE;
    }
  }
  return FALSE;
}