fix check for bus number when root dev is behind PPB

This commit is contained in:
cgd 1997-03-21 01:26:08 +00:00
parent 26c8aefcc3
commit a823d31f7e
5 changed files with 24 additions and 24 deletions

View File

@ -1,7 +1,7 @@
/* $NetBSD: dec_2100_a50.c,v 1.20 1997/01/15 22:13:36 cgd Exp $ */
/* $NetBSD: dec_2100_a50.c,v 1.21 1997/03/21 01:26:08 cgd Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
* All rights reserved.
*
* Author: Chris G. Demetriou
@ -184,7 +184,7 @@ dec_2100_a50_device_register(dev, aux)
else {
struct pcibus_attach_args *pba = aux;
if (b->bus != pba->pba_bus)
if ((b->slot / 1000) != pba->pba_bus)
return;
pcidev = dev;
@ -201,7 +201,7 @@ dec_2100_a50_device_register(dev, aux)
else {
struct pci_attach_args *pa = aux;
if (b->slot != pa->pa_device)
if ((b->slot % 1000) != pa->pa_device)
return;
/* XXX function? */
@ -256,7 +256,7 @@ dec_2100_a50_device_register(dev, aux)
else {
struct pci_attach_args *pa = aux;
if (b->slot != pa->pa_device)
if ((b->slot % 1000) != pa->pa_device)
return;
/* XXX function? */

View File

@ -1,7 +1,7 @@
/* $NetBSD: dec_axppci_33.c,v 1.18 1997/01/15 22:13:37 cgd Exp $ */
/* $NetBSD: dec_axppci_33.c,v 1.19 1997/03/21 01:26:10 cgd Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
* All rights reserved.
*
* Author: Chris G. Demetriou
@ -167,7 +167,7 @@ dec_axppci_33_device_register(dev, aux)
else {
struct pcibus_attach_args *pba = aux;
if (b->bus != pba->pba_bus)
if ((b->slot / 1000) != pba->pba_bus)
return;
pcidev = dev;
@ -184,7 +184,7 @@ dec_axppci_33_device_register(dev, aux)
else {
struct pci_attach_args *pa = aux;
if (b->slot != pa->pa_device)
if ((b->slot % 1000) != pa->pa_device)
return;
/* XXX function? */
@ -239,7 +239,7 @@ dec_axppci_33_device_register(dev, aux)
else {
struct pci_attach_args *pa = aux;
if (b->slot != pa->pa_device)
if ((b->slot % 1000) != pa->pa_device)
return;
/* XXX function? */

View File

@ -1,7 +1,7 @@
/* $NetBSD: dec_eb164.c,v 1.6 1997/01/15 22:13:38 cgd Exp $ */
/* $NetBSD: dec_eb164.c,v 1.7 1997/03/21 01:26:11 cgd Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
* All rights reserved.
*
* Author: Chris G. Demetriou
@ -164,7 +164,7 @@ dec_eb164_device_register(dev, aux)
else {
struct pcibus_attach_args *pba = aux;
if (b->bus != pba->pba_bus)
if ((b->slot / 1000) != pba->pba_bus)
return;
pcidev = dev;
@ -181,7 +181,7 @@ dec_eb164_device_register(dev, aux)
else {
struct pci_attach_args *pa = aux;
if (b->slot != pa->pa_device)
if ((b->slot % 1000) != pa->pa_device)
return;
/* XXX function? */
@ -236,7 +236,7 @@ dec_eb164_device_register(dev, aux)
else {
struct pci_attach_args *pa = aux;
if (b->slot != pa->pa_device)
if ((b->slot % 1000) != pa->pa_device)
return;
/* XXX function? */

View File

@ -1,7 +1,7 @@
/* $NetBSD: dec_kn20aa.c,v 1.18 1997/01/15 22:13:38 cgd Exp $ */
/* $NetBSD: dec_kn20aa.c,v 1.19 1997/03/21 01:26:13 cgd Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
* All rights reserved.
*
* Author: Chris G. Demetriou
@ -167,7 +167,7 @@ dec_kn20aa_device_register(dev, aux)
else {
struct pcibus_attach_args *pba = aux;
if (b->bus != pba->pba_bus)
if ((b->slot / 1000) != pba->pba_bus)
return;
pcidev = dev;
@ -184,7 +184,7 @@ dec_kn20aa_device_register(dev, aux)
else {
struct pci_attach_args *pa = aux;
if (b->slot != pa->pa_device)
if ((b->slot % 1000) != pa->pa_device)
return;
/* XXX function? */
@ -239,7 +239,7 @@ dec_kn20aa_device_register(dev, aux)
else {
struct pci_attach_args *pa = aux;
if (b->slot != pa->pa_device)
if ((b->slot % 1000) != pa->pa_device)
return;
/* XXX function? */

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_kn8ae.c,v 1.2 1997/03/12 21:09:43 cgd Exp $ */
/* $NetBSD: dec_kn8ae.c,v 1.3 1997/03/21 01:26:14 cgd Exp $ */
/*
* Copyright (c) 1997 by Matthew Jacob
@ -143,7 +143,7 @@ dec_kn8ae_device_register(dev, aux)
else {
struct pcibus_attach_args *pba = aux;
if (b->bus != pba->pba_bus)
if ((b->slot / 1000) != pba->pba_bus)
return;
pcidev = dev;
@ -160,7 +160,7 @@ dec_kn8ae_device_register(dev, aux)
else {
struct pci_attach_args *pa = aux;
if (b->slot != pa->pa_device)
if ((b->slot % 1000) != pa->pa_device)
return;
/* XXX function? */
@ -211,7 +211,7 @@ dec_kn8ae_device_register(dev, aux)
else {
struct pci_attach_args *pa = aux;
if (b->slot != pa->pa_device)
if ((b->slot % 1000) != pa->pa_device)
return;
/* XXX function? */