Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/arch/i386/pci Pull up revision 1.26 (requested by b...



details:   https://anonhg.NetBSD.org/src/rev/b8ae9da5f6e8
branches:  netbsd-1-4
changeset: 470616:b8ae9da5f6e8
user:      he <he%NetBSD.org@localhost>
date:      Mon May 22 22:04:49 2000 +0000

description:
Pull up revision 1.26 (requested by bouyer):
  Do not handle the VIA Technologies VT82C688A SMBus Controller
  as a PCI/ISA bridge.  Fixes PR#10093.

diffstat:

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

diffs (42 lines):

diff -r 9c6a239dc945 -r b8ae9da5f6e8 sys/arch/i386/pci/pcib.c
--- a/sys/arch/i386/pci/pcib.c  Mon May 22 21:58:47 2000 +0000
+++ b/sys/arch/i386/pci/pcib.c  Mon May 22 22:04:49 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcib.c,v 1.23 1998/10/26 03:47:19 enami Exp $  */
+/*     $NetBSD: pcib.c,v 1.23.6.1 2000/05/22 22:04:49 he 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:
         */
@@ -144,6 +139,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