diff options
author | Jayachandran C <jchandra@broadcom.com> | 2016-04-11 11:46:33 +0530 |
---|---|---|
committer | Graeme Gregory <graeme.gregory@linaro.org> | 2016-05-17 11:17:22 +0100 |
commit | 51463ceae5f96a7c7caefa4ef521f13330111861 (patch) | |
tree | 7c085bc5b758e4a765028c6ca2404504b2b9fc5e /drivers/pci/host | |
parent | 398692ad5913f943e3facba13daafde7385fd96b (diff) |
PCI: Provide common functions for ECAM mapping
Add config option PCI_ECAM and file drivers/pci/ecam.c to provide
generic functions for accessing memory mapped PCI config space.
The API is defined in drivers/pci/ecam.h and is written to replace the
API in drivers/pci/host/pci-host-common.h. The file defines a new
'struct pci_config_window' to hold the information related to a PCI
config area and its mapping. This structure is expected to be used as
sysdata for controllers that have ECAM based mapping.
Helper functions are provided to setup the mapping, free the mapping
and to implement the map_bus method in 'struct pci_ops'
Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Diffstat (limited to 'drivers/pci/host')
0 files changed, 0 insertions, 0 deletions