mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: mdaljeet@in.ibm.com
To: linux-kernel@vger.kernel.org
Subject: virt_to_bus and virt_to_phys on Apple G4 target
Date: Tue, 3 Jul 2001 11:27:56 +0530	[thread overview]
Message-ID: <CA256A7E.0020F52C.00@d73mta01.au.ibm.com> (raw)

I am running linux 2.4.2 on Apple G4 machine. I think the 'PCI bus
addresses' and 'physical addresses' are same on this architecture. I
expected the two be different but according to asm/io.h 'virt_to_bus(addr)
= virt_to_phys(addr) + PCI_DRAM_OFFSET'. I printed the value of
'PCI_DRAM_OFFSET' and that come out to be zero. Is this correct?

If I somehow get the physical address of a user space buffer in a module
and take this as a PCI bus address, will I be able to do DMA properly?

thanks,
Daljeet.



             reply	other threads:[~2001-07-03  6:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-03  5:57 mdaljeet [this message]
2001-07-03  7:18 ` David S. Miller
2001-07-04 22:03   ` acmay
2001-07-04  7:56 ` Paul Mackerras

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=CA256A7E.0020F52C.00@d73mta01.au.ibm.com \
    --to=mdaljeet@in.ibm.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®