summaryrefslogtreecommitdiff
path: root/drivers/iommu
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2015-01-10 05:34:39 +0300
committerBjorn Helgaas <bhelgaas@google.com>2015-01-22 22:59:45 +0300
commit1f94a94f67e1083e19fb7b436dd7ca7a4ba03f2b (patch)
treeab2370828b760ed28ca7500c37318c78fcfc6fef /drivers/iommu
parent453c02c28405978b7ef5d673023e5fec19bccf3f (diff)
downloadlinux-1f94a94f67e1083e19fb7b436dd7ca7a4ba03f2b.tar.xz
PCI: Add generic config accessors
Many PCI controllers' configuration space accesses are memory-mapped and vary only in address calculation and access checks. There are 2 main access methods: a decoded address space such as ECAM or a single address and data register similar to x86. This implementation can support both cases as well as be used in cases that need additional pre- or post-access handling. Add a new pci_ops member, map_bus, which can do access checks and any necessary setup. It returns the address to use for the configuration space access. The access types supported are 32-bit only accesses or correct byte, word, or dword sized accesses. Tested-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/iommu')
0 files changed, 0 insertions, 0 deletions