Date: Sat, 24 Sep 2005 20:11:07 +0000 (UTC) From: Poul-Henning Kamp <phk@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys bus.h src/sys/tools bus_macro.sh Message-ID: <200509242011.j8OKB7cL015000@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
phk 2005-09-24 20:11:07 UTC
FreeBSD src repository
Modified files:
sys/sys bus.h
Added files:
sys/tools bus_macro.sh
Log:
Add convenience macros for bus_space usage that doesn't require specification
of bus tag+handle.
Instead of
bus_space_write_1(sc->tag, sc->handle, ...)
this macros offer
bus_write_1(sc->resource, ...)
The name+argument transformation is constant and the the macros are
generated (by hand) by the script in tools/bus_macro.sh.
Revision Changes Path
1.73 +135 -0 src/sys/sys/bus.h
1.1 +68 -0 src/sys/tools/bus_macro.sh (new)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509242011.j8OKB7cL015000>
