Skip to content
Commit 06cf56e4 authored by Bjorn Helgaas's avatar Bjorn Helgaas
Browse files

PCI: Add pci_bus_address() to get bus address of a BAR



We store BAR information as a struct resource, which contains the CPU
address, not the bus address.  Drivers often need the bus address, and
there's currently no convenient way to get it, so they often read the
BAR directly, or use the resource address (which doesn't work if there's
any translation between CPU and bus addresses).

Add pci_bus_address() to make this convenient.

Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent fc279850
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment