]> git.sur5r.net Git - u-boot/blob - fs/zfs/dev.c
reset: stm32: adapt driver for stm32mp1
[u-boot] / fs / zfs / dev.c
1 /*
2  *
3  *      based on code of fs/reiserfs/dev.c by
4  *
5  *      (C) Copyright 2003 - 2004
6  *      Sysgo AG, <www.elinos.com>, Pavel Bartusek <pba@sysgo.com>
7  *
8  * SPDX-License-Identifier:     GPL-2.0+
9  */
10
11
12 #include <common.h>
13 #include <config.h>
14 #include <fs_internal.h>
15 #include <zfs_common.h>
16
17 static struct blk_desc *zfs_blk_desc;
18 static disk_partition_t *part_info;
19
20 void zfs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info)
21 {
22         zfs_blk_desc = rbdd;
23         part_info = info;
24 }
25
26 /* err */
27 int zfs_devread(int sector, int byte_offset, int byte_len, char *buf)
28 {
29         return fs_devread(zfs_blk_desc, part_info, sector, byte_offset,
30                           byte_len, buf);
31 }