From mboxrd@z Thu Jan 1 00:00:00 1970 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 8F5C6C433F5 for ; Sat, 4 Dec 2021 16:00:19 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0C703834AC; Sat, 4 Dec 2021 16:58:55 +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="G1sjju1u"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 88579830E0; Sat, 4 Dec 2021 16:57:51 +0100 (CET) Received: from mail-oo1-xc29.google.com (mail-oo1-xc29.google.com [IPv6:2607:f8b0:4864:20::c29]) (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 69DC6830D9 for ; Sat, 4 Dec 2021 16:57:30 +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-oo1-xc29.google.com with SMTP id a11-20020a4ad1cb000000b002c2657270a0so3026814oos.8 for ; Sat, 04 Dec 2021 07:57:30 -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=NMqPRCAorFVVcX6D7TVdM1zO1wnH5FNJpBC6Vu+iFe4=; b=G1sjju1uxv0wruDl+I5ZpZdCpkYv3gR+S3g/1ENDl/R4BIgyAGKGVwDo8DuRBvkaFq /4UYxX4/1WLDZaPJtQouwhWT1Q8FNW7IgKce2Fj+VNhCWC+QUNlpZzm+fhgrxBrTMrOf TLd88sh9AUlXvSPmkO4H9gPgOLOAVaeMrlUfo= 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=NMqPRCAorFVVcX6D7TVdM1zO1wnH5FNJpBC6Vu+iFe4=; b=Hhvm4xWY9jDUdOWJtrQjd6L3S4f9HdZOX00lMhAUCucNNSe5UjRR2bFWEeJnd4N5gG wXz/UGWdOWZWEzBRyAiPY6qvwZ14KHlvcIGwQtNrEpMXyaL5IGodzmwjq3dwkDt4uVrb TvBtMIqyIKIasWJ15VSuktUO4zO3kPbim1Qwp46VHmSxqIyFSYANsQVLjitsMup8VL4O QIrb890uw+2wxrPjNrk0HIRWlYihMx+NEl0UrboD1P/4voSS97T16+bmoc+jNxPLSbSP 4r1oYAzLXS+AkXMtTcxjS+RS3zrvXBXstdVBZCMNggL5JNh5+NWVr2rDV/rYYmKwgb0A eqgg== X-Gm-Message-State: AOAM5317T6XO0UH/9pkBDKsxQKTIeqDs2/LHZ5BuK9q1Qa6ZrhSfQKZa h2psfaVrnOuMvSSf3C8cWj8B62jYKddoxQ== X-Google-Smtp-Source: ABdhPJw4k0BB0zFOFc0Dnbcgh5+KSWfOBpt8u9xlK8lSADuPFsbbscb9ia1xHV6NU4czhiM8H+MOEA== X-Received: by 2002:a4a:d319:: with SMTP id g25mr16950950oos.21.1638633448618; Sat, 04 Dec 2021 07:57:28 -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 a12sm1230513otk.35.2021.12.04.07.57.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Dec 2021 07:57:28 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Ilias Apalodimas , Christian Melki , Bin Meng , Heinrich Schuchardt , Tom Rini , Simon Glass , Alexander Graf Subject: [PATCH v5 17/28] efi: Mention that efi_info_get() is only used in the stub Date: Sat, 4 Dec 2021 08:56:46 -0700 Message-Id: <20211204155657.2913911-14-sjg@chromium.org> X-Mailer: git-send-email 2.34.1.400.ga245620fadb-goog In-Reply-To: <20211204155657.2913911-1-sjg@chromium.org> References: <20211204155657.2913911-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- (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.34.1.400.ga245620fadb-goog