diff options
author | peter <peter@FreeBSD.org> | 1999-08-22 19:54:11 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-08-22 19:54:11 +0000 |
commit | 52ce825162aaa3f24e407868e7e8472ce7650dcf (patch) | |
tree | d30f4ac2bdbfcf6cc1789fa38863ccc332b7b8ee /sys | |
parent | ef805d5021b9ffca8e36ae39b320ad1678ad1b98 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/amd64/pci/pci_bus.c | 8 | ||||
-rw-r--r-- | sys/amd64/pci/pci_cfgreg.c | 8 | ||||
-rw-r--r-- | sys/i386/isa/pcibus.c | 8 | ||||
-rw-r--r-- | sys/i386/pci/pci_bus.c | 8 | ||||
-rw-r--r-- | sys/i386/pci/pci_cfgreg.c | 8 | ||||
-rw-r--r-- | sys/i386/pci/pci_pir.c | 8 |
6 files changed, 36 insertions, 12 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); } diff --git a/sys/i386/isa/pcibus.c b/sys/i386/isa/pcibus.c index a7b4e82..08cba7f 100644 --- a/sys/i386/isa/pcibus.c +++ b/sys/i386/isa/pcibus.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/i386/pci/pci_bus.c b/sys/i386/pci/pci_bus.c index a7b4e82..08cba7f 100644 --- a/sys/i386/pci/pci_bus.c +++ b/sys/i386/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/i386/pci/pci_cfgreg.c b/sys/i386/pci/pci_cfgreg.c index a7b4e82..08cba7f 100644 --- a/sys/i386/pci/pci_cfgreg.c +++ b/sys/i386/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); } diff --git a/sys/i386/pci/pci_pir.c b/sys/i386/pci/pci_pir.c index a7b4e82..08cba7f 100644 --- a/sys/i386/pci/pci_pir.c +++ b/sys/i386/pci/pci_pir.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); } |