How to get bus address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I want to transfer data directly from one PCIe device to another. Is
there a generic way to retrieve the bus address of a PCI IO memory
region?

If I understand "Linux Device Drivers" correct, then pci_resource_start()
returns some address that I can then map into the kernel space with
ioremap() and access like local memory. But what kind of address is
pci_resource_start() returning? Is it a bus address that I could
directly hand to another PCI device as a target address, or is it
something else?


Thanks,

   -Nikolaus

-- 
 ÂTime flies like an arrow, fruit flies like a Banana.Â

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux