From owner-freebsd-drivers@FreeBSD.ORG Tue Jan 8 18:42:11 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9D34872B for ; Tue, 8 Jan 2013 18:42:11 +0000 (UTC) (envelope-from rj@cyclaero.com) Received: from mo6-p00-ob.rzone.de (mo6-p00-ob.rzone.de [IPv6:2a01:238:20a:202:5300::1]) by mx1.freebsd.org (Postfix) with ESMTP id 3787A31D for ; Tue, 8 Jan 2013 18:42:10 +0000 (UTC) X-RZG-AUTH: :O2kGeEG7b/pS1E6gSHOyjPKyNsg/5l1He+DgCy9/8FSej6CwUysqfN3Dd+qW8pifIOtG X-RZG-CLASS-ID: mo00 Received: from rolf.projectworld.net (b150f525.virtua.com.br [177.80.245.37]) by smtp.strato.de (joses mo47) (RZmta 31.12 DYNA|AUTH) with (AES128-SHA encrypted) ESMTPA id K00516p08HIvkM ; Tue, 8 Jan 2013 19:42:06 +0100 (CET) Subject: Re: How to map device addresses into user space Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: "Dr. Rolf Jansen" In-Reply-To: Date: Tue, 8 Jan 2013 16:42:01 -0200 Content-Transfer-Encoding: 7bit Message-Id: <785A9EEB-D670-46CD-80A3-763A9F745131@cyclaero.com> References: <201301071011.49234.jhb@freebsd.org> <201301071421.10559.jhb@freebsd.org> <8BDABFD4-D371-49D4-B21C-EBCD7C86B47C@cyclaero.com> To: freebsd-drivers@freebsd.org X-Mailer: Apple Mail (2.1283) X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2013 18:42:11 -0000 Am 07.01.2013 um 23:37 schrieb Mehmet Erol Sanliturk: > On Mon, Jan 7, 2013 at 3:40 PM, Dr. Rolf Jansen wrote: > >> ... And finally I got it working .... > > If it is suitable for you , is it possible to supply your sources > with a permissive license for using them / studying them and learning > how to develop such a software? I took the PCI Device example from the "FreeBSD Architecture Handbook" as the base, and I added the necessary functionality for BAR and other memory mapping. I created also a user-sapce tool, which connects to the PCI device driver by ioctl() and mmap(), and prints some results. I prepared a .zip-Archive containing these files, and a Makefile for the device driver. Enhanced sources for mypci device driver: Original sources for mypci device dirver: If you have questions, then please don't hesitate to send a note to this thread on this list. Best regards Rolf