Re: Prefered method to map PCI memory into userspace.

From: Benjamin Herrenschmidt
Date: Fri Sep 26 2003 - 19:42:21 EST



>
> Albert Cahalan wrote a patch, for 2.6, that makes mmappable all PCI device
> memory regions. They show up as files in the appropriate subdirectories
> under /proc/bus/pci. See http://lkml.org/lkml/2003/7/13/258 for the
> patch and details.

mmap of /proc/bus/pci is a standard thing in 2.4 already and so in 2.6
as well, though not all archs may implement it..

Regarding bus mastering, there's no way to do that without a kernel
driver.

Ben.


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