Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Allen Briggs <briggs@netbsd.org>
List: source-changes
Date: 08/06/2000 05:08:06
Module Name:	syssrc
Committed By:	briggs
Date:		Sun Aug  6 02:08:06 UTC 2000

Modified Files:
	syssrc/sys/arch/mac68k/dev [netbsd-1-5]: if_ae.c
	syssrc/sys/arch/mac68k/include [netbsd-1-5]: bus.h
	syssrc/sys/arch/mac68k/mac68k [netbsd-1-5]: bus_space.c
	syssrc/sys/arch/mac68k/nubus [netbsd-1-5]: grf_nubus.c
	syssrc/sys/arch/mac68k/obio [netbsd-1-5]: asc.c grf_obio.c

Log Message:
Pullups approved by thorpej --
Add byte-swap and stride options to bus_space.  Allocate as normal, then
call mac68k_bus_space_handle_swapped() or mac68k_bus_space_handle_set_stride().
Stride is untested.  Swapped code works for SMC ethernet.

Add bus_space_*_stream_N functions to bus_space.

Add a DIAGNOSTIC panic if (count-using) bus_space macros are called with
a count of zero.  Some drivers do this accidentally and some bus_space
implementations will fail if count is passed as zero (they are set up in
a do-{}-while structure).

There were some bogus assumptions about bus_space_handle_t and some
function calls that didn't match prototypes--fix those here, too.


To generate a diff of this commit:
cvs rdiff -r1.67 -r1.67.26.1 syssrc/sys/arch/mac68k/dev/if_ae.c
cvs rdiff -r1.13 -r1.13.4.1 syssrc/sys/arch/mac68k/include/bus.h
cvs rdiff -r1.8 -r1.8.4.1 syssrc/sys/arch/mac68k/mac68k/bus_space.c
cvs rdiff -r1.57 -r1.57.4.1 syssrc/sys/arch/mac68k/nubus/grf_nubus.c
cvs rdiff -r1.34.4.1 -r1.34.4.2 syssrc/sys/arch/mac68k/obio/asc.c
cvs rdiff -r1.44 -r1.44.4.1 syssrc/sys/arch/mac68k/obio/grf_obio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.