Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jul 2012 19:42:00 +0200 (CEST)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        Venkat Duvvuru <venkatduvvuru.ml@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: PCI BAR mmap
Message-ID:  <alpine.BSF.2.00.1207311941230.2311@wojtek.tensor.gdynia.pl>
In-Reply-To: <CAGdae7Z1J5FUzHi%2BFahZYjNmVUsBdpsNSWxkiaoUJTfC09fr5w@mail.gmail.com>
References:  <CAGdae7Z1J5FUzHi%2BFahZYjNmVUsBdpsNSWxkiaoUJTfC09fr5w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Hi,
> How to mmap PCI  BARs from userland in freebsd?
> In Linux the PCI BAR appears as a file in the sysfs file system. How can I
> access PCI BAR as a file in freebsd to mmap it?
if you know the adress (pciconf tool, or by system call i think) then map 
portion of /dev/mem

/dev/mem equals to physical addresses.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1207311941230.2311>