Subject: Re: Enhancements to bus_space_barrier
To: None <eeh@netbsd.org>
From: Allen Briggs <briggs@wasabisystems.com>
List: tech-kern
Date: 10/18/2001 23:32:43
On Fri, Oct 19, 2001 at 02:52:02AM -0000, eeh@netbsd.org wrote:
> After going through the specification for bus_space_barrier()
> for the fifth time, and finding it lacking, I'd like to propose
> the following enhancement:

Except for one nit, I think this is an improvement.

I think the old ones need to be defined as:

 	BUS_SPACE_BARRIER_READ		BUS_SPACE_BARRIER_READ_READ |
 					BUS_SPACE_BARRIER_READ_WRITE
 	BUS_SPACE_BARRIER_WRITE		BUS_SPACE_BARRIER_WRITE_WRITE |
 					BUS_SPACE_BARRIER_WRITE_READ

to maintain the existing semantics.

-allen

-- 
 Allen Briggs                     briggs@wasabisystems.com
 http://www.wasabisystems.com/    Quality NetBSD CDs, Sales, Support, Service
NetBSD dev. for _your_ Alpha, ARM, M68K, MIPS, PowerPC, SH3, Sparc, x86, etc...