summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-cns3xxx
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2015-01-09 20:34:39 -0600
committerBjorn Helgaas <bhelgaas@google.com>2015-01-22 13:59:45 -0600
commit1f94a94f67e1083e19fb7b436dd7ca7a4ba03f2b (patch)
treeab2370828b760ed28ca7500c37318c78fcfc6fef /arch/arm/mach-cns3xxx
parent453c02c28405978b7ef5d673023e5fec19bccf3f (diff)
downloadlinux-1f94a94f67e1083e19fb7b436dd7ca7a4ba03f2b.tar.gz
linux-1f94a94f67e1083e19fb7b436dd7ca7a4ba03f2b.tar.bz2
linux-1f94a94f67e1083e19fb7b436dd7ca7a4ba03f2b.zip
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 'arch/arm/mach-cns3xxx')
0 files changed, 0 insertions, 0 deletions