From owner-freebsd-current@FreeBSD.ORG Wed Dec 15 00:58:03 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2639716A4CE for ; Wed, 15 Dec 2004 00:58:03 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FD1443D31 for ; Wed, 15 Dec 2004 00:58:03 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 9DC377A403 for ; Tue, 14 Dec 2004 16:58:02 -0800 (PST) Message-ID: <41BF8C1A.2090801@elischer.org> Date: Tue, 14 Dec 2004 16:58:02 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: FreeBSD Current Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: bus_dma question X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Dec 2004 00:58:03 -0000 The bus_dma man page is good. but it there documentation of how to extract the physical page addresses from a map? In other words, if I defien a tag for a device and then create a map using bus_dmamap_create, and then load it using bus_dmamap_load, what is the recommended method of extracting the list of addresses to feed into a DMA scatter_gather list? Looking at various drivers I'm getting more and more confused.. There is a lot of home-grown s/g list generation code out there.. is there a "right" way to do this?