1 // SPDX-License-Identifier: GPL-2.0+
3 * BTRFS filesystem implementation for U-Boot
10 #include <fs_internal.h>
12 struct blk_desc *btrfs_blk_desc;
13 disk_partition_t *btrfs_part_info;
15 int btrfs_devread(u64 address, int byte_len, void *buf)
20 sector = address >> btrfs_blk_desc->log2blksz;
21 byte_offset = address % btrfs_blk_desc->blksz;
23 return fs_devread(btrfs_blk_desc, btrfs_part_info, sector, byte_offset,