Re: PCI userland access non-mmap APIs, kernel access to legacyspace

From: Benjamin Herrenschmidt
Date: Mon Jun 18 2007 - 21:18:22 EST



> But adding read/write is fine with me. In fact, having read/write hooks
> for the memory backed resource files is also nice, since it makes
> dealing with them on the command line a bit easier.

Plan is to use iomap so I get both IO and MMIO for (almost) free :-)

> > Also, while at it, I would like to introduce a pair of in-kernel
> > interfaces:
>
> What's the other half of the pair?

Heh, indeed, there is none, I initially had a separate function for mem
and for io and at the last minute though "ugh, let's just use a struct
resource !" :-)

> Yeah, sounds like a good additional abstraction for that interface.
> Should make porting it to other arches easier (I talked with kyle about
> this last week, so maybe this'll give him motivation to do it for
> parisc).

Ok, good. I'll do some code asap.

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/