diff options
author | se <se@FreeBSD.org> | 1997-04-09 11:34:50 +0000 |
---|---|---|
committer | se <se@FreeBSD.org> | 1997-04-09 11:34:50 +0000 |
commit | 49ba77ffa0d9896f93bd9df0fc0426c2710fbd99 (patch) | |
tree | 990944634fe60e48428be667528dacbab792e7f7 /sys/i386/pci | |
parent | fc13633668db1fbab06dbc9f61a5dba6cb04b9e4 (diff) | |
download | FreeBSD-src-49ba77ffa0d9896f93bd9df0fc0426c2710fbd99.zip FreeBSD-src-49ba77ffa0d9896f93bd9df0fc0426c2710fbd99.tar.gz |
Mask out revision register in consistency test of class register.
Diffstat (limited to 'sys/i386/pci')
-rw-r--r-- | sys/i386/pci/pci_bus.c | 4 | ||||
-rw-r--r-- | sys/i386/pci/pci_cfgreg.c | 4 | ||||
-rw-r--r-- | sys/i386/pci/pci_pir.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/i386/pci/pci_bus.c b/sys/i386/pci/pci_bus.c index a383688..31de543 100644 --- a/sys/i386/pci/pci_bus.c +++ b/sys/i386/pci/pci_bus.c @@ -1,6 +1,6 @@ /************************************************************************** ** -** $Id: pcibus.c,v 1.33 1997/04/09 09:15:03 se Exp $ +** $Id: pcibus.c,v 1.34 1997/04/09 09:16:27 se Exp $ ** ** pci bus subroutines for i386 architecture. ** @@ -177,7 +177,7 @@ pcibus_check (void) class = pcibus_read (pcibus_tag (0,device,0), 8); if (bootverbose) printf ("[class=%x] ", class >> 8); - if (!class || (class & 0xf8f0ff00) != 0) + if ((class & 0xffffff00) == 0 || (class & 0xf8f0ff00) != 0) continue; header = pcibus_read (pcibus_tag (0,device,0), 12); diff --git a/sys/i386/pci/pci_cfgreg.c b/sys/i386/pci/pci_cfgreg.c index a383688..31de543 100644 --- a/sys/i386/pci/pci_cfgreg.c +++ b/sys/i386/pci/pci_cfgreg.c @@ -1,6 +1,6 @@ /************************************************************************** ** -** $Id: pcibus.c,v 1.33 1997/04/09 09:15:03 se Exp $ +** $Id: pcibus.c,v 1.34 1997/04/09 09:16:27 se Exp $ ** ** pci bus subroutines for i386 architecture. ** @@ -177,7 +177,7 @@ pcibus_check (void) class = pcibus_read (pcibus_tag (0,device,0), 8); if (bootverbose) printf ("[class=%x] ", class >> 8); - if (!class || (class & 0xf8f0ff00) != 0) + if ((class & 0xffffff00) == 0 || (class & 0xf8f0ff00) != 0) continue; header = pcibus_read (pcibus_tag (0,device,0), 12); diff --git a/sys/i386/pci/pci_pir.c b/sys/i386/pci/pci_pir.c index a383688..31de543 100644 --- a/sys/i386/pci/pci_pir.c +++ b/sys/i386/pci/pci_pir.c @@ -1,6 +1,6 @@ /************************************************************************** ** -** $Id: pcibus.c,v 1.33 1997/04/09 09:15:03 se Exp $ +** $Id: pcibus.c,v 1.34 1997/04/09 09:16:27 se Exp $ ** ** pci bus subroutines for i386 architecture. ** @@ -177,7 +177,7 @@ pcibus_check (void) class = pcibus_read (pcibus_tag (0,device,0), 8); if (bootverbose) printf ("[class=%x] ", class >> 8); - if (!class || (class & 0xf8f0ff00) != 0) + if ((class & 0xffffff00) == 0 || (class & 0xf8f0ff00) != 0) continue; header = pcibus_read (pcibus_tag (0,device,0), 12); |