xref: /netbsd-src/sys/arch/sun68k/stand/libsa/promcons.c (revision 413d532bcc3f62d122e56d92e13ac64825a40baf)
1 /*	$NetBSD: promcons.c,v 1.4 2009/01/12 07:00:59 tsutsui Exp $	*/
2 
3 
4 #include <sys/types.h>
5 #include <machine/mon.h>
6 #include <lib/libsa/stand.h>
7 
8 #include "libsa.h"
9 
10 int
11 getchar(void)
12 {
13 	return ( (*romVectorPtr->getChar)() );
14 }
15 
16 int
17 peekchar(void)
18 {
19 	return ( (*romVectorPtr->mayGet)() );
20 }
21 
22 void
23 putchar(int c)
24 {
25 	if (c == '\n')
26 		(*romVectorPtr->putChar)('\r');
27 	(*romVectorPtr->putChar)(c);
28 }
29 
30