Subject: Re: uiomove and bus-ified drivers
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: Chris G. Demetriou <cgd@pa.dec.com>
List: tech-kern
Date: 12/18/1997 10:09:01
> On Wed, 17 Dec 1997 22:58:45 +0100 
>  Leo Weppelman <leo@wau.mis.ah.nl> wrote:
> 
>  > It is a driver for a Leonardo VME graphics card. The framebuffer maps
>  > into VME memory. The read/write functions used the uiomove().
>  > 
>  > I was more or less hoping I missed something. That extra copy bothers
>  > me.
> 
> Um, bus_space_map() with the "linear" flag should make this work OK.  Also,
> if you make this a machine-dependent driver, we can get by until
> bus_space_mmap() is implemented.

"the linear flag should make this work OK, if mapping with the linear
flag is supported."  Remember, not all hardware can _do_ linear
mappings, so you should handle the case where a linear mapping request
fails.



chris