Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci #if 0 the (way bogus) PCI_CLASS_COMMUNICATIONS/P...



details:   https://anonhg.NetBSD.org/src/rev/3bc329419110
branches:  trunk
changeset: 485052:3bc329419110
user:      cgd <cgd%NetBSD.org@localhost>
date:      Mon Apr 17 16:45:04 2000 +0000

description:
#if 0 the (way bogus) PCI_CLASS_COMMUNICATIONS/PCI_SUBCLASS_BRIDGE_PCI (!!!)
match pointed out (again?) by Johan Danielsson, after i repeatedly told
him not to do something similar in com_cardbus.

diffstat:

 sys/dev/pci/puc.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r 53d69c2a2543 -r 3bc329419110 sys/dev/pci/puc.c
--- a/sys/dev/pci/puc.c Mon Apr 17 16:30:40 2000 +0000
+++ b/sys/dev/pci/puc.c Mon Apr 17 16:45:04 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: puc.c,v 1.3 1999/02/06 06:29:54 cgd Exp $      */
+/*     $NetBSD: puc.c,v 1.4 2000/04/17 16:45:04 cgd Exp $      */
 
 /*
  * Copyright (c) 1996, 1998, 1999
@@ -121,6 +121,12 @@
        if (desc != NULL)
                return (10);
 
+#if 0
+       /*
+        * XXX this is obviously bogus.  eventually, we might want
+        * XXX to match communications/modem, etc., but that needs some
+        * XXX special work in the match fn.
+        */
        /*
         * Match class/subclass, so we can tell people to compile kernel
         * with options that cause this driver to spew.
@@ -128,6 +134,7 @@
        if (PCI_CLASS(pa->pa_class) == PCI_CLASS_COMMUNICATIONS &&
            PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_BRIDGE_PCI)
                return (1);
+#endif
 
        return (0);
 }



Home | Main Index | Thread Index | Old Index