1 /*
2  * Copyright (c) 2022, Commonwealth Scientific and Industrial Research
3  * Organisation (CSIRO) ABN 41 687 119 230.
4  *
5  * SPDX-License-Identifier: Apache-2.0
6  */
7 
8 #ifndef ZEPHYR_INCLUDE_ARCH_COMMON_SEMIHOST_TYPES_H_
9 #define ZEPHYR_INCLUDE_ARCH_COMMON_SEMIHOST_TYPES_H_
10 
11 struct semihost_poll_in_args {
12 	long zero;
13 } __packed;
14 
15 struct semihost_open_args {
16 	const char *path;
17 	long mode;
18 	long path_len;
19 } __packed;
20 
21 struct semihost_close_args {
22 	long fd;
23 } __packed;
24 
25 struct semihost_flen_args {
26 	long fd;
27 } __packed;
28 
29 struct semihost_seek_args {
30 	long fd;
31 	long offset;
32 } __packed;
33 
34 struct semihost_read_args {
35 	long fd;
36 	char *buf;
37 	long len;
38 } __packed;
39 
40 struct semihost_write_args {
41 	long fd;
42 	const char *buf;
43 	long len;
44 } __packed;
45 
46 #endif /* ZEPHYR_INCLUDE_ARCH_COMMON_SEMIHOST_TYPES_H_ */
47