Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc64/sparc64 OF_stdin() and OF_stdout() are obso...



details:   https://anonhg.NetBSD.org/src/rev/38b806a4c1a8
branches:  trunk
changeset: 559655:38b806a4c1a8
user:      pk <pk%NetBSD.org@localhost>
date:      Sun Mar 21 15:09:25 2004 +0000

description:
OF_stdin() and OF_stdout() are obsolete.

diffstat:

 sys/arch/sparc64/sparc64/ofw_machdep.c |  38 +--------------------------------
 1 files changed, 2 insertions(+), 36 deletions(-)

diffs (59 lines):

diff -r 8a715f85580a -r 38b806a4c1a8 sys/arch/sparc64/sparc64/ofw_machdep.c
--- a/sys/arch/sparc64/sparc64/ofw_machdep.c    Sun Mar 21 15:08:24 2004 +0000
+++ b/sys/arch/sparc64/sparc64/ofw_machdep.c    Sun Mar 21 15:09:25 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ofw_machdep.c,v 1.22 2004/03/21 14:13:15 pk Exp $      */
+/*     $NetBSD: ofw_machdep.c,v 1.23 2004/03/21 15:09:25 pk Exp $      */
 
 /*
  * Copyright (C) 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofw_machdep.c,v 1.22 2004/03/21 14:13:15 pk Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofw_machdep.c,v 1.23 2004/03/21 15:09:25 pk Exp $");
 
 #include <sys/param.h>
 #include <sys/buf.h>
@@ -599,40 +599,6 @@
 }
 #endif
 
-/* 
- * Low-level prom I/O routines.
- */
-
-static u_int stdin = 0;
-static u_int stdout = 0;
-
-int 
-OF_stdin() 
-{
-       u_int chosen;
-
-       if (stdin != 0)
-               return stdin;
-               
-       chosen = OF_finddevice("/chosen");
-       OF_getprop(chosen, "stdin", &stdin, sizeof(stdin));
-       return stdin;
-}
-
-int
-OF_stdout()
-{
-       u_int chosen;
-
-       if (stdout != 0)
-               return stdout;
-               
-       chosen = OF_finddevice("/chosen");
-       OF_getprop(chosen, "stdout", &stdout, sizeof(stdout));
-       return stdout;
-}
-
-
 #ifdef DEBUG
 int ofmapintrdebug = 0;
 #define        DPRINTF(x)      if (ofmapintrdebug) printf x



Home | Main Index | Thread Index | Old Index