Re: is BAR access out of scope for libpci?

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

 



On Wednesday, June 25, 2008 10:23 am Sebastian Kuzminsky wrote:
> 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?

AFAIK it should map both I/O and memory regions, yes.

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

I'm not sure how many users on on this particular list, but it is widely used 
by X drivers, so if you have questions, xorg@xxxxxxxxxxxxxxxxxxxxx would be a 
good place to ask.

Jesse
--
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