From patchwork Sat Apr 24 04:56:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1469891 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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=) Authentication-Results: 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=VsXaEbBp; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 4FRzVR2bpxz9sT6 for ; Sat, 24 Apr 2021 14:59:59 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F0DC082CDB; Sat, 24 Apr 2021 06:58:09 +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="VsXaEbBp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 403F482CA7; Sat, 24 Apr 2021 06:57:13 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) (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 1049E82B98 for ; Sat, 24 Apr 2021 06:57:10 +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-pl1-x632.google.com with SMTP id e2so21903992plh.8 for ; Fri, 23 Apr 2021 21:57:09 -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=uLh26ritMxlKCesM634AtzVSpIVGQJ5Lx1QSwNAtPHw=; b=VsXaEbBps8qs2rzz7y2jw6EqehtUbQUElxHDtQik36tGsKDai5EE/qmmlXUqJC7GrI ZMSXDp3fTgNQnDZuuwXtzVdS/RQWD9uRErpPy7dUC7eRaeZDi8I4LM7Dmxojj1poeBRi UbPH1WvtVOn6FXP87FfnOpv2zF5w/p9iiaEC4= 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=uLh26ritMxlKCesM634AtzVSpIVGQJ5Lx1QSwNAtPHw=; b=ECXMjeP+z2c/o6NbPsTXuLcaiUBvLg4KTp961nuhMYFoYyEXJRkMJuG2xuMWKJduAL /NUh0Oe8Hq7/L61GiHvYIy6H3wKCZHv2HCwadCwl3jVmp4y7uxqNBmq9x5gWvshizoRG Ve6ZnG2sA0fQ+zwLfhTe0pHLdSW+A9kb8ZcerUST9BptmP2jHJTy5FryNaemzJBxOxJz 1o/uYWU6CHlso7DKArFSlBmOEyneBYpo26dHHyNMHO6fcdz+p6sG8pECrDsuJr5egngD 0glhq2sPCyQwdyiC4Uqq/AI9t7fZSpEBjWylQ5T2HJj/k8DxTGW35UD9hTdr261zp0un TgqA== X-Gm-Message-State: AOAM532ax29HMRyZ3KZ/y2vcIzL8MFKN2kDcJUSwyCHEj3X0qhfRAdZH Ro1bhaArtUNCD9dlQe0XiZh+Pwc70TsOdysJ X-Google-Smtp-Source: ABdhPJwTXk05aW552Y39CPBi8jKlMhKOt/UDyS+dCN/JH0wyUdyf//HbDZVhGe07FXc8BZbDYqLOJQ== X-Received: by 2002:a17:902:bc47:b029:eb:5074:dc04 with SMTP id t7-20020a170902bc47b02900eb5074dc04mr7618703plz.28.1619240228366; Fri, 23 Apr 2021 21:57:08 -0700 (PDT) Received: from sjg1.roam.corp.google.com ([27.110.126.54]) by smtp.gmail.com with ESMTPSA id l35sm5949077pgm.10.2021.04.23.21.57.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Apr 2021 21:57:08 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass , Bin Meng Subject: [PATCH v2 11/16] x86: Add function comments to cb_sysinfo.h Date: Sat, 24 Apr 2021 16:56:21 +1200 Message-Id: <20210424045627.313802-10-sjg@chromium.org> X-Mailer: git-send-email 2.31.1.498.g6c1eba8ee3d-goog In-Reply-To: <20210424045627.313802-1-sjg@chromium.org> References: <20210424045627.313802-1-sjg@chromium.org> MIME-Version: 1.0 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.102.4 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