Subject: Re: uiomove and bus-ified drivers
To: Leo Weppelman <leo@wau.mis.ah.nl>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-kern
Date: 12/17/1997 22:23:14
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.

Why use read/write?  mmap is your friend!

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                            Home: +1 408 866 1912
NAS: M/S 258-6                                       Work: +1 650 604 0935
Moffett Field, CA 94035                             Pager: +1 415 428 6939