summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/platforms/iss/io.c
diff options
context:
space:
mode:
authorChris Zankel <chris@zankel.net>2007-09-13 13:44:07 -0700
committerChris Zankel <chris@zankel.net>2008-02-13 16:45:06 -0800
commitb26d0ab0e6fa3a886d2799bf89eb05dd52f8b7c2 (patch)
treea602dca2464a59d1f230639b95885b3e04913091 /arch/xtensa/platforms/iss/io.c
parent4f8d98ff4825336b23372bb552852625fc90d3b1 (diff)
[XTENSA] Concentrate platforms into one platforms directory.
Create arch/xtensa/platforms/ directory to concentrate all platforms under that subdirectory and moves the ISS platform to that directory. Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa/platforms/iss/io.c')
-rw-r--r--arch/xtensa/platforms/iss/io.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/arch/xtensa/platforms/iss/io.c b/arch/xtensa/platforms/iss/io.c
new file mode 100644
index 00000000000..5b161a5cb65
--- /dev/null
+++ b/arch/xtensa/platforms/iss/io.c
@@ -0,0 +1,32 @@
+/* This file isn't really needed right now. */
+
+#if 0
+
+#include <asm/io.h>
+#include <xtensa/simcall.h>
+
+extern int __simc ();
+
+
+char iss_serial_getc()
+{
+ char c;
+ __simc( SYS_read, 0, &c, 1 );
+ return c;
+}
+
+void iss_serial_putc( char c )
+{
+ __simc( SYS_write, 1, &c, 1 );
+}
+
+void iss_serial_puts( char *s )
+{
+ if( s != 0 && *s != 0 )
+ __simc( SYS_write, 1, s, strlen(s) );
+}
+
+/*#error Need I/O ports to specific hardware!*/
+
+#endif
+