aboutsummaryrefslogtreecommitdiffstats
path: root/roms/u-boot/include/btrfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'roms/u-boot/include/btrfs.h')
-rw-r--r--roms/u-boot/include/btrfs.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/roms/u-boot/include/btrfs.h b/roms/u-boot/include/btrfs.h
new file mode 100644
index 000000000..a7605e158
--- /dev/null
+++ b/roms/u-boot/include/btrfs.h
@@ -0,0 +1,24 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * BTRFS filesystem implementation for U-Boot
+ *
+ * 2017 Marek Behun, CZ.NIC, marek.behun@nic.cz
+ */
+
+#ifndef __U_BOOT_BTRFS_H__
+#define __U_BOOT_BTRFS_H__
+
+struct blk_desc;
+struct disk_partition;
+
+int btrfs_probe(struct blk_desc *fs_dev_desc,
+ struct disk_partition *fs_partition);
+int btrfs_ls(const char *);
+int btrfs_exists(const char *);
+int btrfs_size(const char *, loff_t *);
+int btrfs_read(const char *, void *, loff_t, loff_t, loff_t *);
+void btrfs_close(void);
+int btrfs_uuid(char *);
+void btrfs_list_subvols(void);
+
+#endif /* __U_BOOT_BTRFS_H__ */