On Sun, 2004-03-21 at 17:34 -0500, Jeff Garzik wrote:
Tell driver writers to call a standard platform function with a {dma|mmio|pio|vmalloc} handle+size+len for {dma|mmio|pio|vmalloc} mmap setup, and {fault|nopage} handler. ;-) IMO they shouldn't have to care about the details.
Don't let drivers see the {fault|nopage} handler. On most arches it can
probably continue to be nopage(); other arches may use the
newly-proposed fault() or perhaps just put all the PTEs in place up
front. The driver shouldn't be given an opportunity to care.