summaryrefslogtreecommitdiff
path: root/include/fs.h
diff options
context:
space:
mode:
authorSean Anderson <sean.anderson@seco.com>2022-03-22 16:59:20 -0400
committerTom Rini <trini@konsulko.com>2022-04-01 15:03:13 -0400
commitf676b45151c33986501e5f8f9bcc64f4a9511089 (patch)
tree7a893e7f077239f473c820069f054d25ec1d6d37 /include/fs.h
parent8e1c9fe243a31a0b0a40a80cc20fc3c06246d675 (diff)
downloadu-boot-f676b45151c33986501e5f8f9bcc64f4a9511089.tar.gz
u-boot-f676b45151c33986501e5f8f9bcc64f4a9511089.tar.bz2
u-boot-f676b45151c33986501e5f8f9bcc64f4a9511089.zip
fs: Add semihosting filesystem
This adds a filesystem which is backed by the host's filesystem. It is modeled off of sandboxfs, which has very similar aims. Semihosting doesn't support listing directories (except with SYS_SYSTEM), so neither do we. it's possible to optimize a bit for the common case of reading a whole file by omitting a call to smh_seek, but this is left as a future optimization. Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Diffstat (limited to 'include/fs.h')
-rw-r--r--include/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fs.h b/include/fs.h
index b607b0028d..e2beba36b9 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -18,6 +18,7 @@ struct cmd_tbl;
#define FS_TYPE_BTRFS 5
#define FS_TYPE_SQUASHFS 6
#define FS_TYPE_EROFS 7
+#define FS_TYPE_SEMIHOSTING 8
struct blk_desc;