diff options
author | se <se@FreeBSD.org> | 1997-12-20 09:04:25 +0000 |
---|---|---|
committer | se <se@FreeBSD.org> | 1997-12-20 09:04:25 +0000 |
commit | f73c0ca9c829d44fef20bb651b46d7ac61adddac (patch) | |
tree | 7b7a198c2241f8d2f2d2c310224310859272852c /sys/i386/pci | |
parent | c8b0e5ec7be876d9163fb5d6077ea17a177aceeb (diff) | |
download | FreeBSD-src-f73c0ca9c829d44fef20bb651b46d7ac61adddac.zip FreeBSD-src-f73c0ca9c829d44fef20bb651b46d7ac61adddac.tar.gz |
Make the class code checks in function pci_cfgcheck less strict.
It failed to recognize the PCI bus in a system that had only an
old chip-set (class code 000000) and a Cyclom multiport serial
card on PCI bus 0, but no VGA card or disk or network controller.
PR: i386/5300
Submitted by: Nickolay N. Dudorov <nnd@itfs.nsk.su>
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 c4f2660..40f3b6b 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.39 1997/05/26 21:52:41 se Exp $ + * $Id: pcibus.c,v 1.40 1997/07/20 14:10:08 bde Exp $ * */ @@ -162,7 +162,7 @@ pci_cfgcheck(int maxdev) class = inl(pci_cfgenable(0, device, 0, 8, 4)) >> 8; if (bootverbose) printf("[class=%06x] ", class); - if (class == 0 || (class & 0xf8f0ff) != 0) + if (class == 0 || (class & 0xf870ff) != 0) continue; header = inb(pci_cfgenable(0, device, 0, 14, 1)); diff --git a/sys/i386/pci/pci_cfgreg.c b/sys/i386/pci/pci_cfgreg.c index c4f2660..40f3b6b 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.39 1997/05/26 21:52:41 se Exp $ + * $Id: pcibus.c,v 1.40 1997/07/20 14:10:08 bde Exp $ * */ @@ -162,7 +162,7 @@ pci_cfgcheck(int maxdev) class = inl(pci_cfgenable(0, device, 0, 8, 4)) >> 8; if (bootverbose) printf("[class=%06x] ", class); - if (class == 0 || (class & 0xf8f0ff) != 0) + if (class == 0 || (class & 0xf870ff) != 0) continue; header = inb(pci_cfgenable(0, device, 0, 14, 1)); diff --git a/sys/i386/pci/pci_pir.c b/sys/i386/pci/pci_pir.c index c4f2660..40f3b6b 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.39 1997/05/26 21:52:41 se Exp $ + * $Id: pcibus.c,v 1.40 1997/07/20 14:10:08 bde Exp $ * */ @@ -162,7 +162,7 @@ pci_cfgcheck(int maxdev) class = inl(pci_cfgenable(0, device, 0, 8, 4)) >> 8; if (bootverbose) printf("[class=%06x] ", class); - if (class == 0 || (class & 0xf8f0ff) != 0) + if (class == 0 || (class & 0xf870ff) != 0) continue; header = inb(pci_cfgenable(0, device, 0, 14, 1)); |