Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/pci Only filter out the PCI_ID_REG in irongat...



details:   https://anonhg.NetBSD.org/src/rev/5113ef3de3c4
branches:  trunk
changeset: 514969:5113ef3de3c4
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Sep 15 04:31:40 2001 +0000

description:
Only filter out the PCI_ID_REG in irongate_conf_read().

diffstat:

 sys/arch/alpha/pci/irongate_pci.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 18e672b4eaf0 -r 5113ef3de3c4 sys/arch/alpha/pci/irongate_pci.c
--- a/sys/arch/alpha/pci/irongate_pci.c Sat Sep 15 02:42:26 2001 +0000
+++ b/sys/arch/alpha/pci/irongate_pci.c Sat Sep 15 04:31:40 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: irongate_pci.c,v 1.2 2000/06/29 08:58:47 mrg Exp $ */
+/* $NetBSD: irongate_pci.c,v 1.3 2001/09/15 04:31:40 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: irongate_pci.c,v 1.2 2000/06/29 08:58:47 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: irongate_pci.c,v 1.3 2001/09/15 04:31:40 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -133,7 +133,7 @@
         * point for getting at it from machdep code.
         */
        irongate_decompose_tag(ipv, tag, NULL, &d, NULL);
-       if (d == IRONGATE_PCIHOST_DEV)
+       if (d == IRONGATE_PCIHOST_DEV && offset == PCI_ID_REG)
                return ((pcireg_t) -1);
        
        return (irongate_conf_read0(ipv, tag, offset));



Home | Main Index | Thread Index | Old Index