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 match anything which claims to be PCI-EISA...



details:   https://anonhg.NetBSD.org/src/rev/3bd95ca2bfcc
branches:  trunk
changeset: 542822:3bd95ca2bfcc
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Feb 08 12:00:36 2003 +0000

description:
match anything which claims to be PCI-EISA bridge
the explicit check for Intel PCI-EISA bridge was left in, just in case
it wouldn't identify itself as PCI-EISA bridge

fixes PR kern/9589 by Johan Danielsson

diffstat:

 sys/arch/i386/pci/pceb.c |  15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r e9680ecf3c01 -r 3bd95ca2bfcc sys/arch/i386/pci/pceb.c
--- a/sys/arch/i386/pci/pceb.c  Sat Feb 08 11:45:54 2003 +0000
+++ b/sys/arch/i386/pci/pceb.c  Sat Feb 08 12:00:36 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pceb.c,v 1.10 2003/01/01 01:24:20 thorpej Exp $        */
+/*     $NetBSD: pceb.c,v 1.11 2003/02/08 12:00:36 jdolecek Exp $       */
 
 /*-
  * Copyright (c) 1996, 1998 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pceb.c,v 1.10 2003/01/01 01:24:20 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pceb.c,v 1.11 2003/02/08 12:00:36 jdolecek Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -81,7 +81,16 @@
        struct pci_attach_args *pa = aux;
 
        /*
-        * Match all known PCI-EISA bridges.
+        * Match anything which claims to be PCI-EISA bridge.
+        */
+       if (PCI_CLASS(pa->pa_class) == PCI_CLASS_BRIDGE &&
+           PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_BRIDGE_EISA)
+               return (1);
+
+       /*
+        * Match some known PCI-EISA bridges explicitly.
+        * XXX this is probably not necessary, should be matched by above
+        * condition
         */
        switch (PCI_VENDOR(pa->pa_id)) {
        case PCI_VENDOR_INTEL:



Home | Main Index | Thread Index | Old Index