From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 10 13:15:26 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6BD4E106566C for ; Wed, 10 Mar 2010 13:15:26 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 97E818FC08 for ; Wed, 10 Mar 2010 13:15:25 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA13651; Wed, 10 Mar 2010 15:00:54 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <4B979805.8090504@icyb.net.ua> Date: Wed, 10 Mar 2010 15:00:53 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.23 (X11/20100211) MIME-Version: 1.0 To: Ryan Stone , volker@vwsoft.com References: <4B96BB82.5090805@vwsoft.com> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Re: southbridge recognition X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2010 13:15:26 -0000 on 10/03/2010 00:02 Ryan Stone said the following: > Can you look at the device/vendor IDs of pci device 0:31:0? That's > always worked for me, but I've only ever done it on Intel platforms so > I'm not sure if it works on AMD chipsets. I think that better yet is to examine vendor of device 0:0:0. Something like: dev = pci_find_bsf(0, 0, 0); pci_get_vendorid(dev); With all the checks and stuff. Please keep in mind that there could be other vendors too (e.g. nvidia). Also, access to the upper RTC NVRAM bank may be disabled in chipset configuration. -- Andriy Gapon