Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sbus Make bwtwo(4) match prior to genfb(4).



details:   https://anonhg.NetBSD.org/src/rev/ba60f5b76416
branches:  trunk
changeset: 747519:ba60f5b76416
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Sep 19 03:49:22 2009 +0000

description:
Make bwtwo(4) match prior to genfb(4).
Required by bwtwo(4) on TME emulating SS2.

diffstat:

 sys/dev/sbus/bwtwo_sbus.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r bdabfb3d5292 -r ba60f5b76416 sys/dev/sbus/bwtwo_sbus.c
--- a/sys/dev/sbus/bwtwo_sbus.c Fri Sep 18 21:40:09 2009 +0000
+++ b/sys/dev/sbus/bwtwo_sbus.c Sat Sep 19 03:49:22 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bwtwo_sbus.c,v 1.27 2009/09/18 12:23:16 tsutsui Exp $ */
+/*     $NetBSD: bwtwo_sbus.c,v 1.28 2009/09/19 03:49:22 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bwtwo_sbus.c,v 1.27 2009/09/18 12:23:16 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bwtwo_sbus.c,v 1.28 2009/09/19 03:49:22 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -120,7 +120,10 @@
 {
        struct sbus_attach_args *sa = aux;
 
-       return (strcmp(cf->cf_name, sa->sa_name) == 0);
+       if (strcmp(cf->cf_name, sa->sa_name) == 0)
+               return 100;     /* beat genfb(4) */
+
+       return 0;
 }
 
 



Home | Main Index | Thread Index | Old Index