From owner-cvs-all Thu Sep 5 10:14:34 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 706CF37B401 for ; Thu, 5 Sep 2002 10:14:27 -0700 (PDT) Received: from mail.speakeasy.net (mail15.speakeasy.net [216.254.0.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0556143E72 for ; Thu, 5 Sep 2002 10:14:26 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 13565 invoked from network); 5 Sep 2002 17:14:25 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail15.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 5 Sep 2002 17:14:25 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.5/8.12.5) with ESMTP id g85HEOBv011698; Thu, 5 Sep 2002 13:14:24 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200209051707.g85H780f056337@freefall.freebsd.org> Date: Thu, 05 Sep 2002 13:14:24 -0400 (EDT) From: John Baldwin To: John Baldwin Subject: RE: cvs commit: src/sys/i386/pci pci_cfgreg.c Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 05-Sep-2002 John Baldwin wrote: > jhb 2002/09/05 10:07:08 PDT > > Modified files: > sys/i386/pci pci_cfgreg.c > Log: > Test PCIbios.ventry against 0 to see if we found a PCIbios entry point, > not the 'entry' member. The entry point is formed from both a base and > a relative entry point. 'entry' is that relative offset. It is perfectly > valid to have an entry point with a relative offset of 0. PCIbios.ventry > is the virtual address of the entry point that takes both 'base' and > 'entry' into account, thus it is the proper variable to test to see if we > have an entry point or not. This enables the PCI bios to be found now on one test machine I have where it was found before but wasn't used: Using $PIR table, 12 entries at 0xc00f8000 PCI-Only Interrupts: none Location Bus Device Pin Link IRQs slot 1 0 7 A 0x1 3 4 5 6 7 9 10 11 12 14 15 slot 1 0 7 B 0x2 3 4 5 6 7 9 10 11 12 14 15 slot 1 0 7 C 0x3 3 4 5 6 7 9 10 11 12 14 15 slot 1 0 7 D 0x4 3 4 5 6 7 9 10 11 12 14 15 slot 2 0 8 A 0x2 3 4 5 6 7 9 10 11 12 14 15 slot 2 0 8 B 0x3 3 4 5 6 7 9 10 11 12 14 15 slot 2 0 8 C 0x4 3 4 5 6 7 9 10 11 12 14 15 slot 2 0 8 D 0x1 3 4 5 6 7 9 10 11 12 14 15 slot 3 0 9 A 0x3 3 4 5 6 7 9 10 11 12 14 15 slot 3 0 9 B 0x4 3 4 5 6 7 9 10 11 12 14 15 slot 3 0 9 C 0x1 3 4 5 6 7 9 10 11 12 14 15 slot 3 0 9 D 0x2 3 4 5 6 7 9 10 11 12 14 15 slot 4 1 7 A 0x5 3 4 9 10 11 12 14 15 slot 4 1 7 B 0x6 3 4 9 10 11 12 14 15 slot 4 1 7 C 0x7 3 4 9 10 11 12 14 15 slot 4 1 7 D 0x8 3 4 9 10 11 12 14 15 slot 5 1 8 A 0x6 3 4 9 10 11 12 14 15 slot 5 1 8 B 0x7 3 4 9 10 11 12 14 15 slot 5 1 8 C 0x8 3 4 9 10 11 12 14 15 slot 5 1 8 D 0x5 3 4 9 10 11 12 14 15 slot 6 1 11 A 0x7 3 4 9 10 11 12 14 15 slot 6 1 11 B 0x8 3 4 9 10 11 12 14 15 slot 6 1 11 C 0x5 3 4 9 10 11 12 14 15 slot 6 1 11 D 0x6 3 4 9 10 11 12 14 15 slot 7 1 10 A 0x8 3 4 9 10 11 12 14 15 slot 7 1 10 B 0x5 3 4 9 10 11 12 14 15 slot 7 1 10 C 0x6 3 4 9 10 11 12 14 15 slot 7 1 10 D 0x7 3 4 9 10 11 12 14 15 embedded 1 9 A 0x8 3 4 9 10 11 12 14 15 embedded 0 11 A 0x4 3 4 5 6 7 9 10 11 12 14 15 embedded 0 2 A 0x5 15 embedded 0 2 D 0x4 3 4 5 6 7 9 10 11 12 14 15 embedded 0 2 A 0x5 15 embedded 0 2 D 0x4 3 4 5 6 7 9 10 11 12 14 15 pcib0: at pcibus 0 on motherboard (PCI BIOS routing table debug dump stuff coming later) Speaking of the interrupt routing table, there is a BIOS call you can make to retrieve the darn thing and we should probably do that first and only search memory to find one if the BIOS call fails. Comments? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message