linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Ivan Passos <lists@cyclades.com>
To: Linux Kernel Mailing list <linux-kernel@vger.rutgers.edu>
Cc: Linux MM mailing list <linux-mm@kvack.org>
Subject: Re: phys-to-virt kernel mapping and ioremap()
Date: Thu, 20 Jul 2000 12:12:39 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.10.10007201208210.11710-100000@main.cyclades.com> (raw)
In-Reply-To: <20000720183534Z156966-31297+1096@vger.rutgers.edu>

On Thu, 20 Jul 2000, Timur Tabi wrote:
> 
> > Timur> 1) Doesn't this mapping break the phys_to_virt and virt_to_phys
> > Timur> macros?
> > 
> > Those two macros are not defined on ioremap'ed regions so it is
> > irrelevant.
> 
> In that case, how do I do virt-to-phys and phys-to-virt translations on the
> memory addresses for ioremap'ed regions?

Why would you wanna do that for a PCI MMIO region??

1) ioremap(PCI_addr) returns a virtual address.
2) Use read[bwl], write[bwl], memcpy_toio, memcpy_fromio, memset_io ...
   with the obtained virtual address to access the MMIO region.

What else do you need?? Please let us know.

Regards,
Ivan

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

  parent reply	other threads:[~2000-07-20 19:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20000720174852Z156962-31297+1037@vger.rutgers.edu>
2000-07-20 18:41 ` Jes Sorensen
2000-07-20 18:53   ` Timur Tabi
     [not found] ` <20000720183534Z156966-31297+1096@vger.rutgers.edu>
2000-07-20 19:06   ` Jes Sorensen
2000-07-20 19:12   ` Ivan Passos [this message]
2000-07-20 18:06 Timur Tabi
2000-07-21 13:49 ` Jeff Garzik

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=Pine.LNX.4.10.10007201208210.11710-100000@main.cyclades.com \
    --to=lists@cyclades.com \
    --cc=linux-kernel@vger.rutgers.edu \
    --cc=linux-mm@kvack.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