ubifs_uboot.h 893 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  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. *
  10. * Authors: Artem Bityutskiy (Битюцкий Артём)
  11. * Adrian Hunter
  12. */
  13. #ifndef __UBIFS_UBOOT_H__
  14. #define __UBIFS_UBOOT_H__
  15. int ubifs_init(void);
  16. int uboot_ubifs_mount(char *vol_name);
  17. void uboot_ubifs_umount(void);
  18. int ubifs_is_mounted(void);
  19. int ubifs_load(char *filename, u32 addr, u32 size);
  20. int ubifs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info);
  21. int ubifs_ls(const char *dir_name);
  22. int ubifs_exists(const char *filename);
  23. int ubifs_size(const char *filename, loff_t *size);
  24. int ubifs_read(const char *filename, void *buf, loff_t offset,
  25. loff_t size, loff_t *actread);
  26. void ubifs_close(void);
  27. #endif /* __UBIFS_UBOOT_H__ */