John Baldwin a4104d1c3b Fix the code to look up the BIOS IRQ for a given link device by reading
the IRQ set by the BIOS in existing devices to actually get the correct
bus number of the child PCI bus.  I was not reading the bus number from
the bridge device correctly.  The __BUS_ACCESSOR() macros (from which
pcib_get_bus() is built) assume that the passed in argument is a child
device.  However, at the time I'm reading the bus there is no child
device yet, so I was passing in the pcib device as the child device.
The parent of the pcib device probably returned an error in the case of
a host bridge, thus resulting in random stack garbage for the bus number.
For PCI-PCI bridges, the bus number being used was actually the subvendor
of the PCI-PCI bridge device itself.

MFC after:	1 week
2005-11-21 22:01:16 +00:00
..
2005-11-06 15:13:42 +00:00
2005-11-13 13:26:37 +00:00
2005-09-27 16:57:44 +00:00
2005-05-10 12:02:18 +00:00
2005-11-21 04:17:43 +00:00
2005-10-19 00:25:39 +00:00
2005-09-11 18:39:03 +00:00
2005-10-11 07:30:06 +00:00
2005-10-23 09:05:51 +00:00
2005-07-29 00:20:50 +00:00
2005-09-27 09:11:44 +00:00
2005-11-12 19:14:21 +00:00
2005-05-19 21:16:50 +00:00
2005-04-08 05:22:58 +00:00
2005-02-27 22:01:09 +00:00
2005-10-29 03:48:24 +00:00
2005-11-08 15:42:12 +00:00
2005-11-09 03:37:52 +00:00
2005-09-22 05:56:32 +00:00
2005-09-21 22:45:14 +00:00
2005-11-19 15:08:05 +00:00