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
10struct blk_desc;
11struct disk_partition;
12
13int smh_fs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info);
14void smh_fs_close(void);
15int smh_fs_size(const char *filename, loff_t *size);
16int smh_fs_read(const char *filename, void *buf, loff_t offset, loff_t len,
17		loff_t *actread);
18int smh_fs_write(const char *filename, void *buf, loff_t offset,
19		 loff_t len, loff_t *actwrite);
20
21#endif
22