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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC11DC433F5 for ; Sat, 25 Sep 2021 00:39:15 +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 30D466103B for ; Sat, 25 Sep 2021 00:39:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 30D466103B 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 920B583548; Sat, 25 Sep 2021 02:39:06 +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="fFxHUiPM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9EAC0834B5; Sat, 25 Sep 2021 02:32:44 +0200 (CEST) Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) (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 CA8968351C for ; Sat, 25 Sep 2021 02:31:36 +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-oi1-x22f.google.com with SMTP id x124so16821103oix.9 for ; Fri, 24 Sep 2021 17:31:36 -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=xXe01bEUoP8Wj60/dnGCq448aRNIdR/ZNDf4d/GXKmg=; b=fFxHUiPM5w0jls1JzV1VFn0lkVAu1easFaNxa9dKjkApGs/6kAs5MhGrPkKXBvrcB5 0Z79GkFdWPyuIeysiBe13n+Tyu+mkVB0pF1ilPMRq+MBDOlGsg/WSglg1BchASKll4ZF nWKF3SGOQf70rg/9t62K/XSywK5PUcKnLGxQM= 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=xXe01bEUoP8Wj60/dnGCq448aRNIdR/ZNDf4d/GXKmg=; b=uvDJR1VStvthXSF8CZPRY2ERAVwn+5GqsfTxj5gAtcQ2Kkb6nHPmgj9yzcFG+h9qST XPn0Zy1CD5W3l1mpsHQzCZK+bZFHtaphSJODXy7vSXypkl8eKAjPykoIdEvGdWFSB2HG 7IlAP43XegwlwLspejJ2EoucEU8Oe7slGp++Hb7y/w8zy/qqO5yTOLnrEAmX6lvAvdlr +ERhzHLxtrEYBQWzX6Lb5y0YGdIObiX6gqL6qkADJygfb9ebzHka31sJYdLqqY43/Evp Zgi1dvrARrsKU9Q31jK9DAzTVOHEFiCpUZWv+beaK14IuP/owR8fJSWLizxWMDlbElXw vROQ== X-Gm-Message-State: AOAM531sU2CZOa4szNuF/lDg1kVlUOBz6w7BOtUVerwVgX/dleH4vOsY bQaQ4S8lwCaACbIitGLrWRlUdYwrkF1ivQ== X-Google-Smtp-Source: ABdhPJwH8ozdw+kKAP84AiMlD+VjDADjRZnpbh4FspaZtfdhwiDTlmuiqBJWEN4nbcv1dipa65h0jQ== X-Received: by 2002:aca:b80b:: with SMTP id i11mr3673588oif.26.1632529894627; Fri, 24 Sep 2021 17:31:34 -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 y83sm2491462oia.47.2021.09.24.17.31.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 17:31:34 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Bin Meng , Christian Melki , Tom Rini , Ilias Apalodimas , Simon Glass , Alexander Graf Subject: [PATCH v2 35/39] efi: Mention that efi_info_get() is only used in the stub Date: Fri, 24 Sep 2021 18:30:51 -0600 Message-Id: <20210925003055.759305-20-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.685.g46640cef36-goog In-Reply-To: <20210925003055.759305-1-sjg@chromium.org> References: <20210925003055.759305-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 --- 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 e04ef942161..8198394e7e0 100644 --- a/include/efi.h +++ b/include/efi.h @@ -580,6 +580,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.685.g46640cef36-goog