Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Don't match boards with a PCI class code of `I2O'.



details:   https://anonhg.NetBSD.org/src/rev/af731d5b1b17
branches:  trunk
changeset: 513421:af731d5b1b17
user:      ad <ad%NetBSD.org@localhost>
date:      Mon Jul 30 23:29:08 2001 +0000

description:
Don't match boards with a PCI class code of `I2O'.

diffstat:

 sys/dev/pci/mly.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r b4c6629d296b -r af731d5b1b17 sys/dev/pci/mly.c
--- a/sys/dev/pci/mly.c Mon Jul 30 22:51:06 2001 +0000
+++ b/sys/dev/pci/mly.c Mon Jul 30 23:29:08 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mly.c,v 1.1 2001/07/30 19:59:06 ad Exp $       */
+/*     $NetBSD: mly.c,v 1.2 2001/07/30 23:29:08 ad Exp $       */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -230,6 +230,9 @@
        mpi = mly_ident;
        maxmpi = mpi + sizeof(mly_ident) / sizeof(mly_ident[0]);
 
+       if (PCI_CLASS(pa->pa_class) == PCI_CLASS_I2O)
+               return (NULL);
+
        for (; mpi < maxmpi; mpi++) {
                if (PCI_VENDOR(pa->pa_id) != mpi->vendor ||
                    PCI_PRODUCT(pa->pa_id) != mpi->product)



Home | Main Index | Thread Index | Old Index