Module Name: src Committed By: dyoung Date: Fri Jul 1 17:10:01 UTC 2011
Added Files: src/sys/arch/algor/include: bus_defs.h bus_funcs.h src/sys/arch/alpha/include: bus_defs.h bus_funcs.h src/sys/arch/amd64/include: bus_defs.h bus_funcs.h src/sys/arch/arc/include: bus_defs.h bus_funcs.h src/sys/arch/arm/include: bus_defs.h bus_funcs.h src/sys/arch/atari/include: bus_defs.h bus_funcs.h src/sys/arch/bebox/include: bus_defs.h bus_funcs.h src/sys/arch/cats/include: bus_defs.h bus_funcs.h src/sys/arch/cobalt/include: bus_defs.h bus_funcs.h src/sys/arch/evbarm/include: bus_defs.h bus_funcs.h src/sys/arch/evbmips/include: bus_defs.h bus_funcs.h src/sys/arch/evbppc/include: bus_defs.h bus_funcs.h src/sys/arch/hp700/include: bus_defs.h bus_funcs.h src/sys/arch/i386/include: bus_defs.h bus_funcs.h src/sys/arch/ibmnws/include: bus_defs.h bus_funcs.h src/sys/arch/iyonix/include: bus_defs.h bus_funcs.h src/sys/arch/landisk/include: bus_defs.h bus_funcs.h src/sys/arch/macppc/include: bus_defs.h bus_funcs.h src/sys/arch/mvmeppc/include: bus_defs.h bus_funcs.h src/sys/arch/netwinder/include: bus_defs.h bus_funcs.h src/sys/arch/ofppc/include: bus_defs.h bus_funcs.h src/sys/arch/powerpc/include: bus_defs.h bus_funcs.h src/sys/arch/prep/include: bus_defs.h bus_funcs.h src/sys/arch/sandpoint/include: bus_defs.h bus_funcs.h src/sys/arch/sbmips/include: bus_defs.h bus_funcs.h src/sys/arch/sgimips/include: bus_defs.h bus_funcs.h src/sys/arch/sh3/include: bus_defs.h bus_funcs.h src/sys/arch/sparc/include: bus_defs.h bus_funcs.h src/sys/arch/sparc64/include: bus_defs.h bus_funcs.h src/sys/arch/x86/include: bus_defs.h bus_funcs.h Log Message: Per discussion at <http://mail-index.netbsd.org/tech-kern/2010/04/02/msg007941.html>, divide each machine's bus.h into bus_defs.h (constants & data types) and bus_funcs.h (macro implementations of bus_space(9) routines and MD prototypes). Note that some bus_space(9) routines' implementation will move to .c files from inline subroutines or macros in .h files. I've only made the split for machine architectures where there is PCI. All of the non-PCI-having architectures will require a similar split. These #include files are not referenced by any (committed) Makefiles or header files, yet. Changes to Makefiles, to <sys/bus.h>, and to some more machine-dependent files will dribble in before I throw the switch. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/sys/arch/algor/include/bus_defs.h \ src/sys/arch/algor/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/alpha/include/bus_defs.h \ src/sys/arch/alpha/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/amd64/include/bus_defs.h \ src/sys/arch/amd64/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/arc/include/bus_defs.h \ src/sys/arch/arc/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/arm/include/bus_defs.h \ src/sys/arch/arm/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/atari/include/bus_defs.h \ src/sys/arch/atari/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/bebox/include/bus_defs.h \ src/sys/arch/bebox/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/cats/include/bus_defs.h \ src/sys/arch/cats/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/cobalt/include/bus_defs.h \ src/sys/arch/cobalt/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/evbarm/include/bus_defs.h \ src/sys/arch/evbarm/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/evbmips/include/bus_defs.h \ src/sys/arch/evbmips/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/evbppc/include/bus_defs.h \ src/sys/arch/evbppc/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/hp700/include/bus_defs.h \ src/sys/arch/hp700/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/i386/include/bus_defs.h \ src/sys/arch/i386/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/ibmnws/include/bus_defs.h \ src/sys/arch/ibmnws/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/iyonix/include/bus_defs.h \ src/sys/arch/iyonix/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/landisk/include/bus_defs.h \ src/sys/arch/landisk/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/macppc/include/bus_defs.h \ src/sys/arch/macppc/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/mvmeppc/include/bus_defs.h \ src/sys/arch/mvmeppc/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/netwinder/include/bus_defs.h \ src/sys/arch/netwinder/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/ofppc/include/bus_defs.h \ src/sys/arch/ofppc/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/powerpc/include/bus_defs.h \ src/sys/arch/powerpc/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/prep/include/bus_defs.h \ src/sys/arch/prep/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/sandpoint/include/bus_defs.h \ src/sys/arch/sandpoint/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/sbmips/include/bus_defs.h \ src/sys/arch/sbmips/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/sgimips/include/bus_defs.h \ src/sys/arch/sgimips/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/sh3/include/bus_defs.h \ src/sys/arch/sh3/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/sparc/include/bus_defs.h \ src/sys/arch/sparc/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/sparc64/include/bus_defs.h \ src/sys/arch/sparc64/include/bus_funcs.h cvs rdiff -u -r0 -r1.1 src/sys/arch/x86/include/bus_defs.h \ src/sys/arch/x86/include/bus_funcs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.