From owner-freebsd-questions@FreeBSD.ORG Sun May 24 01:27:34 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F3D789C5 for ; Sun, 24 May 2015 01:27:33 +0000 (UTC) Received: from mail-qg0-x22f.google.com (mail-qg0-x22f.google.com [IPv6:2607:f8b0:400d:c04::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AEC3C16AC for ; Sun, 24 May 2015 01:27:33 +0000 (UTC) Received: by qgez61 with SMTP id z61so29377361qge.1 for ; Sat, 23 May 2015 18:27:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=/h1qoY3qp5IkY6K+hN6U9f3SMDK75gyUaEsSaXKHdg0=; b=nU0+VafwLX59WYwbdxwmavTeZgvtJZSbrmakeWsq8pSIEWhZL6Dl8GhdPo5DN0wRWO uA72ml7cO7Qpcx2RQ9Jib94JMBD0/ArgUR+6nc7XzPOytM2bbURMVg4VwQVXJKUavr7f oB673zgk3+aXPjpCecIqqj2qlk6F4PFL7rYCK/n20RFzho48XqevACg7Abz0ogw/ezLg hTOYvAeOi8zR7VlHYfwty2lpput8r7lGuFGMaYIbsxxAJETmGkgScUfKCveREN7dMdX6 pyw3XugqolA7Yrd2iWs7Cs7ZCIeur9yjQl8DJtYMNAT6G+VKx9LKW+48HnhK6FCflmtG Be6w== X-Received: by 10.140.31.54 with SMTP id e51mr19740497qge.95.1432430852865; Sat, 23 May 2015 18:27:32 -0700 (PDT) Received: from localhost.localdomain ([209.181.150.218]) by mx.google.com with ESMTPSA id w17sm4228641qkw.32.2015.05.23.18.27.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 May 2015 18:27:31 -0700 (PDT) Message-ID: <55612902.8090402@gmail.com> Date: Sat, 23 May 2015 19:27:30 -0600 From: jd1008 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Map virtual address to physical address References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 May 2015 01:27:34 -0000 On 05/23/2015 07:17 PM, Pratik Singhal wrote: > Hello, I need to convert a kernel virtual address to a physical address , > as I need to program a DMA controller for the FreeBSD kernel. > > Is there any macro/function to do that in the FreeBSD kernel ? > > Regards, > Pratik Singhal > _______________________________________________ > 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" > See macro vtop