/* Lookup the EDK II Capsule Update Policy Protocol.  */
BOOLEAN LookupCapsuleUpdatePolicyProtocol(VOID)
/* Lookup the EDK II Capsule Update Policy Protocol.  */
BOOLEAN LookupCapsuleUpdatePolicyProtocol(VOID)
{
  EFI_STATUS  Status;
  if (mCapsuleUpdatePolicy != NULL) {
    return TRUE;
  }
  Status = gBS->LocateProtocol (
                  &gEdkiiCapsuleUpdatePolicyProtocolGuid,
                  NULL,
                  (VOID **)&mCapsuleUpdatePolicy
                  );
  if (EFI_ERROR (Status)) {
    mCapsuleUpdatePolicy = NULL;
    return FALSE;
  }
  return TRUE;
}