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 38F9EC433F5 for ; Thu, 4 Nov 2021 03:16:49 +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 B64DA60F56 for ; Thu, 4 Nov 2021 03:16:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B64DA60F56 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 6A89C8366F; Thu, 4 Nov 2021 04:16: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=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="HABLD6J3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C33EC836B6; Thu, 4 Nov 2021 04:16:26 +0100 (CET) Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) (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 B4CC7836A4 for ; Thu, 4 Nov 2021 04:10:15 +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-oi1-x22c.google.com with SMTP id bk26so5729017oib.11 for ; Wed, 03 Nov 2021 20:10:15 -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=PbUMQYhSUx/adfGA8brR/Y8wvqfW+FnaB7wLeDkglM0=; b=HABLD6J3ozWZ4lmxOugtWizv/m6j9W2/ydHG662cEfySud5V00bgImF+RJmkyN/7pw kR6x377EG29rjwQSHPDvpamHghvuCuAf5RU/fOQOi9TZzvzkruHaHXNaLFpxa+HQEIYr 7ILYaV7zT5VIBCzoxQjcDBgPqgwzDmWdHYlyM= 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=PbUMQYhSUx/adfGA8brR/Y8wvqfW+FnaB7wLeDkglM0=; b=uzoSQxJdXZ0DAF4rKgewX8DS9CbOSelb2ScvChFzIIPNHYqm8s0LpjMnfKr5SZvB4m qgcmhLeMSSHsTRRF/oaN02R4+azje3z2q7gisJ5Yxa3te7tCwcdDY5IwKgCdVsNiOT5b cNsTTI0I/jahg2wmTyrSlSdPyO+67pvstByVF1aT5cR1izeYFqGgXZjMkiuRiYip5Y2C zl1mBwJYVtWiRQsB7tiXVm3yJCMJp91CqHAUaQ4htd78S/1zDsk5JdNxeYdR+LkRxTzp bowfbco7ssinwWScRo+F2998/WVeSrIso6oXZuz+cLKFKpbA+D/rDG/1IVG84WWW6iCA Rtsw== X-Gm-Message-State: AOAM532mH+hCm6HxGd1TxxQTVR+IPHn8D+tZRjty5aP1u2TgauoPPSFx ox8UsU0Ua38audKZrWRRaxHp5noNtNJddA== X-Google-Smtp-Source: ABdhPJyhXeBiHHEufcOKg8dZc0GhILjcX6+Vbszt3ZvsCqgWOA1Kk1KmMyHNbq6QJ/nK81aaP1XJPg== X-Received: by 2002:aca:3455:: with SMTP id b82mr14599635oia.102.1635995414292; Wed, 03 Nov 2021 20:10:14 -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 j25sm1050197oos.23.2021.11.03.20.10.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Nov 2021 20:10:14 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Ilias Apalodimas , Tom Rini , Christian Melki , Heinrich Schuchardt , Bin Meng , Simon Glass , Alexander Graf Subject: [PATCH v4 29/34] efi: Mention that efi_info_get() is only used in the stub Date: Wed, 3 Nov 2021 21:09:31 -0600 Message-Id: <20211104030936.2446706-19-sjg@chromium.org> X-Mailer: git-send-email 2.34.0.rc0.344.g81b53c2807-goog In-Reply-To: <20211104030936.2446706-1-sjg@chromium.org> References: <20211104030936.2446706-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.34.0.rc0.344.g81b53c2807-goog