Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A149C433EF for ; Tue, 26 Oct 2021 03:36:41 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B15CB60E0B for ; Tue, 26 Oct 2021 03:36:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B15CB60E0B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 099588364D; Tue, 26 Oct 2021 05:34:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="nzfMNcce"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 33AAE83576; Tue, 26 Oct 2021 05:31:57 +0200 (CEST) Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) (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 715C083582 for ; Tue, 26 Oct 2021 05:31:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd2e.google.com with SMTP id z69so18333794iof.9 for ; Mon, 25 Oct 2021 20:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8pyQXJny+T14VqWdAg3UXMX0QKTrbCeFoEShG1zBI7o=; b=nzfMNcceM1fF0KwN6SxibTwt6CfKiOPXPhQl4pLKjX0J0ltRY9r1TVZ12mjflNdSOG eBFib7uw6rb/cc753tDMVgyMFjRZrRSi99wiYgJfRfc0F99xaGfj886/iEO1l3anBMpx RdNbOzahA9EhmBC5+oIheM8WQTTvg4PkLyHgs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8pyQXJny+T14VqWdAg3UXMX0QKTrbCeFoEShG1zBI7o=; b=KyeTxtJEc5pFaoxem1/C5H3xWW9UU7xq8DNIFwP9RiG4EzXhn0855Iqb/fokxg+9gi oQ6hAJnEr+B2ZrDorVS5ymIUlx8WDx6yOCEg+Y1S5530gpAkgYrN5PzjZY8/sBpP0hFa yRUUnMUTIi71InEp8re7Is6q9LnB7h7U/VylgbZ2a1mOgVIdE+1yUTiiVXyFkZvY47c5 G07glhqf5QmNLqWEgfTHxDGYB7uUV2qZgtP8nRx0Yx4Ih+b0hPGjH9AB94yhS9YWsegm wPSQlvPbSP1soqvEHdFRr4VSP7CxnJ05Hq/OiAWo/NjIhgh9EC8yUyN954YwZlDSivRl eavw== X-Gm-Message-State: AOAM532NqqbXB6rkd1DEkzgWbEqbDd51bM6tAPGL25audlt4mGc9wC/x 32jurZT8/VAcV7/dmHt4M5jFCDflQBgITw== X-Google-Smtp-Source: ABdhPJx4jnzzzYstWX8pK7Lw+rs2XDreL8EPwYvpghmSVGPO1bFG7wCGubBMicOSSGvKfUFyD8hv6A== X-Received: by 2002:a5d:9918:: with SMTP id x24mr8656581iol.51.1635219093046; Mon, 25 Oct 2021 20:31:33 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id s10sm10127203ild.78.2021.10.25.20.31.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Oct 2021 20:31:32 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Ilias Apalodimas , Christian Melki , Bin Meng , Tom Rini , Heinrich Schuchardt , Simon Glass , Alexander Graf Subject: [PATCH v3 30/35] efi: Mention that efi_info_get() is only used in the stub Date: Mon, 25 Oct 2021 21:30:53 -0600 Message-Id: <20211026033058.430010-19-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.1079.g6e70778dc9-goog In-Reply-To: <20211026033058.430010-1-sjg@chromium.org> References: <20211026033058.430010-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.103.2 at phobos.denx.de X-Virus-Status: Clean This provides access to EFI tables after U-Boot has exited boot services. It is not needed in the app since boot services remain alive and we can just call them whenever needed. Add a comment to explain this. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Fix 'as' typo include/efi.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/efi.h b/include/efi.h index ed28c204140..69321cc5cc4 100644 --- a/include/efi.h +++ b/include/efi.h @@ -578,6 +578,10 @@ void efi_putc(struct efi_priv *priv, const char ch); /** * efi_info_get() - get an entry from an EFI table * + * This is called from U-Boot proper to read information set up by the EFI stub. + * It can only be used when running from the EFI stuff, not when U-Boot is + * running as an app. + * * @type: Entry type to search for * @datap: Returns pointer to entry data * @sizep: Returns pointer to entry size -- 2.33.0.1079.g6e70778dc9-goog