The VIA Technologies VT82C686A SMBus Controller claims to be a PCI/ISA

bridge, ignore it. Should fix kern/10093 by Mark Dohring.
This commit is contained in:
bouyer 2000-05-12 20:31:22 +00:00
parent 287de693da
commit 9c43539f8f
1 changed files with 15 additions and 6 deletions

View File

@ -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 @@ pcibmatch(parent, match, aux)
}
#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 @@ pcibmatch(parent, match, aux)
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);