mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-11 07:24:46 +00:00

Add generic implementation of write into a block device to be used by filesystem implementations. This is a pair function for already existing fs_devread(). Signed-off-by: Marek Vasut <marex@denx.de>
18 lines
488 B
C
18 lines
488 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* 2017 by Marek Behún <kabel@kernel.org>
|
|
*
|
|
* Derived from code in ext4/dev.c, which was based on reiserfs/dev.c
|
|
*/
|
|
|
|
#ifndef __U_BOOT_FS_INTERNAL_H__
|
|
#define __U_BOOT_FS_INTERNAL_H__
|
|
|
|
#include <part.h>
|
|
|
|
int fs_devread(struct blk_desc *, struct disk_partition *, lbaint_t, int, int,
|
|
char *);
|
|
int fs_devwrite(struct blk_desc *, struct disk_partition *, lbaint_t, int, int,
|
|
const char *);
|
|
|
|
#endif /* __U_BOOT_FS_INTERNAL_H__ */
|