diff options
author | Simon Glass <sjg@chromium.org> | 2023-07-26 21:01:21 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-08-03 15:30:53 -0400 |
commit | 0c0c82b5177e9afb3a248da4d004f3dc48975c91 (patch) | |
tree | 2c6e803b4d3631b059fd793d6365466ff4624fe7 /include/bootmeth.h | |
parent | 63baa841295812d77723382c74e723ab716f4563 (diff) |
bootflow: Export setup_fs()
This function is used in some bootmeth implementations. Export it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/bootmeth.h')
-rw-r--r-- | include/bootmeth.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/bootmeth.h b/include/bootmeth.h index c3df9702e8..7cb7da33de 100644 --- a/include/bootmeth.h +++ b/include/bootmeth.h @@ -263,6 +263,19 @@ int bootmeth_setup_iter_order(struct bootflow_iter *iter, bool include_global); int bootmeth_set_order(const char *order_str); /** + * bootmeth_setup_fs() - Set up read to read a file + * + * We must redo the setup before each filesystem operation. This function + * handles that, including setting the filesystem type if a block device is not + * being used + * + * @bflow: Information about file to try + * @desc: Block descriptor to read from (NULL if not a block device) + * Return: 0 if OK, -ve on error + */ +int bootmeth_setup_fs(struct bootflow *bflow, struct blk_desc *desc); + +/** * bootmeth_try_file() - See we can access a given file * * Check for a file with a given name. If found, the filename is allocated in |