1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2022, Sean Anderson <sean.anderson@seco.com>
4 * Copyright (c) 2012, Google Inc.
7 #ifndef __SEMIHOSTING_FS__
8 #define __SEMIHOSTING_FS__
11 struct disk_partition;
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,
18 int smh_fs_write(const char *filename, void *buf, loff_t offset,
19 loff_t len, loff_t *actwrite);