Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Marek Behún | 98ec1d1 | 2017-09-03 17:00:29 +0200 | [diff] [blame] | 2 | /* |
| 3 | * BTRFS filesystem implementation for U-Boot |
| 4 | * |
Marek Behún | d63726e | 2022-06-01 17:17:06 +0200 | [diff] [blame] | 5 | * 2017 Marek Behún, CZ.NIC, kabel@kernel.org |
Marek Behún | 98ec1d1 | 2017-09-03 17:00:29 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __U_BOOT_BTRFS_H__ |
| 9 | #define __U_BOOT_BTRFS_H__ |
| 10 | |
Simon Glass | 655306c | 2020-05-10 11:39:58 -0600 | [diff] [blame] | 11 | struct blk_desc; |
| 12 | struct disk_partition; |
| 13 | |
Simon Glass | c1c4a8f | 2020-05-10 11:39:57 -0600 | [diff] [blame] | 14 | int btrfs_probe(struct blk_desc *fs_dev_desc, |
| 15 | struct disk_partition *fs_partition); |
Marek Behún | 98ec1d1 | 2017-09-03 17:00:29 +0200 | [diff] [blame] | 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); |
| 23 | |
| 24 | #endif /* __U_BOOT_BTRFS_H__ */ |