From owner-freebsd-questions@FreeBSD.ORG Thu Oct 9 06:59:24 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 160E516A4B3 for ; Thu, 9 Oct 2003 06:59:24 -0700 (PDT) Received: from srvexch1.nanoteq.co.za (srvexch1.nanoteq.co.za [196.30.152.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id C093543FD7 for ; Thu, 9 Oct 2003 06:59:21 -0700 (PDT) (envelope-from Riaan.Kruger@Nanoteq.com) Received: from pc-rk.nanoteq.co.za ([10.37.32.34]) by srvexch1.nanoteq.co.za with Microsoft SMTPSVC(5.0.2195.5329); Thu, 9 Oct 2003 16:02:06 +0200 From: rk47 To: freebsd-questions@freebsd.org Date: Thu, 09 Oct 2003 16:05:14 +0200 References: <44fzi2eelc.fsf@be-well.ilk.org> Lines: 36 Organization: nanoteq User-Agent: KNode/0.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-ID: X-OriginalArrivalTime: 09 Oct 2003 14:02:06.0388 (UTC) FILETIME=[EC51F740:01C38E6D] Subject: Re: vtophys information. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2003 13:59:24 -0000 Lowell Gilbert wrote: > rk47 writes: > >> Is there a simple example which uses the function vtophys. Or a "normal" >> example which uses the vtophys function in a simple way. This would be >> for driver development for FreeBSD 4.x. > > Luckily, you have the full source code for the system. I think I'll wait till I have a more specific question? :) > > Note, if relevant, that vtophys isn't the best way to handle a PCI > device because of portability concerns; see the architectural handbook > for details. Are you referring to the part in 15.2.3 that says, "This section is obsolete, and present only for historical reasons. The proper methods for dealing with these issues is to use the bus_space_dma*() functions instead. This paragraph can be removed when this section is updated to reflect that usage. However, at the moment, the API is in a bit of flux, so once that settles down, it would be good to update this section to reflect that." ,or am I lost? Because I'm struggling to find info on bus_space_dma*, and also struggling to find source code using bus_space_dma* on base 4.x. Thanx > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"