summaryrefslogtreecommitdiff
path: root/include/semihosting.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/semihosting.h')
-rw-r--r--include/semihosting.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/semihosting.h b/include/semihosting.h
new file mode 100644
index 00000000000..38438630465
--- /dev/null
+++ b/include/semihosting.h
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (C) 2022 Sean Anderson <sean.anderson@seco.com>
+ */
+
+#ifndef _SEMIHOSTING_H
+#define _SEMIHOSTING_H
+
+long smh_open(const char *fname, char *modestr);
+long smh_read(long fd, void *memp, size_t len);
+long smh_close(long fd);
+long smh_flen(long fd);
+
+#endif /* _SEMIHOSTING_H */