summaryrefslogtreecommitdiffstats
path: root/arch/mips64/arc/console.c
blob: 0f087e912ee07d1f557dbd09757b7900f553a3a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* $Id: console.c,v 1.3 1999/10/19 20:51:44 ralf Exp $
 *
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * ARC console code.
 *
 * Copyright (C) 1996 David S. Miller (dm@sgi.com)
 */
#include <linux/init.h>
#include <asm/sgialib.h>

void __init prom_putchar(char c)
{
	ULONG cnt;
	CHAR it = c;

	ArcWrite(1, &it, 1, &cnt);
}

char __init prom_getchar(void)
{
	ULONG cnt;
	CHAR c;

	ArcRead(0, &c, 1, &cnt);

	return c;
}