From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 5 20:03:02 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 405621065675 for ; Mon, 5 Jul 2010 20:03:02 +0000 (UTC) (envelope-from crb@chrisbowman.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 02A7D8FC12 for ; Mon, 5 Jul 2010 20:03:01 +0000 (UTC) Received: by qyk30 with SMTP id 30so2126389qyk.13 for ; Mon, 05 Jul 2010 13:02:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.28.130 with SMTP id m2mr1801507qac.146.1278360175434; Mon, 05 Jul 2010 13:02:55 -0700 (PDT) Received: by 10.229.247.1 with HTTP; Mon, 5 Jul 2010 13:02:55 -0700 (PDT) X-Originating-IP: [70.143.83.15] In-Reply-To: References: <02DA6157-87CE-47E5-91D0-ED014FB88AD0@gsoft.com.au> Date: Mon, 5 Jul 2010 13:02:55 -0700 Message-ID: From: Christopher Bowman To: "Daniel O'Connor" X-Mailman-Approved-At: Tue, 06 Jul 2010 03:02:45 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: PCI Express and drivers 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, 05 Jul 2010 20:03:02 -0000 If I could, let me ask another question. My device could potential have up to 6 BARs, that would be mapped into user space. Should I simply bundle them together in my driver into one contiguous space or should I make the user perform multiple mmap calls? If I go the multiple mmap route, how do I match a mmap call to a particular BAR? Do I use the size of the allocation? Thanks Christopher On Sat, Jun 26, 2010 at 8:11 AM, Daniel O'Connor wrote: > > On 26/06/2010, at 14:50, Christopher Bowman wrote: > >> PS what board are you using? :) > >> > > Cool, that looks like what I am looking for. I'll go and read up on > it, thanks very much. I am using the Xilinx SP605 > http://www.xilinx.com/products/devkits/EK-S6-SP605-G.htm > > perfect for playing with hardware for a frame buffer device or graphics > device. It comes with a full license for the synthesis and PCIe IP for the > device on that board which is a great deal. > > Ahh, it does look like a fun toy :) > > -- > Daniel O'Connor software and network engineer > for Genesis Software - http://www.gsoft.com.au > "The nice thing about standards is that there > are so many of them to choose from." > -- Andrew Tanenbaum > GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C > > > > > > >