How to map device addresses into user space

Dr. Rolf Jansen rj at cyclaero.com
Tue Jan 8 18:42:11 UTC 2013


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



More information about the freebsd-drivers mailing list