Re: [RFC/PATCH] iomap: Add specific address space __iomap for iomap pointers

2008-02-17 Thread Benjamin Herrenschmidt
On Mon, 2008-02-18 at 14:35 +1100, Benjamin Herrenschmidt wrote: > The current iomap stuff (pci_iomap, ioport_map, pcim_iomap, ...) is > confusing as it returns pointers in the _miomem address space. > > However, even if that would work on some architectures, the result > of those functions is -n

[RFC/PATCH] iomap: Add specific address space __iomap for iomap pointers

2008-02-17 Thread Benjamin Herrenschmidt
The current iomap stuff (pci_iomap, ioport_map, pcim_iomap, ...) is confusing as it returns pointers in the _miomem address space. However, even if that would work on some architectures, the result of those functions is -not- to be used as an __iomem, with accessors such as readl/writel, but only