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 X-Spam-Level: X-Spam-Status: No, score=-19.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C457C48BC2 for ; Sun, 27 Jun 2021 23:53:09 +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 B75F96100C for ; Sun, 27 Jun 2021 23:53:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B75F96100C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0D3CD82D7D; Mon, 28 Jun 2021 01:52:02 +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="oY8We4BI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7401582D83; Mon, 28 Jun 2021 01:51:34 +0200 (CEST) Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) (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 D70B882CDE for ; Mon, 28 Jun 2021 01:51:30 +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-x22e.google.com with SMTP id h9so19801574oih.4 for ; Sun, 27 Jun 2021 16:51:30 -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=VlrtguDSJAR6Hs9QDh08ElvJRl9GRNJeug3g/e0aayM=; b=oY8We4BIAgiW9agXno6ORPo7C926uHujYKRQ7xoDvWJ9wJifcyFJ46cBWP09AfqsvX e6kIp1lXGx8+VLrzhHjnVW2TzBCnRxCoAJEzpkIoUV7WEhmbLOK6TG7LQ39oG5GEhmns Mc7bD44Mh+/mAEmU0GdyLQt0W1TVcYuGR4zvc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VlrtguDSJAR6Hs9QDh08ElvJRl9GRNJeug3g/e0aayM=; b=ke6cYcijUULYPd2IAfP7b4nQHfWi1hXO++NPB5f/0wK5NzM/1NdBCcRjj47xMW14da lLFkEAmSnJNc5XoBUfDeGOJX/pp2AfnUTDQe8R2Wz/O+PMsOKaOz1l6CxmggSvyMf4uH UjL9+ft9jfp1VvWIciDjTrL1iu5QGodOceo++esjxjkYAyr8/aznxx2yXvYwHAIhMGFE zGYejpTWWzJl79TSaTCzP5Q/jd4qy4qxhthFqwBXFFw6fx4eoaW+Feh8Jv1JVNLH+lvc S6VZ5x3H4sIDQ9x0wV8BQ2vErujEd64xmkUsl3o+W4CDWz8dHqv7nG+VO1cFYKLQinE5 uMuA== X-Gm-Message-State: AOAM531CQy8ff04aAEOSYK1dKcHOtcuTYimzvM9m8oagKA+LMTRzqvbN 8sXFP5Ww3bAsWRHVKUxeWuoP/5QtqVnf6Zu3 X-Google-Smtp-Source: ABdhPJyTPCx/dCcXBya/dlL4RhF5YGrBAePHtvTwT9udD7JIe3nQ8ypaEGkNN7CvgVNYS9rxEndVVg== X-Received: by 2002:a05:6808:f86:: with SMTP id o6mr15261574oiw.125.1624837889459; Sun, 27 Jun 2021 16:51:29 -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 bb34sm1297928oob.39.2021.06.27.16.51.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jun 2021 16:51:29 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass , Bin Meng Subject: [PATCH v3 11/16] x86: Add function comments to cb_sysinfo.h Date: Sun, 27 Jun 2021 17:51:06 -0600 Message-Id: <20210627235111.485507-10-sjg@chromium.org> X-Mailer: git-send-email 2.32.0.93.g670b81a890-goog In-Reply-To: <20210627235111.485507-1-sjg@chromium.org> References: <20210627235111.485507-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 Add a function comment for get_coreboot_info() and a declaration for cb_get_sysinfo(), since this may be called from elsewhere. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v1) arch/x86/include/asm/cb_sysinfo.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/x86/include/asm/cb_sysinfo.h b/arch/x86/include/asm/cb_sysinfo.h index 675eef6f2c9..75901359f98 100644 --- a/arch/x86/include/asm/cb_sysinfo.h +++ b/arch/x86/include/asm/cb_sysinfo.h @@ -215,6 +215,22 @@ struct sysinfo_t { extern struct sysinfo_t lib_sysinfo; +/** + * get_coreboot_info() - parse the coreboot sysinfo table + * + * Parses the coreboot table if found, setting the GD_FLG_SKIP_LL_INIT flag if + * so. + * + * @info: Place to put the parsed information + * @return 0 if OK, -ENOENT if no table found + */ int get_coreboot_info(struct sysinfo_t *info); +/** + * cb_get_sysinfo() - get a pointer to the parsed coreboot sysinfo + * + * @return pointer to sysinfo, or NULL if not available + */ +const struct sysinfo_t *cb_get_sysinfo(void); + #endif -- 2.32.0.93.g670b81a890-goog