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

From: David S. Miller (davem@redhat.com)
Date: Sat Jul 29 2000 - 18:51:18 EST


   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/



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