7282bee787
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>
32 lines
441 B
C
32 lines
441 B
C
/* 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
|
|
|