]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - fs/btrfs/dev.c
1 // SPDX-License-Identifier: GPL-2.0+
3 * BTRFS filesystem implementation for U-Boot
5 * 2017 Marek BehĂșn, CZ.NIC, kabel@kernel.org
11 #include <fs_internal.h>
13 struct blk_desc
*btrfs_blk_desc
;
14 struct disk_partition
*btrfs_part_info
;
16 int btrfs_devread(u64 address
, int byte_len
, void *buf
)
21 sector
= address
>> btrfs_blk_desc
->log2blksz
;
22 byte_offset
= address
% btrfs_blk_desc
->blksz
;
24 return fs_devread(btrfs_blk_desc
, btrfs_part_info
, sector
, byte_offset
,