All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonas Bonn <jonas@southpole.se>
To: linux-kernel@vger.kernel.org
Subject: ioremap definition in generic io.h
Date: Wed, 29 Sep 2010 09:59:05 +0200	[thread overview]
Message-ID: <1285747145.12259.3.camel@needafix> (raw)

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





             reply	other threads:[~2010-09-29  8:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-29  7:59 Jonas Bonn [this message]
2010-09-29 10:53 ` ioremap definition in generic io.h 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1285747145.12259.3.camel@needafix \
    --to=jonas@southpole.se \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.