From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 7 14:39:09 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 179B016A4DA for ; Mon, 7 Aug 2006 14:39:09 +0000 (UTC) (envelope-from nike_d@cytexbg.com) Received: from office.suresupport.com (office.suresupport.com [213.145.98.15]) by mx1.FreeBSD.org (Postfix) with SMTP id 20DD043D46 for ; Mon, 7 Aug 2006 14:39:07 +0000 (GMT) (envelope-from nike_d@cytexbg.com) Received: (qmail 47669 invoked by uid 1026); 7 Aug 2006 14:41:02 -0000 Received: from 213.145.98.14 by office.suresupport.com (envelope-from , uid 1004) with qmail-scanner-1.23 (f-prot: 4.4.2/3.14.11. Clear:RC:1(213.145.98.14):. Processed in 7.719504 secs); 07 Aug 2006 14:41:02 -0000 Received: from unknown (HELO ndenev.office.suresupport.com) (213.145.98.14) by office.suresupport.com with SMTP; 7 Aug 2006 14:40:54 -0000 From: Niki Denev To: freebsd-hackers@freebsd.org Date: Mon, 7 Aug 2006 17:35:43 +0300 User-Agent: KMail/1.9.3 References: <44D3C333.3030702@cytexbg.com> <44D735E5.4030809@FreeBSD.org> <200608071628.15316.nike_d@cytexbg.com> In-Reply-To: <200608071628.15316.nike_d@cytexbg.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608071735.43462.nike_d@cytexbg.com> Subject: Re: linux ioremap equivalent on freebsd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Aug 2006 14:39:09 -0000 On Monday 07 August 2006 16:28, Niki Denev wrote: > On Monday 07 August 2006 15:45, Suleiman Souhlal wrote: > > > > I think the equivalent of linux's ioremap() in FreeBSD is pmap_mapdev(). > > > > -- Suleiman > > Thanks! > > Is there a reason that there is no manual page about pmap_mapdev, and it's > not mentioned in the other pmap_* man pages? > As far as i understand, there is no need for pmap_mapdev to be used for reading memory from pci device, because it returns the same address as pmap_get_virtual() ? (at least here :) ) Is this right?