summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/c4x/c4xsim/include/simio.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-02-22 18:39:52 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-02-22 18:39:52 +0000
commit61ba976360804d85f9203821518bb4b132852188 (patch)
tree28e72dd94472e21da42f5f5d1e82912a9f83852a /c/src/lib/libbsp/c4x/c4xsim/include/simio.h
parentAdding information on prebuilt toolset binaries. (diff)
downloadrtems-61ba976360804d85f9203821518bb4b132852188.tar.bz2
New port of RTEMS to TI C3x and C4x.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/c4x/c4xsim/include/simio.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/c4x/c4xsim/include/simio.h b/c/src/lib/libbsp/c4x/c4xsim/include/simio.h
new file mode 100644
index 0000000000..782e88c258
--- /dev/null
+++ b/c/src/lib/libbsp/c4x/c4xsim/include/simio.h
@@ -0,0 +1,25 @@
+/*
+ * C4x simulator IO interface routines based on code provided
+ * by Herman ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
+ *
+ * $Id$
+ */
+
+#ifndef __C4X_SIMIO_IFACE_h
+#define __C4X_SIMIO_IFACE_h
+
+#include <stdio.h>
+
+void sim_exit(void);
+int sim_open(const char *path, int flags, int fno);
+int sim_close(int fno);
+int sim_read(int fno, char *buf, unsigned count);
+int sim_write(int fno, const char *buf, unsigned count);
+fpos_t sim_lseek(int fno, fpos_t offset, int origin);
+int sim_unlink(const char *path);
+int sim_rename(const char *old, const char *new);
+char *sim_getenv(const char *str);
+int sim_gettime(void);
+int sim_getclock(void);
+
+#endif