Subject: Re: bus_space question
To: Thomas Klausner <firstname.lastname@example.org>
From: Leo Weppelman <email@example.com>
Date: 03/21/2000 13:46:51
On Tue, Mar 21, 2000 at 10:30:03AM +0100, Thomas Klausner wrote:
> When I use bus_space_write_2 or _4, can I just use constant values and
> it will work on all architectures, or do I have to hide the arguments
> in htonl or something like that?
Yes, you can just use constant values. The bus_space functions take care of
the CPU <-> bus endian conversions.
> And if the hardware is expecting bits to be set, and I use
> bus_space_write_1 for the byte the bit is in, is b_s_w_1(tag, handle,
> offset, 1<<3) gonna work?
This should work as expected.