summaryrefslogtreecommitdiffstats
path: root/sys/amd64/pci
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>1996-04-30 21:37:21 +0000
committerse <se@FreeBSD.org>1996-04-30 21:37:21 +0000
commitdf6f0d5e13d68a7c12ad60ca49bfaf0c1fe87fd1 (patch)
treec526852a9867947a916d46c936193364f47f0c52 /sys/amd64/pci
parent3e2b70bceab76ae09f1e2e48e52f4e065984b07e (diff)
downloadFreeBSD-src-df6f0d5e13d68a7c12ad60ca49bfaf0c1fe87fd1.zip
FreeBSD-src-df6f0d5e13d68a7c12ad60ca49bfaf0c1fe87fd1.tar.gz
Make pcibus_check() ignore Device/Vendor IDs of all 0.
Diffstat (limited to 'sys/amd64/pci')
-rw-r--r--sys/amd64/pci/pci_bus.c4
-rw-r--r--sys/amd64/pci/pci_cfgreg.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/pci/pci_bus.c b/sys/amd64/pci/pci_bus.c
index be2e364..a93a3e1 100644
--- a/sys/amd64/pci/pci_bus.c
+++ b/sys/amd64/pci/pci_bus.c
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** $Id: pcibus.c,v 1.22 1996/03/29 15:01:51 bde Exp $
+** $Id: pcibus.c,v 1.23 1996/04/07 17:32:15 bde Exp $
**
** pci bus subroutines for i386 architecture.
**
@@ -169,7 +169,7 @@ pcibus_check (void)
if (bootverbose)
printf ("%d ", device);
id = pcibus_read (pcibus_tag (0,device,0), 0);
- if (id != 0xfffffffful) {
+ if (id && id != 0xfffffffful) {
if (bootverbose) printf ("is there (id=%08lx)\n", id);
return 1;
}
diff --git a/sys/amd64/pci/pci_cfgreg.c b/sys/amd64/pci/pci_cfgreg.c
index be2e364..a93a3e1 100644
--- a/sys/amd64/pci/pci_cfgreg.c
+++ b/sys/amd64/pci/pci_cfgreg.c
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** $Id: pcibus.c,v 1.22 1996/03/29 15:01:51 bde Exp $
+** $Id: pcibus.c,v 1.23 1996/04/07 17:32:15 bde Exp $
**
** pci bus subroutines for i386 architecture.
**
@@ -169,7 +169,7 @@ pcibus_check (void)
if (bootverbose)
printf ("%d ", device);
id = pcibus_read (pcibus_tag (0,device,0), 0);
- if (id != 0xfffffffful) {
+ if (id && id != 0xfffffffful) {
if (bootverbose) printf ("is there (id=%08lx)\n", id);
return 1;
}
OpenPOWER on IntegriCloud