public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* ioremap definition in generic io.h
@ 2010-09-29  7:59 Jonas Bonn
  2010-09-29 10:53 ` Jiri Slaby
  0 siblings, 1 reply; 8+ messages in thread
From: Jonas Bonn @ 2010-09-29  7:59 UTC (permalink / raw)
  To: linux-kernel

Hi,

I'm wondering about the usefulness of the definition of ioremap and
__ioremap in asm-generic/io.h.  How is this intended to be used?  How
are the page tables for this mapping supposed to be constructed?

The definition is as follows:

/*
 * Change "struct page" to physical address.
 */
static inline void __iomem *ioremap(phys_addr_t offset, unsigned long
size)
{
        return (void __iomem*) (unsigned long)offset;
}

#define __ioremap(offset, size, flags)  ioremap(offset, size)

Regards,
Jonas





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-10-01  8:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-29  7:59 ioremap definition in generic io.h Jonas Bonn
2010-09-29 10:53 ` Jiri Slaby
2010-09-29 11:07   ` Jonas Bonn
2010-09-30 11:45     ` Arnd Bergmann
2010-09-30 11:52       ` Jonas Bonn
2010-09-30 12:04         ` Arnd Bergmann
2010-10-01  8:35           ` Jonas Bonn
2010-10-01  8:43             ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox