From owner-cvs-all@FreeBSD.ORG Sat Sep 24 20:07:04 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A36316A41F; Sat, 24 Sep 2005 20:07:04 +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 261AE43D49; Sat, 24 Sep 2005 20:07:04 +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 j8OK73Tr014786; Sat, 24 Sep 2005 20:07:03 GMT (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j8OK73Xt014785; Sat, 24 Sep 2005 20:07:03 GMT (envelope-from phk) Message-Id: <200509242007.j8OK73Xt014785@repoman.freebsd.org> From: Poul-Henning Kamp Date: Sat, 24 Sep 2005 20:07:03 +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/kern subr_rman.c src/sys/sys rman.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Sep 2005 20:07:04 -0000 phk 2005-09-24 20:07:03 UTC FreeBSD src repository Modified files: sys/kern subr_rman.c sys/sys rman.h Log: Split struct resource in an external and internal part. The external part is still called 'struct resource' but the contents is now visible to drivers etc. This makes it part of the device driver ABI so it not be changed lightly. A comment to this effect is in place. The internal part is called 'struct resource_i' and contain its external counterpart as one field. Move the bus_space tag+handle into the external struct resource, this removes the need for device drivers to even know about these fields in order to use bus_space to access hardware. (More in following commit). Revision Changes Path 1.44 +57 -40 src/sys/kern/subr_rman.c 1.29 +21 -8 src/sys/sys/rman.h