Hans de Goede | ad15749 | 2015-09-17 18:46:56 -0400 | [diff] [blame] | 1 | /* |
| 2 | * UBIFS u-boot wrapper functions header |
| 3 | * |
| 4 | * Copyright (C) 2006-2008 Nokia Corporation |
| 5 | * |
| 6 | * (C) Copyright 2008-2009 |
| 7 | * Stefan Roese, DENX Software Engineering, sr@denx.de. |
| 8 | * |
| 9 | * SPDX-License-Identifier: GPL-2.0+ |
| 10 | * |
| 11 | * Authors: Artem Bityutskiy (Битюцкий Артём) |
| 12 | * Adrian Hunter |
| 13 | */ |
| 14 | |
| 15 | #ifndef __UBIFS_UBOOT_H__ |
| 16 | #define __UBIFS_UBOOT_H__ |
| 17 | |
| 18 | int ubifs_init(void); |
| 19 | int uboot_ubifs_mount(char *vol_name); |
| 20 | void uboot_ubifs_umount(void); |
| 21 | int ubifs_is_mounted(void); |
| 22 | int ubifs_load(char *filename, u32 addr, u32 size); |
| 23 | |
Simon Glass | 4101f68 | 2016-02-29 15:25:34 -0700 | [diff] [blame] | 24 | int ubifs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info); |
Hans de Goede | ad15749 | 2015-09-17 18:46:56 -0400 | [diff] [blame] | 25 | int ubifs_ls(const char *dir_name); |
Hans de Goede | 29cc5bc | 2015-09-17 18:46:57 -0400 | [diff] [blame] | 26 | int ubifs_exists(const char *filename); |
| 27 | int ubifs_size(const char *filename, loff_t *size); |
Hans de Goede | ad15749 | 2015-09-17 18:46:56 -0400 | [diff] [blame] | 28 | int ubifs_read(const char *filename, void *buf, loff_t offset, |
| 29 | loff_t size, loff_t *actread); |
Hans de Goede | 29cc5bc | 2015-09-17 18:46:57 -0400 | [diff] [blame] | 30 | void ubifs_close(void); |
Hans de Goede | ad15749 | 2015-09-17 18:46:56 -0400 | [diff] [blame] | 31 | |
| 32 | #endif /* __UBIFS_UBOOT_H__ */ |