All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oliver Korpilla <okorpil@fh-landshut.de>
To: Eugene Surovegin <ebs@ebshome.net>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: ioremap() question
Date: Thu, 27 May 2004 09:17:11 +0200	[thread overview]
Message-ID: <40B595F7.3080801@fh-landshut.de> (raw)
In-Reply-To: <20040526171234.GA4255@gate.ebshome.net>


Eugene Surovegin wrote:

>You cannot use virt_to_bus() on ioremap returned addresses.
>
>Eugene.
>
>
>
Hello!

Maybe I may go like this:

I know my PCI from the device bus, so:

unsigned long bus_address;
struct pci_bus *my_bus = universe_pci_dev->bus;
bus_address = pci_phys_to_bus(physical_address, my_bus->number);

Since pci_phys_to_bus() is an exported symbol, this should work in my
module, shouldn't it?

Thanks in advance,
Oliver Korpilla

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

      parent reply	other threads:[~2004-05-27  7:17 UTC|newest]

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

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=40B595F7.3080801@fh-landshut.de \
    --to=okorpil@fh-landshut.de \
    --cc=ebs@ebshome.net \
    --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 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.