From owner-freebsd-questions@FreeBSD.ORG Sun May 24 01:17:46 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 93E73901 for ; Sun, 24 May 2015 01:17:46 +0000 (UTC) Received: from mail-vn0-x236.google.com (mail-vn0-x236.google.com [IPv6:2607:f8b0:400c:c0f::236]) (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 50FE715DA for ; Sun, 24 May 2015 01:17:46 +0000 (UTC) Received: by vnbf129 with SMTP id f129so3501165vnb.1 for ; Sat, 23 May 2015 18:17:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=3ZZcp9RlaH4NWjjh8VpFzrLXwimwINcy8M4YfUTq2Ik=; b=ySXpXYUhYdGz9z4cDlv3vAVeEgrhjPLN33Bf4IkZTWmjpb+kYzyFmquodq3oOugFo2 D2d266RjYUF+MXhW5cNgCgN2/B7wWmhvkO/otg1r9nFj7qPoNvZ1T9C/4A4Cz4KKdYqR XkIERh50DrKQON1qGxsdCdFpLiVHddyU3bkIfwbFo0Onz1peDpwwvoK2vxlHfuuk2a7/ 8n0Ki5vna7vARV4m3+AAWR8N7PChyBblo4hKDcSF9upg2Nl5uGKlzz3aW3P5o8tPeaY3 YuNlXCEloTiNEYctwGeilpEgYbwm21rPiUlivFXeSF+GtnQFMS048bBVRGkMEKRgIA0t a/mQ== X-Received: by 10.52.5.2 with SMTP id o2mr13593162vdo.97.1432430265059; Sat, 23 May 2015 18:17:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.185.134 with HTTP; Sat, 23 May 2015 18:17:24 -0700 (PDT) From: Pratik Singhal Date: Sun, 24 May 2015 06:47:24 +0530 Message-ID: Subject: Map virtual address to physical address To: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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:17:46 -0000 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