Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Hans de Goede | a164477 | 2015-09-17 18:46:56 -0400 | [diff] [blame] | 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, sr@denx.de. |
| 9 | * |
Hans de Goede | a164477 | 2015-09-17 18:46:56 -0400 | [diff] [blame] | 10 | * Authors: Artem Bityutskiy (Битюцкий Артём) |
| 11 | * Adrian Hunter |
| 12 | */ |
| 13 | |
| 14 | #ifndef __UBIFS_UBOOT_H__ |
| 15 | #define __UBIFS_UBOOT_H__ |
| 16 | |
Simon Glass | 655306c | 2020-05-10 11:39:58 -0600 | [diff] [blame] | 17 | struct blk_desc; |
| 18 | struct disk_partition; |
| 19 | |
Hans de Goede | a164477 | 2015-09-17 18:46:56 -0400 | [diff] [blame] | 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); |
| 24 | int ubifs_load(char *filename, u32 addr, u32 size); |
| 25 | |
Simon Glass | c1c4a8f | 2020-05-10 11:39:57 -0600 | [diff] [blame] | 26 | int ubifs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info); |
Hans de Goede | a164477 | 2015-09-17 18:46:56 -0400 | [diff] [blame] | 27 | int ubifs_ls(const char *dir_name); |
Hans de Goede | b5030b2 | 2015-09-17 18:46:57 -0400 | [diff] [blame] | 28 | int ubifs_exists(const char *filename); |
| 29 | int ubifs_size(const char *filename, loff_t *size); |
Hans de Goede | a164477 | 2015-09-17 18:46:56 -0400 | [diff] [blame] | 30 | int ubifs_read(const char *filename, void *buf, loff_t offset, |
| 31 | loff_t size, loff_t *actread); |
Hans de Goede | b5030b2 | 2015-09-17 18:46:57 -0400 | [diff] [blame] | 32 | void ubifs_close(void); |
Hans de Goede | a164477 | 2015-09-17 18:46:56 -0400 | [diff] [blame] | 33 | |
| 34 | #endif /* __UBIFS_UBOOT_H__ */ |