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