From owner-freebsd-current Thu Dec 31 12:33:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA15743 for freebsd-current-outgoing; Thu, 31 Dec 1998 12:33:36 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA15738 for ; Thu, 31 Dec 1998 12:33:34 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.1/8.9.1) id PAA06966; Thu, 31 Dec 1998 15:33:11 -0500 (EST) (envelope-from wollman) Date: Thu, 31 Dec 1998 15:33:11 -0500 (EST) From: Garrett Wollman Message-Id: <199812312033.PAA06966@khavrinen.lcs.mit.edu> To: Warner Losh Cc: Bill Paul , current@FreeBSD.ORG Subject: Re: bus_space_foo and bus_dmamap_foo In-Reply-To: <199812311928.MAA00612@harmony.village.org> References: <199812311858.NAA05191@skynet.ctr.columbia.edu> <199812311928.MAA00612@harmony.village.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG < said: > True. Likely the NetBSD interface should be adopted, unless there is > a compelling reason not to do this. A significant problem with all of this stuff is that it pre-dates DFR's bus code. This is a problem because it recapitulates the bus hierarchy which new-bus is there to construct for us. What would be preferable would be for this mechanism to be integrated with new-bus and the resource manager, so that when a driver requests a resource, it automatically gets any other context necessary to access that resource. The resource manager already has some hooks, in particular the r_vaddr member in struct resource, for that purpose, as well as the entire distinction between allocating and activating a resource. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message