Subject: Re: uiomove and bus-ified drivers
To: Leo Weppelman <email@example.com>
From: Jason Thorpe <firstname.lastname@example.org>
Date: 12/17/1997 22:23:14
On Wed, 17 Dec 1997 22:58:45 +0100
Leo Weppelman <email@example.com> 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
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 firstname.lastname@example.org
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