blob: db8a29e9bbd8e9a570669179f9b03567c77bbf9a [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Hans de Goedead157492015-09-17 18:46:56 -04002/*
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 Goedead157492015-09-17 18:46:56 -040010 * Authors: Artem Bityutskiy (Битюцкий Артём)
11 * Adrian Hunter
12 */
13
14#ifndef __UBIFS_UBOOT_H__
15#define __UBIFS_UBOOT_H__
16
Simon Glasse6f6f9e2020-05-10 11:39:58 -060017struct blk_desc;
18struct disk_partition;
19
Hans de Goedead157492015-09-17 18:46:56 -040020int ubifs_init(void);
21int uboot_ubifs_mount(char *vol_name);
22void uboot_ubifs_umount(void);
23int ubifs_is_mounted(void);
Ben Dooksb46cec42023-06-06 09:23:28 +010024int ubifs_load(char *filename, unsigned long addr, u32 size);
Hans de Goedead157492015-09-17 18:46:56 -040025
Simon Glass05289792020-05-10 11:39:57 -060026int ubifs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info);
Hans de Goedead157492015-09-17 18:46:56 -040027int ubifs_ls(const char *dir_name);
Hans de Goede29cc5bc2015-09-17 18:46:57 -040028int ubifs_exists(const char *filename);
29int ubifs_size(const char *filename, loff_t *size);
Hans de Goedead157492015-09-17 18:46:56 -040030int ubifs_read(const char *filename, void *buf, loff_t offset,
31 loff_t size, loff_t *actread);
Hans de Goede29cc5bc2015-09-17 18:46:57 -040032void ubifs_close(void);
Hans de Goedead157492015-09-17 18:46:56 -040033
34#endif /* __UBIFS_UBOOT_H__ */