linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Oliver Korpilla <okorpil@fh-landshut.de>
To: linuxppc-embedded@lists.linuxppc.org
Subject: ioremap() question
Date: Wed, 26 May 2004 16:35:19 +0200	[thread overview]
Message-ID: <40B4AB27.5020202@fh-landshut.de> (raw)


Hello!

I start with a CPU physical address somwhere within the PCI bridge space: 0x85000000
Then I use ioremap_nocache on it to obtain a (range of) virtual address(es):
0xC302D000
And then I use virt_to_bus() to obtain an address to hand over to the PCI device:
0x0302D000


While I do see this conforms to the implementation of virt_to_bus(), I cannot
decide whether this makes sense.

Is ioremap() fixed, so it always returns the same virtual addresses for the same
given physical ones?

Or does it return "what's available" in virtual address space (so the above bus
address would be somehow bogus I guess)?

Would a function like phys_to_bus() give me the same result?

Thanks in advance,
Oliver Korpilla

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

             reply	other threads:[~2004-05-26 14:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-26 14:35 Oliver Korpilla [this message]
2004-05-26 17:12 ` ioremap() question Eugene Surovegin
2004-05-27  6:37   ` Oliver Korpilla
2004-05-27  7:17   ` Oliver Korpilla

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=40B4AB27.5020202@fh-landshut.de \
    --to=okorpil@fh-landshut.de \
    --cc=linuxppc-embedded@lists.linuxppc.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).