mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-20 08:58:52 +09:00
![Marek Behún](/assets/img/avatar_default.png)
The ext4, reiserfs and zfs filesystems all have their own implementation of the same function, *_devread. Generalize this function into fs_devread and put the code into fs/fs_internal.c. Signed-off-by: Marek Behun <marek.behun@nic.cz> [trini: Move fs/fs_internal.o hunk to the end of fs/Makefile as all cases need it] Signed-off-by: Tom Rini <trini@konsulko.com>
18 lines
380 B
C
18 lines
380 B
C
/*
|
|
* 2017 by Marek Behun <marek.behun@nic.cz>
|
|
*
|
|
* Derived from code in ext4/dev.c, which was based on reiserfs/dev.c
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0
|
|
*/
|
|
|
|
#ifndef __U_BOOT_FS_INTERNAL_H__
|
|
#define __U_BOOT_FS_INTERNAL_H__
|
|
|
|
#include <part.h>
|
|
|
|
int fs_devread(struct blk_desc *, disk_partition_t *, lbaint_t, int, int,
|
|
char *);
|
|
|
|
#endif /* __U_BOOT_FS_INTERNAL_H__ */
|