John Baldwin
9debb53220
According to the ACPI spec, the bus number of the child PCI bus of a host
...
to PCI bridge can be read be evaluating the _BBN method of the host to PCI
device. Unfortunately, there appear to be some lazy/ignorant/moronic/
whatever BIOS writers that return 0 for _BBN for all host to PCI bridges in
the system. On a system with a single host to PCI bridge this is not a
problem as the child bus of that single bridge will be bus 0 anyway.
However, on systems with multiple host to PCI bridges and l/i/m/w BIOS
writers this is a major problem resulting in all but the first host to
PCI bridge failing to attach. So, this adds a workaround.
If the _BBN of a host to PCI bridge is zero and pcib0 already exists
and is not us, the we use _ADR to look up our PCI function and slot
(we currently assume we are on bus 0) and use that to call
host_pcib_get_busno() to try and extract our bus number from config
registers on the host to PCI bridge device. If that fails, then we make
an evil assumption that ACPI's _SB_ namespace lays out the host to PCI
bridges in ascending order and use our pcib unit number as our bus
number.
Approved by: re
2002-11-22 18:11:13 +00:00
..
2002-10-20 16:00:43 +00:00
2002-11-22 18:11:13 +00:00
2002-10-09 08:50:26 +00:00
2002-11-13 17:40:15 +00:00
2002-10-09 09:30:57 +00:00
2002-05-24 05:21:36 +00:00
2002-11-14 05:08:22 +00:00
2002-11-12 10:22:49 +00:00
2002-11-08 21:30:26 +00:00
2002-11-21 16:06:10 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-11-06 19:42:59 +00:00
2002-11-07 22:23:46 +00:00
2002-10-15 21:35:01 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-11-06 20:16:39 +00:00
2002-11-06 20:34:38 +00:00
2002-11-14 05:12:02 +00:00
2002-09-25 02:42:43 +00:00
2002-10-27 12:27:04 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-09-20 18:15:40 +00:00
2002-04-01 21:31:13 +00:00
2002-11-14 23:49:09 +00:00
2002-11-14 23:49:09 +00:00
2002-09-28 17:15:38 +00:00
2002-09-28 17:15:38 +00:00
2002-11-06 21:19:17 +00:00
2002-10-03 02:13:00 +00:00
2002-11-14 23:54:55 +00:00
2002-10-31 00:45:49 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-10-07 06:18:50 +00:00
2002-11-11 10:28:44 +00:00
2002-11-11 15:26:08 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-11-15 14:36:33 +00:00
2002-11-08 21:04:44 +00:00
2002-11-14 23:54:55 +00:00
2002-11-08 18:27:30 +00:00
2002-11-06 22:58:55 +00:00
2002-10-16 17:07:41 +00:00
2002-11-14 23:54:55 +00:00
2002-09-22 08:51:31 +00:00
2002-10-18 12:06:01 +00:00
2002-11-07 22:23:46 +00:00
2002-10-02 04:47:52 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-11-07 22:23:46 +00:00
2002-10-14 22:13:51 +00:00
2002-10-12 00:12:31 +00:00
2002-06-02 20:05:59 +00:00
2002-10-15 21:35:01 +00:00
2002-11-14 23:54:55 +00:00
2002-07-21 05:16:14 +00:00
2002-11-14 23:54:55 +00:00
2002-09-26 18:40:06 +00:00
2002-11-10 03:45:49 +00:00
2002-10-21 20:08:28 +00:00
2002-10-29 00:20:47 +00:00
2002-04-04 23:44:42 +00:00
2002-09-23 18:54:32 +00:00
2002-11-14 13:25:53 +00:00
2002-10-16 08:48:39 +00:00
2002-03-23 16:01:49 +00:00
2002-11-07 22:21:38 +00:00
2002-11-14 23:54:55 +00:00
2002-09-20 16:49:36 +00:00
2002-11-14 23:54:55 +00:00
2002-04-01 21:31:13 +00:00
2002-09-20 16:51:09 +00:00
2002-09-21 17:28:17 +00:00
2002-11-18 06:19:12 +00:00
2002-11-14 14:02:32 +00:00
2002-11-14 05:20:39 +00:00
2002-03-25 21:22:35 +00:00
2002-11-22 17:50:47 +00:00
2002-11-17 04:52:37 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-03-23 15:36:13 +00:00
2002-09-27 21:56:35 +00:00
2002-09-27 22:02:46 +00:00
2002-10-28 17:08:07 +00:00
2002-10-02 07:44:29 +00:00
2002-11-14 23:54:55 +00:00
2002-11-08 18:32:57 +00:00
2002-10-20 18:43:11 +00:00
2002-11-18 05:56:43 +00:00
2002-11-14 23:54:55 +00:00
2002-11-10 03:45:49 +00:00
2002-11-14 23:49:09 +00:00
2002-11-07 19:56:21 +00:00
2002-11-07 22:22:10 +00:00
2002-11-14 23:49:09 +00:00
2002-09-21 21:43:49 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-11-11 10:45:31 +00:00
2002-11-06 21:37:21 +00:00
2002-11-02 04:18:10 +00:00
2002-11-14 23:54:55 +00:00
2002-09-20 16:53:19 +00:00
2002-03-20 02:08:01 +00:00
2002-11-09 12:55:07 +00:00
2002-10-20 22:50:13 +00:00
2002-11-07 21:19:47 +00:00
2002-11-08 21:10:53 +00:00
2002-11-14 23:49:09 +00:00
2002-11-14 19:54:33 +00:00
2002-11-09 12:55:07 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-11-07 21:25:49 +00:00
2002-11-17 14:22:37 +00:00
2002-11-07 21:52:51 +00:00
2002-11-14 23:49:09 +00:00
2002-11-14 23:54:55 +00:00
2002-11-07 22:25:13 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00
2002-11-14 23:54:55 +00:00