summaryrefslogtreecommitdiffstats
path: root/sys/amd64/pci
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-08-22 19:54:11 +0000
committerpeter <peter@FreeBSD.org>1999-08-22 19:54:11 +0000
commit52ce825162aaa3f24e407868e7e8472ce7650dcf (patch)
treed30f4ac2bdbfcf6cc1789fa38863ccc332b7b8ee /sys/amd64/pci
parentef805d5021b9ffca8e36ae39b320ad1678ad1b98 (diff)
downloadFreeBSD-src-52ce825162aaa3f24e407868e7e8472ce7650dcf.zip
FreeBSD-src-52ce825162aaa3f24e407868e7e8472ce7650dcf.tar.gz
Make the identify routine add itself with priority 100 to make sure it
goes after the npx/apm devices and any other motherboard devices that may get added down the track.
Diffstat (limited to 'sys/amd64/pci')
-rw-r--r--sys/amd64/pci/pci_bus.c8
-rw-r--r--sys/amd64/pci/pci_cfgreg.c8
2 files changed, 12 insertions, 4 deletions
diff --git a/sys/amd64/pci/pci_bus.c b/sys/amd64/pci/pci_bus.c
index a7b4e82..08cba7f 100644
--- a/sys/amd64/pci/pci_bus.c
+++ b/sys/amd64/pci/pci_bus.c
@@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: pcibus.c,v 1.45 1999/08/09 21:12:18 wpaul Exp $
+ * $Id: pcibus.c,v 1.46 1999/08/10 09:22:21 peter Exp $
*
*/
@@ -443,7 +443,11 @@ nexus_pcib_identify(driver_t *driver, device_t parent)
class, subclass,
&busnum);
if (s) {
- child = BUS_ADD_CHILD(parent, 0,
+ /*
+ * Add at priority 100 to make sure we
+ * go after any motherboard resources
+ */
+ child = BUS_ADD_CHILD(parent, 100,
"pcib", busnum);
device_set_desc(child, s);
}
diff --git a/sys/amd64/pci/pci_cfgreg.c b/sys/amd64/pci/pci_cfgreg.c
index a7b4e82..08cba7f 100644
--- a/sys/amd64/pci/pci_cfgreg.c
+++ b/sys/amd64/pci/pci_cfgreg.c
@@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: pcibus.c,v 1.45 1999/08/09 21:12:18 wpaul Exp $
+ * $Id: pcibus.c,v 1.46 1999/08/10 09:22:21 peter Exp $
*
*/
@@ -443,7 +443,11 @@ nexus_pcib_identify(driver_t *driver, device_t parent)
class, subclass,
&busnum);
if (s) {
- child = BUS_ADD_CHILD(parent, 0,
+ /*
+ * Add at priority 100 to make sure we
+ * go after any motherboard resources
+ */
+ child = BUS_ADD_CHILD(parent, 100,
"pcib", busnum);
device_set_desc(child, s);
}
OpenPOWER on IntegriCloud