Date: Tue, 8 Jan 2013 16:42:01 -0200 From: "Dr. Rolf Jansen" <rj@cyclaero.com> To: freebsd-drivers@freebsd.org Subject: Re: How to map device addresses into user space Message-ID: <785A9EEB-D670-46CD-80A3-763A9F745131@cyclaero.com> In-Reply-To: <CAOgwaMsSZfr0SRi4t6sXvGP_zh2dmetQK9R39b9%2BY4cUUnDc=w@mail.gmail.com> References: <DFC983B8-91B2-4ED8-89B0-FC4BD4AB2576@cyclaero.com> <201301071011.49234.jhb@freebsd.org> <F62E8A3F-7D16-49F9-9375-5FFE2CBAAF09@cyclaero.com> <201301071421.10559.jhb@freebsd.org> <8BDABFD4-D371-49D4-B21C-EBCD7C86B47C@cyclaero.com> <CAOgwaMsSZfr0SRi4t6sXvGP_zh2dmetQK9R39b9%2BY4cUUnDc=w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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: <http://www.SimpleCalcX.com/mypci.zip> Original sources for mypci device dirver: <http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/pci.html> If you have questions, then please don't hesitate to send a note to this thread on this list. Best regards Rolf
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?785A9EEB-D670-46CD-80A3-763A9F745131>