From owner-freebsd-hackers Wed Jan 24 7:34:49 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from tungsten.btinternet.com (tungsten.btinternet.com [194.73.73.81]) by hub.freebsd.org (Postfix) with ESMTP id 7373937B400 for ; Wed, 24 Jan 2001 07:34:32 -0800 (PST) Received: from host213-122-255-218.btinternet.com ([213.122.255.218] helo=mail.btinternet.com) by tungsten.btinternet.com with smtp (Exim 3.03 #83) id 14LRwN-0004zT-00 for freebsd-hackers@freebsd.org; Wed, 24 Jan 2001 15:34:31 +0000 Date: Wed, 24 Jan 2001 15:32:28 +0000 From: David Rufino To: freebsd-hackers@freebsd.org Subject: Re: driver help Message-ID: <20010124153228.A5828@btinternet.com> Mail-Followup-To: David Rufino , freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Mike Smith (msmith@freebsd.org) wrote: > > I am currently trying to port the compatability layer of a linux > > kernel driver to FreeBSD 4.x. The bit I'm stuck on at the moment > > is, how do I map arbitrary physical address space to kernel virtual > > address space (ala ioremap() in linux) ? Thanks. > > You don't. > > If this is a PCI device, it's all done for you when you call > bus_alloc_resource. Ideally I would do this, except I'm porting a compatability layer for a binary module, so I need a function which simply maps I/O space to kernel virtual address space. Is it possible, if not desirable ? -David To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message