Re: A simple question about readw, readw and the like

From: Andreas Bombe (andreas.bombe@munich.netsurf.de)
Date: Sat Jul 29 2000 - 17:55:29 EST


On Thu, Jul 27, 2000 at 03:42:58PM -0700, David S. Miller wrote:
> If you do it correctly. I agree it's currently not all that aparent
> how to do this correctly. On sparc64, we actually store the physical
> addresses in the pci_dev->resource[xxx] values, but nobody should know
> that, it's implementation defined what these resource values mean.
> The only part of them which is defined is how you go about making use
> of them, that is all.

Sometimes it is needed to let one PCI device do DMA to another part of
itself or another PCI device. For this, you need the bus addresses of
the PCI memory resources. If pci_resource_start(dev,x) doesn't give
you that, where else could it be found? By doing configure space reads
I guess, but is that really necessary?

-- 
 Andreas E. Bombe <andreas.bombe@munich.netsurf.de>    DSA key 0x04880A44
http://home.pages.de/~andreas.bombe/    http://linux1394.sourceforge.net/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jul 31 2000 - 21:00:30 EST