Subject: Re: mmap'ing framebuffer memory in MI drivers...
To: Jonathan Stone <jonathan@DSG.Stanford.EDU>
From: Jason Thorpe <>
List: tech-kern
Date: 03/03/1999 16:58:07
On Wed, 03 Mar 1999 16:55:30 -0800 
 Jonathan Stone <jonathan@DSG.Stanford.EDU> wrote:

 > pmap_phys_address() does <machine>_ptob(). I want a hook to do
 > <machine>_btop(), inside the driver's d_mmap entrypoint.
 > See, e.g., the shenanigans in sys/dev/tc/sfb.c: it currently has
 > #ifdefs to use alpha_btop() or mips_btop() or whatever.

That's bus_space_mmap(), and it gives a value that you pass to

bus_space_mmap() isn't implemented yet, but needs to be.

        -- Jason R. Thorpe <>