]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
ad15749b HG |
2 | /* |
3 | * UBIFS u-boot wrapper functions header | |
4 | * | |
5 | * Copyright (C) 2006-2008 Nokia Corporation | |
6 | * | |
7 | * (C) Copyright 2008-2009 | |
8 | * Stefan Roese, DENX Software Engineering, [email protected]. | |
9 | * | |
ad15749b HG |
10 | * Authors: Artem Bityutskiy (Битюцкий Артём) |
11 | * Adrian Hunter | |
12 | */ | |
13 | ||
14 | #ifndef __UBIFS_UBOOT_H__ | |
15 | #define __UBIFS_UBOOT_H__ | |
16 | ||
e6f6f9e6 SG |
17 | struct blk_desc; |
18 | struct disk_partition; | |
19 | ||
ad15749b HG |
20 | int ubifs_init(void); |
21 | int uboot_ubifs_mount(char *vol_name); | |
22 | void uboot_ubifs_umount(void); | |
23 | int ubifs_is_mounted(void); | |
b46cec41 | 24 | int ubifs_load(char *filename, unsigned long addr, u32 size); |
ad15749b | 25 | |
0528979f | 26 | int ubifs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info); |
ad15749b | 27 | int ubifs_ls(const char *dir_name); |
29cc5bca HG |
28 | int ubifs_exists(const char *filename); |
29 | int ubifs_size(const char *filename, loff_t *size); | |
ad15749b HG |
30 | int ubifs_read(const char *filename, void *buf, loff_t offset, |
31 | loff_t size, loff_t *actread); | |
29cc5bca | 32 | void ubifs_close(void); |
ad15749b HG |
33 | |
34 | #endif /* __UBIFS_UBOOT_H__ */ |