Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci The voodoofb driver also works with Voodoo Bansh...



details:   https://anonhg.NetBSD.org/src/rev/82e20af9f10c
branches:  trunk
changeset: 782620:82e20af9f10c
user:      rkujawa <rkujawa%NetBSD.org@localhost>
date:      Fri Nov 09 11:28:40 2012 +0000

description:
The voodoofb driver also works with Voodoo Banshee. Tested using card from
martin@. Should be modified to take different MAX_CLOCK value into account.

diffstat:

 sys/dev/pci/voodoofb.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 6610fa68efb4 -r 82e20af9f10c sys/dev/pci/voodoofb.c
--- a/sys/dev/pci/voodoofb.c    Fri Nov 09 10:05:59 2012 +0000
+++ b/sys/dev/pci/voodoofb.c    Fri Nov 09 11:28:40 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: voodoofb.c,v 1.41 2012/04/23 11:51:56 macallan Exp $   */
+/*     $NetBSD: voodoofb.c,v 1.42 2012/11/09 11:28:40 rkujawa Exp $    */
 
 /*
  * Copyright (c) 2005, 2006, 2012 Michael Lorenz
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: voodoofb.c,v 1.41 2012/04/23 11:51:56 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: voodoofb.c,v 1.42 2012/11/09 11:28:40 rkujawa Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -339,6 +339,11 @@
        if ((PCI_VENDOR(pa->pa_id)==PCI_VENDOR_3DFX) && 
            (PCI_PRODUCT(pa->pa_id)>=PCI_PRODUCT_3DFX_VOODOO3))
                return 100;
+
+       /* XXX: Banshee has different MAX_CLOCK, but otherwise is almost same */
+       if ((PCI_VENDOR(pa->pa_id)==PCI_VENDOR_3DFX) && 
+           (PCI_PRODUCT(pa->pa_id)>=PCI_PRODUCT_3DFX_BANSHEE))
+               return 100;
        return 0;
 }
 



Home | Main Index | Thread Index | Old Index