From patchwork Tue Mar 17 02:12:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 1255986 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=hbfbzV2F; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48hGsP163Gz9sPF for ; Tue, 17 Mar 2020 13:12:40 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9B3C181927; Tue, 17 Mar 2020 03:12:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="hbfbzV2F"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0F9B581918; Tue, 17 Mar 2020 03:12:23 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D41B5818F8 for ; Tue, 17 Mar 2020 03:12:17 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=takahiro.akashi@linaro.org Received: by mail-pf1-x431.google.com with SMTP id z65so11027874pfz.8 for ; Mon, 16 Mar 2020 19:12:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yU/G8hRMmXDduue7vbj2dYNhX/7crrp0sSZbdpIaCHg=; b=hbfbzV2FJUp5jQkoBp7IZWmYzescUhciWLxdR79R3U0ZD9R910OYXte9ndOR0TWpBB 8PrT90j3hp5AAN5jIX96KWmLnYOv68ntq7z3OyqBKo4WYh/zlmUoP3SjGnqGOLQqODRx ihyqiYSCNctlsZLCPt1IGpTpO091LSeyDsyZ+fbMoHdR5wqF6+R3qOpwHfoOuyyyJARh fgN3Z36et13yzMFe9Gd03ciWwOctENP+9H2Zs5BF9ANfeJI+Bb7E4dEZXigR/vPDQbzs 9Syvotjwk5phutJ5JF8piThI1sqVJiCpuHB1mB/F7r3ps0+IgsdCf6IZugGPKkKsCxng hxWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yU/G8hRMmXDduue7vbj2dYNhX/7crrp0sSZbdpIaCHg=; b=Ca4oIyf7vpbEmMPekh6kJnHmOA0NDnEvDvbJopQhTsxcJvmiDsSHk1AjKqKp3GKfVC VXVJnLzi2FUV0P0JviRxnWsRduugLgOE9Nsh11nF9hQ71u2/6TiQ8zAGzowSMwYgniDv 9zIE3Of0VPRp9JWjTGKrZOcD+VVl4by3Xpg4oE3MxjqrMdvBZRQ1QSX23LSVFwDiwya4 lc1sW1rIzGsKUhbQmu/yiOkzsdDzsZsf420jhiFm8Bl2ada+PWQY3wUzAkFqNIRpvc8c kuK/HucKg4itmlB/qIt9UO/HiSgIKzk1xiEknt+XpZay3bpoC6l00B7t3uBd0ZgajoTi oDiA== X-Gm-Message-State: ANhLgQ1uzhTURaM3KnqhJrxO9poUwnAHLhhbnGiw/TLiaTbLQ1pnvHMM RVLaDGL9mGqmb7DoRWcmJlhVIw== X-Google-Smtp-Source: ADFU+vsB8gvi0/wK+/vjRfstWkh9vcMqpj9AJ3WMXRaieVt/KRrppf9YVitaG5IYAKMbQu4niAXjqQ== X-Received: by 2002:a62:3786:: with SMTP id e128mr2810994pfa.124.1584411136328; Mon, 16 Mar 2020 19:12:16 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id s19sm1067243pfh.218.2020.03.16.19.12.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Mar 2020 19:12:15 -0700 (PDT) From: AKASHI Takahiro To: xypron.glpk@gmx.de, agraf@csgraf.de Cc: ilias.apalodimas@linaro.org, sughosh.ganu@linaro.org, u-boot@lists.denx.de Subject: [RFC 01/14] efi_loader: define OsIndicationsSupported flags Date: Tue, 17 Mar 2020 11:12:34 +0900 Message-Id: <20200317021247.5849-2-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200317021247.5849-1-takahiro.akashi@linaro.org> References: <20200317021247.5849-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean These flags are expected to be set in OsIndicationsSupported variable if corresponding features are supported. See UEFI specification, section 8.5.4. In particular, capsule-related flags will be used in my capsule update patch. Signed-off-by: AKASHI Takahiro Reviewed-by: Heinrich Schuchardt --- include/efi_api.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/efi_api.h b/include/efi_api.h index 22396172e15f..73c0722b0168 100644 --- a/include/efi_api.h +++ b/include/efi_api.h @@ -57,6 +57,17 @@ typedef u16 efi_form_id_t; struct efi_event; +/* OsIndicationsSupported flags */ +#define EFI_OS_INDICATIONS_BOOT_TO_RW_UI 0x0000000000000001 +#define EFI_OS_INDICATIONS_TIMESTAMP_REVOCATION 0x0000000000000002 +#define EFI_OS_INDICATIONS_FILE_CAPSULE_DELIVERY_SUPPORTED \ + 0x0000000000000004 +#define EFI_OS_INDICATIONS_FMP_CAPSULE_SUPPORTED 0x0000000000000008 +#define EFI_OS_INDICATIONS_CAPSULE_RESULT_VAR_SUPPORTED 0x0000000000000010 +#define EFI_OS_INDICATIONS_START_OS_RECOVERY 0x0000000000000020 +#define EFI_OS_INDICATIONS_START_PLATFORM_RECOVERY 0x0000000000000040 +#define EFI_OS_INDICATIONS_JSON_CONFIG_DATA_REFRESH 0x0000000000000080 + /* EFI Boot Services table */ #define EFI_BOOT_SERVICES_SIGNATURE 0x56524553544f4f42 struct efi_boot_services {