From owner-cvs-src@FreeBSD.ORG Sat Sep 24 20:11:07 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 85E3716A41F; Sat, 24 Sep 2005 20:11:07 +0000 (GMT) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46C7D43D48; Sat, 24 Sep 2005 20:11:07 +0000 (GMT) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j8OKB7q5015001; Sat, 24 Sep 2005 20:11:07 GMT (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j8OKB7cL015000; Sat, 24 Sep 2005 20:11:07 GMT (envelope-from phk) Message-Id: <200509242011.j8OKB7cL015000@repoman.freebsd.org> From: Poul-Henning Kamp Date: Sat, 24 Sep 2005 20:11:07 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/sys bus.h src/sys/tools bus_macro.sh X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Sep 2005 20:11:07 -0000 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)