Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jan 2001 15:32:28 +0000
From:      David Rufino <daverufino@btinternet.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: driver help
Message-ID:  <20010124153228.A5828@btinternet.com>

next in thread | raw e-mail | index | archive | help
* 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010124153228.A5828>