]> git.ipfire.org Git - thirdparty/u-boot.git/blame - fs/reiserfs/dev.c
part: Drop disk_partition_t typedef
[thirdparty/u-boot.git] / fs / reiserfs / dev.c
CommitLineData
83d290c5 1// SPDX-License-Identifier: GPL-2.0+
518e2e1a
WD
2/*
3 * (C) Copyright 2003 - 2004
4 * Sysgo AG, <www.elinos.com>, Pavel Bartusek <pba@sysgo.com>
518e2e1a
WD
5 */
6
7
8#include <common.h>
518e2e1a
WD
9#include <config.h>
10#include <reiserfs.h>
5994e8b6 11#include <fs_internal.h>
518e2e1a
WD
12#include "reiserfs_private.h"
13
4101f687 14static struct blk_desc *reiserfs_blk_desc;
0528979f 15static struct disk_partition *part_info;
518e2e1a
WD
16
17
0528979f 18void reiserfs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info)
518e2e1a 19{
4101f687 20 reiserfs_blk_desc = rbdd;
650f3664 21 part_info = info;
518e2e1a
WD
22}
23
5994e8b6 24int reiserfs_devread(int sector, int byte_offset, int byte_len, char *buf)
518e2e1a 25{
5994e8b6
MB
26 return fs_devread(reiserfs_blk_desc, part_info, sector, byte_offset,
27 byte_len, buf);
518e2e1a 28}