Re: is BAR access out of scope for libpci?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed June 25 2008 10:06:25 Jesse Barnes wrote:
> On Wednesday, June 25, 2008 8:51 am Sebastian Kuzminsky wrote:
> >
> > Sound sane?  Am I missing something?
>
> You should also check out libpciaccess.  Ian Romanick wrote it not too long
> ago to use with the X.Org X server.  It supports the needs of the userspace
> graphics drivers in X, so it may have everything you need.
>
> git://git.freedesktop.org/git/xorg/lib/libpciaccess

That looks like it'd work!

pci_device_map_region() can be used to mmap both memory and IO BARs,
is that true?

And pci_device_cfg_read() and _write() can be used to access the Config
space.  Perfect.


Are there any users of libpciaccess on this list?  How do you find
working with it?


-- 
Sebastian Kuzminsky
"The brain is [a machine]. The fact that it's made out of meat is a
red herring."  -- David Adler <http://www.spectrum.ieee.org/print/6268>

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux