Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Adapt to promlib changes on sparc.



details:   https://anonhg.NetBSD.org/src/rev/1bf05c76715d
branches:  trunk
changeset: 559690:1bf05c76715d
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Mar 22 08:36:28 2004 +0000

description:
Adapt to promlib changes on sparc.

diffstat:

 sys/dev/pci/machfb.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r f4e0779acc7c -r 1bf05c76715d sys/dev/pci/machfb.c
--- a/sys/dev/pci/machfb.c      Mon Mar 22 07:21:10 2004 +0000
+++ b/sys/dev/pci/machfb.c      Mon Mar 22 08:36:28 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machfb.c,v 1.15 2003/07/14 15:47:25 lukem Exp $        */
+/*     $NetBSD: machfb.c,v 1.16 2004/03/22 08:36:28 martin Exp $       */
 
 /*
  * Copyright (c) 2002 Bang Jun-Young
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machfb.c,v 1.15 2003/07/14 15:47:25 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machfb.c,v 1.16 2004/03/22 08:36:28 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -42,7 +42,7 @@
 #include <sys/callout.h>
 
 #ifdef __sparc__
-#include <machine/openfirm.h>
+#include <machine/promlib.h>
 #endif
 
 #include <dev/ic/videomode.h>
@@ -1159,7 +1159,7 @@
        if (node == -1)
                return 0;
 
-       return (node == OF_instance_to_package(OF_stdout()));
+       return (node == OF_instance_to_package(prom_stdout()));
 #else
        return 1;
 #endif



Home | Main Index | Thread Index | Old Index