Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sun fb_is_console/SUN4U: fbnode => prom_stdout_node.
details: https://anonhg.NetBSD.org/src/rev/ebbe64f107ab
branches: trunk
changeset: 559525:ebbe64f107ab
user: pk <pk%NetBSD.org@localhost>
date: Fri Mar 19 16:05:25 2004 +0000
description:
fb_is_console/SUN4U: fbnode => prom_stdout_node.
diffstat:
sys/dev/sun/fb.c | 20 +++++++-------------
1 files changed, 7 insertions(+), 13 deletions(-)
diffs (60 lines):
diff -r 3abc67250c2c -r ebbe64f107ab sys/dev/sun/fb.c
--- a/sys/dev/sun/fb.c Fri Mar 19 15:42:46 2004 +0000
+++ b/sys/dev/sun/fb.c Fri Mar 19 16:05:25 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fb.c,v 1.18 2004/03/17 17:04:58 pk Exp $ */
+/* $NetBSD: fb.c,v 1.19 2004/03/19 16:05:25 pk Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fb.c,v 1.18 2004/03/17 17:04:58 pk Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fb.c,v 1.19 2004/03/19 16:05:25 pk Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -54,6 +54,7 @@
#include <sys/proc.h>
#include <sys/conf.h>
+#include <machine/promlib.h>
#include <machine/autoconf.h>
#include <machine/kbd.h>
#include <machine/eeprom.h>
@@ -94,20 +95,11 @@
* on machines with old PROMs; in that case, drivers should consult
* other sources of configuration information (e.g. EEPROM entries).
*/
-#if defined(SUN4U)
-/* Temporary special case for sun4u */
int
fb_is_console(node)
int node;
{
- extern int fbnode;
- return (node == fbnode);
-}
-#else
-int
-fb_is_console(node)
- int node;
-{
+#if !defined(SUN4U)
int fbnode;
switch (prom_version()) {
@@ -134,8 +126,10 @@
}
return (0);
+#else
+ return (node == prom_stdout_node);
+#endif
}
-#endif /* SUN4U */
void
fb_attach(fb, isconsole)
Home |
Main Index |
Thread Index |
Old Index