2 * console.c: SGI arcs console code.
4 * Copyright (C) 1996 David S. Miller (dm@sgi.com)
5 * Compability with board caches, Ulf Carlsson
7 * $Id: console.c,v 1.2 1999/06/12 18:42:38 ulfc Exp $
9 #include <linux/config.h>
10 #include <linux/init.h>
11 #include <asm/sgialib.h>
12 #include <asm/bcache.h>
14 /* The romvec is not compatible with board caches. Thus we disable it during
15 * romvec action. Since r4xx0.c is always compiled and linked with your kernel,
16 * this shouldn't cause any harm regardless what MIPS processor you have.
18 * The romvec write and read functions seem to interfere with the serial lines
19 * in some way. You should be careful with them.
21 extern struct bcache_ops
*bcops
;
23 #ifdef CONFIG_SGI_PROM_CONSOLE
24 void prom_putchar(char c
)
26 void __init
prom_putchar(char c
)
33 romvec
->write(1, &it
, 1, &cnt
);
37 #ifdef CONFIG_SGI_PROM_CONSOLE
38 char prom_getchar(void)
40 char __init
prom_getchar(void)
47 romvec
->read(0, &c
, 1, &cnt
);