[uboot] create uboot from github:
repo: https://github.com/u-boot/u-boot commit: d80bb749fab53da72c4a0e09b8c2d2aaa3103c91 Change-Id: Ie6434426e1ec15bc08bb1832798e371f3fd5fb29
This commit is contained in:
28
u-boot-2021.10/fs/reiserfs/dev.c
Normal file
28
u-boot-2021.10/fs/reiserfs/dev.c
Normal file
@ -0,0 +1,28 @@
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
/*
|
||||
* (C) Copyright 2003 - 2004
|
||||
* Sysgo AG, <www.elinos.com>, Pavel Bartusek <pba@sysgo.com>
|
||||
*/
|
||||
|
||||
|
||||
#include <common.h>
|
||||
#include <config.h>
|
||||
#include <reiserfs.h>
|
||||
#include <fs_internal.h>
|
||||
#include "reiserfs_private.h"
|
||||
|
||||
static struct blk_desc *reiserfs_blk_desc;
|
||||
static struct disk_partition *part_info;
|
||||
|
||||
|
||||
void reiserfs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info)
|
||||
{
|
||||
reiserfs_blk_desc = rbdd;
|
||||
part_info = info;
|
||||
}
|
||||
|
||||
int reiserfs_devread(int sector, int byte_offset, int byte_len, char *buf)
|
||||
{
|
||||
return fs_devread(reiserfs_blk_desc, part_info, sector, byte_offset,
|
||||
byte_len, buf);
|
||||
}
|
||||
Reference in New Issue
Block a user