From f73c0ca9c829d44fef20bb651b46d7ac61adddac Mon Sep 17 00:00:00 2001 From: se Date: Sat, 20 Dec 1997 09:04:25 +0000 Subject: 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 --- sys/i386/pci/pci_bus.c | 4 ++-- sys/i386/pci/pci_cfgreg.c | 4 ++-- sys/i386/pci/pci_pir.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sys/i386/pci') 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)); -- cgit v1.1