patch-2.3.48 linux/arch/mips64/arc/console.c
Next file: linux/arch/mips64/arc/env.c
Previous file: linux/arch/mips64/arc/cmdline.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Thu Feb 24 22:53:35 2000
- Orig file:
v2.3.47/linux/arch/mips64/arc/console.c
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.3.47/linux/arch/mips64/arc/console.c linux/arch/mips64/arc/console.c
@@ -0,0 +1,30 @@
+/* $Id: console.c,v 1.3 1999/11/19 23:29:05 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;
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)