From patchwork Fri Dec 17 19:40:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1570318 X-Patchwork-Delegate: xypron.glpk@gmx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=B72uzNFL; dkim-atps=neutral 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=) 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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4JFztl2ZXCz9sXM for ; Sat, 18 Dec 2021 06:43:43 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 92ABB837AA; Fri, 17 Dec 2021 20:42:34 +0100 (CET) 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="B72uzNFL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AD2D583791; Fri, 17 Dec 2021 20:41:44 +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.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) (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 E0B0C83769 for ; Fri, 17 Dec 2021 20:41:33 +0100 (CET) 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-xd2b.google.com with SMTP id y16so4470594ioc.8 for ; Fri, 17 Dec 2021 11:41:33 -0800 (PST) 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=fg6TOFn3WtGjWU0rRrYvcQQAgxvXTL+4yvXvrzWhr8M=; b=B72uzNFLe0aK0FLIDS5v/KkiMWiYZMtazTnu3EHtz+CL5WGLMPk4M3Dk6TcRkamNA+ UjZwhnnJrScK1UHXVOnb5iCnCXJrskbzIyYmXw00J05CzjvcvYIRLGmXDpcIgpG9trox AR+HU9fWkR7c1D7lcbs2oYZObcqtXxBiNOLEE= 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=fg6TOFn3WtGjWU0rRrYvcQQAgxvXTL+4yvXvrzWhr8M=; b=V2cYlD8uqA/cHYZnzzsQCVw43q72JdBO6ORphkfB+pyWBj0wHSxJbu+PlEVwpfv2S9 fBTfJxYoH7rzfnHXPTkTBxO0R6AJr5G9Wf2l6nKgK8gBasooNDPpB50VB9XAs1H3mQFF X9t4EvlKDDKgV7o6sZCZtLDEqSlkad/YzbHBW14lKgvg9uZIuX9v+Vv+Uq1asexsDbuC 7sfWpgDm7idSx5/WZ0g5pCH+kpvL16Mr4Of2Lw+nKOVCJdn0bxNLZuqTEBNZNwYFBMSY jltSay+IEbBpO79TiYCIDdpth1Oyn5WU2LFWN3ugsGDZPZr2/dylv00ie9suIMc5OigB qmwg== X-Gm-Message-State: AOAM533Nd0CG7lgM+LJQ/KoP/p5RSFPVDDvLlVlTs7UrNtSzzl43G2j8 NZFl/aoFumTLtPyek0+VxRYRn3f+GXdxnQ== X-Google-Smtp-Source: ABdhPJxmUYBSiePlVewwV6dxUp0jz0Jn0N2LQQ9Sqd5eOfimwbppap/Un+SXJamyBkoAy2HSWgYzVg== X-Received: by 2002:a5d:8244:: with SMTP id n4mr2513537ioo.27.1639770092376; Fri, 17 Dec 2021 11:41:32 -0800 (PST) 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 w19sm6079605iov.12.2021.12.17.11.41.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Dec 2021 11:41:32 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Bin Meng , Heinrich Schuchardt , Tom Rini , Ilias Apalodimas , Christian Melki , Simon Glass , Alexander Graf Subject: [PATCH v6 16/27] efi: Mention that efi_info_get() is only used in the stub Date: Fri, 17 Dec 2021 12:40:48 -0700 Message-Id: <20211217194059.858580-13-sjg@chromium.org> X-Mailer: git-send-email 2.34.1.173.g76aa8bc2d0-goog In-Reply-To: <20211217194059.858580-1-sjg@chromium.org> References: <20211217194059.858580-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 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 --- Changes in v6: - Fix 'stuff' typo in comment - Update to 'This function' in comment 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 ca4afaf524b..0aa07193640 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 function 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 stub, 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