diff options
author | phk <phk@FreeBSD.org> | 2002-10-20 17:54:17 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-10-20 17:54:17 +0000 |
commit | 0dd0d4193b0afe985d936507ffa9ebbfe25af188 (patch) | |
tree | e1399219d5db66f9d609b5e38c1edbfb872faefc | |
parent | 94a704dc5b278d6d5b421f4e1f0a4f234abc0120 (diff) | |
download | FreeBSD-src-0dd0d4193b0afe985d936507ffa9ebbfe25af188.zip FreeBSD-src-0dd0d4193b0afe985d936507ffa9ebbfe25af188.tar.gz |
Revert last commit, there actually was a -1 waaaaay down in pcireg_cfgread().
-rw-r--r-- | sys/amd64/pci/pci_bus.c | 2 | ||||
-rw-r--r-- | sys/i386/pci/pci_bus.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/amd64/pci/pci_bus.c b/sys/amd64/pci/pci_bus.c index 8ce2b49..c532a28 100644 --- a/sys/amd64/pci/pci_bus.c +++ b/sys/amd64/pci/pci_bus.c @@ -344,6 +344,8 @@ nexus_pcib_identify(driver_t *driver, device_t parent) id = nexus_pcib_read_config(0, bus, slot, func, PCIR_DEVVENDOR, 4); + if (id == -1) + continue; class = nexus_pcib_read_config(0, bus, slot, func, PCIR_CLASS, 1); subclass = nexus_pcib_read_config(0, bus, slot, func, diff --git a/sys/i386/pci/pci_bus.c b/sys/i386/pci/pci_bus.c index 8ce2b49..c532a28 100644 --- a/sys/i386/pci/pci_bus.c +++ b/sys/i386/pci/pci_bus.c @@ -344,6 +344,8 @@ nexus_pcib_identify(driver_t *driver, device_t parent) id = nexus_pcib_read_config(0, bus, slot, func, PCIR_DEVVENDOR, 4); + if (id == -1) + continue; class = nexus_pcib_read_config(0, bus, slot, func, PCIR_CLASS, 1); subclass = nexus_pcib_read_config(0, bus, slot, func, |