]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/include/asm/semihosting.h
arm: Add support for semihosting for armv8 fastmodel targets.
[karo-tx-uboot.git] / arch / arm / include / asm / semihosting.h
1 /*
2  * Copyright 2014 Broadcom Corporation
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6
7 #ifndef __SEMIHOSTING_H__
8 #define __SEMIHOSTING_H__
9
10 /*
11  * ARM semihosting functions for loading images to memory. See the source
12  * code for more information.
13  */
14 int smh_load(const char *fname, void *memp, int avail, int verbose);
15 int smh_read(int fd, void *memp, int len);
16 int smh_open(const char *fname, char *modestr);
17 int smh_close(int fd);
18 int smh_len_fd(int fd);
19 int smh_len(const char *fname);
20
21 #endif /* __SEMIHOSTING_H__ */