aboutsummaryrefslogtreecommitdiffstats
path: root/roms/u-boot/fs/btrfs/btrfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'roms/u-boot/fs/btrfs/btrfs.h')
-rw-r--r--roms/u-boot/fs/btrfs/btrfs.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/roms/u-boot/fs/btrfs/btrfs.h b/roms/u-boot/fs/btrfs/btrfs.h
new file mode 100644
index 000000000..7d8b395b2
--- /dev/null
+++ b/roms/u-boot/fs/btrfs/btrfs.h
@@ -0,0 +1,28 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * BTRFS filesystem implementation for U-Boot
+ *
+ * 2017 Marek Behun, CZ.NIC, marek.behun@nic.cz
+ */
+
+#ifndef __BTRFS_BTRFS_H__
+#define __BTRFS_BTRFS_H__
+
+#include <linux/rbtree.h>
+#include "conv-funcs.h"
+
+extern struct btrfs_info btrfs_info;
+extern struct btrfs_fs_info *current_fs_info;
+
+/* compression.c */
+u32 btrfs_decompress(u8 type, const char *, u32, char *, u32);
+
+/* inode.c */
+int btrfs_readlink(struct btrfs_root *root, u64 ino, char *target);
+int btrfs_file_read(struct btrfs_root *root, u64 ino, u64 file_offset, u64 len,
+ char *dest);
+
+/* subvolume.c */
+u64 btrfs_get_default_subvol_objectid(void);
+
+#endif /* !__BTRFS_BTRFS_H__ */