Subject: CVS commit: syssrc/sys/dev/pci
To: None <source-changes@netbsd.org>
From: Bill Sommerfeld <sommerfeld@netbsd.org>
List: source-changes
Date: 05/18/2002 21:14:11
Module Name:	syssrc
Committed By:	sommerfeld
Date:		Sat May 18 18:14:11 UTC 2002

Modified Files:
	syssrc/sys/dev/pci: pci.c

Log Message:
In pci_probe_device(), correct test for whether the device is behind a
pci-pci bridge (and thus needs its interrupts "swizzled").

Formerly, pci_probe_device() assumed pci busses other than bus zero
were bridged; however, much recent x86 hardware supports multiple
primary pci busses differently -- there is a system-wide bus numbering
scheme.  Now, we instead look at the (newly introduced) sc_bridgetag
value in the parent bus to figure out if there's a ppb or equivalent
in the way.

This fixed at least one case where the i386 MP branch gets interrupt
mapping wrong.


To generate a diff of this commit:
cvs rdiff -r1.63 -r1.64 syssrc/sys/dev/pci/pci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.