From owner-freebsd-x11@FreeBSD.ORG Sat Oct 6 22:15:35 2007 Return-Path: Delivered-To: x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8C5816A41A for ; Sat, 6 Oct 2007 22:15:35 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 72A3513C458 for ; Sat, 6 Oct 2007 22:15:35 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.1/8.14.1) with ESMTP id l96M3lKR015181 for ; Sat, 6 Oct 2007 16:03:47 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.1/8.14.1/Submit) with ESMTP id l96M3lbo015178 for ; Sat, 6 Oct 2007 16:03:47 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sat, 6 Oct 2007 16:03:47 -0600 (MDT) From: Warren Block To: x11@freebsd.org Message-ID: <20071006152756.C15040@wonkity.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (wonkity.com [127.0.0.1]); Sat, 06 Oct 2007 16:03:47 -0600 (MDT) Cc: Subject: Using /dev/mem to read video BIOS ROM X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Oct 2007 22:15:35 -0000 Xorg says my video BIOS ROM is at 0xDFEC0000: romsave = pciReadLong(Tag, PCI_MAP_ROM_REG); (in Pci.c/handlePciBIOS) Using /dev/mem to read the ROM works, but at offset 0xC0000. "romsave & 0x000fffff" can't be the general way to convert from address to /dev/mem offset. -Warren Block * Rapid City, South Dakota USA