1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * BTRFS filesystem implementation for U-Boot
5 * 2017 Marek BehĂșn, CZ.NIC, kabel@kernel.org
8 #ifndef __U_BOOT_BTRFS_H__
9 #define __U_BOOT_BTRFS_H__
12 struct disk_partition;
14 int btrfs_probe(struct blk_desc *fs_dev_desc,
15 struct disk_partition *fs_partition);
16 int btrfs_ls(const char *);
17 int btrfs_exists(const char *);
18 int btrfs_size(const char *, loff_t *);
19 int btrfs_read(const char *, void *, loff_t, loff_t, loff_t *);
20 void btrfs_close(void);
21 int btrfs_uuid(char *);
22 void btrfs_list_subvols(void);
24 #endif /* __U_BOOT_BTRFS_H__ */