Only filter out the PCI_ID_REG in irongate_conf_read().
This commit is contained in:
parent
a88b4adee6
commit
6658cbc629
|
@ -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 @@ irongate_conf_read(void *ipv, pcitag_t tag, int offset)
|
|||
* 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));
|
||||
|
|
Loading…
Reference in New Issue