From owner-freebsd-current Thu Jun 29 05:28:12 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id FAA22658 for current-outgoing; Thu, 29 Jun 1995 05:28:12 -0700 Received: from news.rim.or.jp (news.rim.or.jp [202.255.181.3]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id FAA22651 ; Thu, 29 Jun 1995 05:28:07 -0700 Received: (from uucp@localhost) by news.rim.or.jp (8.6.10+2.4W/3.3W-rim1.0) with UUCP id VAA17434; Thu, 29 Jun 1995 21:28:02 +0900 Received: from us.and.or.jp (localhost [127.0.0.1]) by us.and.or.jp (8.6.11/3.4W) with ESMTP id UAA00299; Thu, 29 Jun 1995 20:51:18 +0900 Message-Id: <199506291151.UAA00299@us.and.or.jp> Reply-To: sa2c@st.rim.or.jp To: se@freebsd.org cc: current@freebsd.org Subject: new PCI probe code and ASUS AP4 Date: Thu, 29 Jun 1995 20:51:17 +0900 From: NIIMI Satoshi Sender: current-owner@freebsd.org Precedence: bulk I've noticed that the new PCI probe code doesn't find a PCI bus on my ASUS PVI-486AP4 (Aries chipset). The problem is that if out(CONF1_ADDR_PORT, CONF1_ENABLE_CHK), then inl(CONF1_ADDR_PORT) is equal to CONF1_ENABLE_CHK (not CONF1_ENABLE). Here is patch that works for me. --- pcibus.c.org Thu Jun 29 13:21:19 1995 +++ pcibus.c Thu Jun 29 20:48:36 1995 @@ -164,7 +164,7 @@ result = inl (CONF1_ADDR_PORT); outl (CONF1_ADDR_PORT, oldval); - if (result == CONF1_ENABLE) { + if (result & CONF1_ENABLE) { pci_mechanism = 1; pci_maxdevice = 32; return; -- 新見覚志 / NIIMI Satoshi