From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 29 16:10:27 2004 Return-Path: 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 5E10716A4D6 for ; Tue, 29 Jun 2004 16:10:27 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 981AA43D5F for ; Tue, 29 Jun 2004 16:10:25 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.11/8.12.11) with ESMTP id i5TG8MVM072463; Tue, 29 Jun 2004 10:08:22 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 29 Jun 2004 10:08:48 -0600 (MDT) Message-Id: <20040629.100848.48201340.imp@bsdimp.com> To: tobe_better@hotmail.com From: "M. Warner Losh" In-Reply-To: References: X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: PCI memory alloc..! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 16:10:27 -0000 In message: "Auge Mike" writes: : While I was trying to track to find out how a device alloc a new memory : resource, I have been little confused on finding out how the new PCI device : can deal with a case when the activation calls pmap_mapdev???? : : What I need to understand that what will happen if pmap_mapdev allocated a : new space that dose not match what is expected by the device and determined : by r_start and r_end ?? The pci bus deals with allocating and mapping the memory. Getting the bus handle and bus tags will let you access it via the bus_space routines or the bus_dma routines. pmap_mamdev is done under the covers and you'll not need to worry about such things. Warner