At 10:32 AM 01/24/2001, David Rufino wrote:
>* Mike Smith ([EMAIL PROTECTED]) 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 ?

You can use

vaddr_t pmap_mapdev(paddr,size)

to map any physical memory address.

Of course you never know when these "old friend" routines will disappear.

Dennis



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to