From owner-freebsd-drivers@FreeBSD.ORG Fri Apr 30 16:52:35 2010 Return-Path: Delivered-To: freebsd-drivers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F19C4106566C for ; Fri, 30 Apr 2010 16:52:35 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 8FF0F8FC12 for ; Fri, 30 Apr 2010 16:52:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o3UGmeTw022468; Fri, 30 Apr 2010 10:48:40 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 30 Apr 2010 10:48:53 -0600 (MDT) Message-Id: <20100430.104853.29593248078744249.imp@bsdimp.com> To: indranil@virident.com From: "M. Warner Losh" In-Reply-To: <28631E6913C8074E95A698E8AC93D09101AAF44A@caexch1.virident.info> References: <28631E6913C8074E95A698E8AC93D09101AAF44A@caexch1.virident.info> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-drivers@FreeBSD.org Subject: Re: Question about pci programming X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2010 16:52:36 -0000 In message: <28631E6913C8074E95A698E8AC93D09101AAF44A@caexch1.virident.info> "Indranil Bhattacharya" writes: : In freebsd, how do I set a dma mask for a pci device ? In linux the : kernel api is pci_set_dma_mask(). In particular, I will like to enable : PCI double address cycle mapping (64 bit addressing) for our device. Isn't this just done with the bus_dma routines passing in a 64-bit address mask? Warner