Question: how can I get the real PCI address of a BAR?

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

 



Hi,

I'm writing a driver for a DMA engine on the PCI bus. My architecture is a 36-bit PowerPC (MPC85xx).

In my DMA driver, I want to configure the DMA to transfer data to/from a PCI device.
I get the PCI address of the device BAR with the command pci_resource_start.
This address is 36-bit but the PCI BAR of the device is 32-bit: I can't use the 36-bit address to run the DMA.

In kernel documentations, it's advised not to directly read the BAR.

Is there a function which provides the real PCI address i.e. the one stored in the BAR?

Thanks.

C. Cano



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