summaryrefslogtreecommitdiff
path: root/include/cbfs.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-08-14 19:56:13 -0600
committerBin Meng <bmeng.cn@gmail.com>2019-08-18 21:54:10 +0800
commitc7f16934749b054ce1f0b75bd664d22af8b7c588 (patch)
treedca5553d140b2e79cc3c9ec545b8e9a51201e852 /include/cbfs.h
parent02e4af63a9f5531b7975d21828edea04d6d519d2 (diff)
cbfs: Move result variable into the struct
Move the result variable into the struct also, so that it can be used when BSS is not available. Add a function to read it. Note that all functions sill use the BSS version of the data. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/cbfs.h')
-rw-r--r--include/cbfs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/cbfs.h b/include/cbfs.h
index b8d1dabbf6..742e34e24f 100644
--- a/include/cbfs.h
+++ b/include/cbfs.h
@@ -91,6 +91,13 @@ extern enum cbfs_result file_cbfs_result;
const char *file_cbfs_error(void);
/**
+ * cbfs_get_result() - Get the result of the last CBFS operation
+ *
+ *@return last result
+ */
+enum cbfs_result cbfs_get_result(void);
+
+/**
* file_cbfs_init() - Initialize the CBFS driver and load metadata into RAM.
*
* @end_of_rom: Points to the end of the ROM the CBFS should be read