Convert CONFIG_SAMSUNG_ONENAND to Kconfig
[platform/kernel/u-boot.git] / include / semihostingfs.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2022, Sean Anderson <sean.anderson@seco.com>
4  * Copyright (c) 2012, Google Inc.
5  */
6
7 #ifndef __SEMIHOSTING_FS__
8 #define __SEMIHOSTING_FS__
9
10 struct blk_desc;
11 struct disk_partition;
12
13 int smh_fs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info);
14 void smh_fs_close(void);
15 int smh_fs_size(const char *filename, loff_t *size);
16 int smh_fs_read(const char *filename, void *buf, loff_t offset, loff_t len,
17                 loff_t *actread);
18 int smh_fs_write(const char *filename, void *buf, loff_t offset,
19                  loff_t len, loff_t *actwrite);
20
21 #endif