blob: 2d73add18e09a971253fac5208c77c55e9ce72a7 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Marek Behún98ec1d12017-09-03 17:00:29 +02002/*
3 * BTRFS filesystem implementation for U-Boot
4 *
Marek Behúnd63726e2022-06-01 17:17:06 +02005 * 2017 Marek Behún, CZ.NIC, kabel@kernel.org
Marek Behún98ec1d12017-09-03 17:00:29 +02006 */
7
8#ifndef __U_BOOT_BTRFS_H__
9#define __U_BOOT_BTRFS_H__
10
Simon Glass655306c2020-05-10 11:39:58 -060011struct blk_desc;
12struct disk_partition;
13
Simon Glassc1c4a8f2020-05-10 11:39:57 -060014int btrfs_probe(struct blk_desc *fs_dev_desc,
15 struct disk_partition *fs_partition);
Marek Behún98ec1d12017-09-03 17:00:29 +020016int btrfs_ls(const char *);
17int btrfs_exists(const char *);
18int btrfs_size(const char *, loff_t *);
19int btrfs_read(const char *, void *, loff_t, loff_t, loff_t *);
20void btrfs_close(void);
21int btrfs_uuid(char *);
22void btrfs_list_subvols(void);
23
24#endif /* __U_BOOT_BTRFS_H__ */