Re: [PATCH] fix ppc ioremap prototype

David S. Miller
2003-09-04T09:36:45Z

On Thu, 4 Sep 2003 19:21:34 +1000 (EST)
Paul Mackerras <paulus@samba.org> wrote:

> What I would prefer is if we passed a struct device pointer, a
> resource pointer and an offset to ioremap. Then we could just have
> bus addresses in PCI device resources instead of having to translate
> them into physical addresses.

You only need a resource in order to do this. Then you can
stick the upper bits, controller number, whatever in the unused
resource flag bits.