Subject: Re: bus_spacing a FreeBSD driver
To: Matthias Scheler <email@example.com>
From: Jason Thorpe <firstname.lastname@example.org>
Date: 09/11/1998 15:06:06
On 11 Sep 1998 22:21:22 GMT
email@example.com (Matthias Scheler) wrote:
> So how do I change this? Can I modify this structure, map it properly
> and still peek into it? Or will I have to use bus_map_*_read() with
> a base address and some kind of offset?
> [Sorry, if these question are stupid but this is my first encounter
> with kernel hardware handling.]
Base and offset; you cannot use structs:
(1) different arch's will have different struct padding!
(2) the device may be mapped sparse by the hardware.
Jason R. Thorpe firstname.lastname@example.org
NASA Ames Research Center Home: +1 408 866 1912
NAS: M/S 258-5 Work: +1 650 604 0935
Moffett Field, CA 94035 Pager: +1 650 940 5942