summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-06-27 17:51:06 -0600
committerBin Meng <bmeng.cn@gmail.com>2021-07-15 19:50:17 +0800
commitc5c62155c542368269d7a0e968401e76abcc2490 (patch)
treebe6c0ec1e0830f0b456040f3c8fad6bf45abef6c /arch/x86
parent50cf68c7289ea5387852a3e18ffa2e9e3806f32c (diff)
downloadu-boot-c5c62155c542368269d7a0e968401e76abcc2490.tar.gz
u-boot-c5c62155c542368269d7a0e968401e76abcc2490.tar.bz2
u-boot-c5c62155c542368269d7a0e968401e76abcc2490.zip
x86: Add function comments to cb_sysinfo.h
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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/include/asm/cb_sysinfo.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/x86/include/asm/cb_sysinfo.h b/arch/x86/include/asm/cb_sysinfo.h
index 675eef6f2c..75901359f9 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