From owner-cvs-all Mon Jul 26 20:58: 1 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 76E6615228; Mon, 26 Jul 1999 20:57:57 -0700 (PDT) (envelope-from wpaul@FreeBSD.org) Received: (from wpaul@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id UAA60081; Mon, 26 Jul 1999 20:54:53 -0700 (PDT) (envelope-from wpaul@FreeBSD.org) Message-Id: <199907270354.UAA60081@freefall.freebsd.org> From: Bill Paul Date: Mon, 26 Jul 1999 20:54:52 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/pci if_tireg.h Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk wpaul 1999/07/26 20:54:52 PDT Modified files: sys/pci if_tireg.h Log: On FreeBSD/i386, when you use the SYS_RES_MEMORY resource to allocate a PCI memory mapped region, rman_get_bushandle() returns what happens to be a kernel virtual address pointing to the base of the PCI shared memory window. However this is not the behavior on all platforms: the only thing you should do with the bushandle is pass it to the bus_spare_read()/bus_space_write() routines. If you actually do want the kernel virtual address of the base of the PCI memory window, you need to use rman_get_virtual(). The problem is that at the moment, rman_get_virtual() returns a physical address, which is bad. In order to get the kernel virtual address we need, we have to play with it a little. Presumeably this behavior will be changed, but in the meantime the Tigon driver won't work. So for the moment, I'm adding a kludge to make things happy on the alpha: the correct kernel virtual address is calculated from the value returned by rman_get_virtual(). This should be removed once rman_get_virtual() starts doing the right thing. This should make the Tigon actuall work on the alpha now. Revision Changes Path 1.9 +2 -1 src/sys/pci/if_tireg.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message