summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/pcibus.c
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>1997-12-20 09:04:25 +0000
committerse <se@FreeBSD.org>1997-12-20 09:04:25 +0000
commitf73c0ca9c829d44fef20bb651b46d7ac61adddac (patch)
tree7b7a198c2241f8d2f2d2c310224310859272852c /sys/i386/isa/pcibus.c
parentc8b0e5ec7be876d9163fb5d6077ea17a177aceeb (diff)
downloadFreeBSD-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/isa/pcibus.c')
-rw-r--r--sys/i386/isa/pcibus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/isa/pcibus.c b/sys/i386/isa/pcibus.c
index c4f2660..40f3b6b 100644
--- a/sys/i386/isa/pcibus.c
+++ b/sys/i386/isa/pcibus.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));
OpenPOWER on IntegriCloud