Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/pci The VIA Technologies VT82C686A SMBus Contr...



details:   https://anonhg.NetBSD.org/src/rev/25398d08bb9a
branches:  trunk
changeset: 486082:25398d08bb9a
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Fri May 12 20:31:22 2000 +0000

description:
The VIA Technologies VT82C686A SMBus Controller claims to be a PCI/ISA
bridge, ignore it. Should fix kern/10093 by Mark Dohring.

diffstat:

 sys/arch/i386/pci/pcib.c |  21 +++++++++++++++------
 1 files changed, 15 insertions(+), 6 deletions(-)

diffs (42 lines):

diff -r bcc534a3cd74 -r 25398d08bb9a sys/arch/i386/pci/pcib.c
--- a/sys/arch/i386/pci/pcib.c  Fri May 12 20:11:11 2000 +0000
+++ b/sys/arch/i386/pci/pcib.c  Fri May 12 20:31:22 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcib.c,v 1.25 1999/09/20 16:07:45 drochner Exp $       */
+/*     $NetBSD: pcib.c,v 1.26 2000/05/12 20:31:22 bouyer Exp $ */
 
 /*-
  * Copyright (c) 1996, 1998 The NetBSD Foundation, Inc.
@@ -115,11 +115,6 @@
        }
 #endif
 
-       if (PCI_CLASS(pa->pa_class) == PCI_CLASS_BRIDGE &&
-           PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_BRIDGE_ISA) {
-               return (1);
-       }
-
        /*
         * some special cases:
         */
@@ -154,6 +149,20 @@
                        return (1);
                }
                break;
+       case PCI_VENDOR_VIATECH:
+               switch (PCI_PRODUCT(pa->pa_id)) {
+               case PCI_PRODUCT_VIATECH_VT82C686A_SMB:
+                       /*
+                        * The VIA VT82C686A SMBus Controller itself as 
+                        * ISA bridge, but it's wrong !
+                        */
+                       return (0);
+               }
+       }
+
+       if (PCI_CLASS(pa->pa_class) == PCI_CLASS_BRIDGE &&
+           PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_BRIDGE_ISA) {
+               return (1);
        }
 
        return (0);



Home | Main Index | Thread Index | Old Index