lkml.org 
[lkml]   [2000]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: A simple question about readw, readw and the like
   Date: Sun, 30 Jul 2000 00:55:29 +0200
From: Andreas Bombe <andreas.bombe@munich.netsurf.de>

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?

Actually, there specifically are hacks to go about doing this in
the ncr53c8xx/sym53c8xx drivers. Search for the pcivtobus() defines
in drivers/scsi/sym53c8xx_comm.h in the current 2.4.x tree.

It certainly deserves to be moved into a common place, perhaps
asm/pci.h is the most appropriate.

Later,
David S. Miller
davem@redhat.com

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.071 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site