summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/platform-iss/io.c
diff options
context:
space:
mode:
authorChris Zankel <czankel@tensilica.com>2005-06-23 22:01:33 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-24 00:05:22 -0700
commit7282bee78798294bb1f0211a842cdb9f4872db3d (patch)
tree7a659275aaa7f4c741bd24eeb9f827b2f0a926d5 /arch/xtensa/platform-iss/io.c
parente344b63eeec7850b5e900e10c8a6c61d083fd3a4 (diff)
downloadop-kernel-dev-7282bee78798294bb1f0211a842cdb9f4872db3d.zip
op-kernel-dev-7282bee78798294bb1f0211a842cdb9f4872db3d.tar.gz
[PATCH] xtensa: Architecture support for Tensilica Xtensa Part 8
The attached patches provides part 8 of an architecture implementation for the Tensilica Xtensa CPU series. Signed-off-by: Chris Zankel <chris@zankel.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/xtensa/platform-iss/io.c')
-rw-r--r--arch/xtensa/platform-iss/io.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/arch/xtensa/platform-iss/io.c b/arch/xtensa/platform-iss/io.c
new file mode 100644
index 0000000..5b161a5
--- /dev/null
+++ b/arch/xtensa/platform-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
+
OpenPOWER on IntegriCloud