mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-25 06:46:00 +00:00

When bringing in the series 'arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"' I failed to notice that b4 noticed it was based on next and so took that as the base commit and merged that part of next to master. This reverts commitc8ffd1356d
, reversing changes made to2ee6f3a5f7
. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
26 lines
588 B
C
26 lines
588 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* BTRFS filesystem implementation for U-Boot
|
|
*
|
|
* 2017 Marek Behún, CZ.NIC, kabel@kernel.org
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <blk.h>
|
|
#include <compiler.h>
|
|
#include <fs_internal.h>
|
|
|
|
struct blk_desc *btrfs_blk_desc;
|
|
struct disk_partition *btrfs_part_info;
|
|
|
|
int btrfs_devread(u64 address, int byte_len, void *buf)
|
|
{
|
|
lbaint_t sector;
|
|
int byte_offset;
|
|
|
|
sector = address >> btrfs_blk_desc->log2blksz;
|
|
byte_offset = address % btrfs_blk_desc->blksz;
|
|
|
|
return fs_devread(btrfs_blk_desc, btrfs_part_info, sector, byte_offset,
|
|
byte_len, buf);
|
|
}
|