aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-10-18 16:37:03 -0400
committerTom Rini <trini@konsulko.com>2019-10-18 16:37:03 -0400
commit4b5c4dd93a829416d159619e4a58e97e9b215206 (patch)
tree667242755939a72efebd99e815e0944c33174e4b /include
parent3b985bdeabd1b05abf28fe7dc6530c203750f9fc (diff)
parent5cc349bb09eefaf43e250b2c7a8fc5a61c595715 (diff)
downloadu-boot-4b5c4dd93a829416d159619e4a58e97e9b215206.zip
u-boot-4b5c4dd93a829416d159619e4a58e97e9b215206.tar.gz
u-boot-4b5c4dd93a829416d159619e4a58e97e9b215206.tar.bz2
Merge tag 'efi-2020-01-rc1-2' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
Pull request for UEFI sub-system for efi-2020-01-rc1 (2) Install the simple file protocol only if there is a file system on the partition. Enable CONFIG_CMD_NVEDIT_EFI on QEMU.
Diffstat (limited to 'include')
-rw-r--r--include/fs.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/fs.h b/include/fs.h
index 7601b03..742a535 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -38,6 +38,28 @@ int fs_set_blk_dev(const char *ifname, const char *dev_part_str, int fstype);
int fs_set_blk_dev_with_part(struct blk_desc *desc, int part);
/**
+ * fs_close() - Unset current block device and partition
+ *
+ * fs_close() closes the connection to a file system opened with either
+ * fs_set_blk_dev() or fs_set_dev_with_part().
+ *
+ * Many file functions implicitly call fs_close(), e.g. fs_closedir(),
+ * fs_exist(), fs_ln(), fs_ls(), fs_mkdir(), fs_read(), fs_size(), fs_write(),
+ * fs_unlink().
+ */
+void fs_close(void);
+
+/**
+ * fs_get_type() - Get type of current filesystem
+ *
+ * Return: filesystem type
+ *
+ * Returns filesystem type representing the current filesystem, or
+ * FS_TYPE_ANY for any unrecognised filesystem.
+ */
+int fs_get_type(void);
+
+/**
* fs_get_type_name() - Get type of current filesystem
*
* Return: Pointer to filesystem name