public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* virt_to_bus and virt_to_phys on Apple G4 target
@ 2001-07-03  5:57 mdaljeet
  2001-07-03  7:18 ` David S. Miller
  2001-07-04  7:56 ` Paul Mackerras
  0 siblings, 2 replies; 4+ messages in thread
From: mdaljeet @ 2001-07-03  5:57 UTC (permalink / raw)
  To: linux-kernel

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.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-07-04 22:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-03  5:57 virt_to_bus and virt_to_phys on Apple G4 target mdaljeet
2001-07-03  7:18 ` David S. Miller
2001-07-04 22:03   ` acmay
2001-07-04  7:56 ` Paul Mackerras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox