Re: Prefered method to map PCI memory into userspace.

From: David S. Miller
Date: Sat Sep 27 2003 - 18:54:07 EST


On 27 Sep 2003 07:09:01 +0200
Andi Kleen <ak@xxxxxxx> wrote:

> "David S. Miller" <davem@xxxxxxxxxx> writes:
>
> > If someone is looking for something to do, it would be incredibly
> > value to make it so that all arches support this, and in particular
> > get right the case of mmap()'ing the PCI host bridge.
> >
> > If this were done, the PCI domain code in xfree86 could be enabled
> > for all Linux platforms, not just the ones that have this implemented
> > properly.
>
> What semantics would it have? Can the "seek offset" just be the
> bus address?
>
> If yes then it would be trivial to implement for x86/x86-64

I did everything for x86 already, egrep for "PCI_MMAP" under
arch/i386/.

The uncompleted part is the PCI host bridge mmap() support, I just
never got around to it. Someone can easily complete it.
-
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/