diff options
author | Sean O. Stalley | 2015-10-29 23:35:39 +0100 |
---|---|---|
committer | Bjorn Helgaas | 2015-10-29 23:35:39 +0100 |
commit | 938174e59f83354251a75a2b90171e0ffdf6f1d7 (patch) | |
tree | d1b18b057c0088cd780d4f682fedeb0dfe8b8eee /drivers/pci/pci.h | |
parent | PCI: Add Enhanced Allocation register entries (diff) | |
download | kernel-qcow2-linux-938174e59f83354251a75a2b90171e0ffdf6f1d7.tar.gz kernel-qcow2-linux-938174e59f83354251a75a2b90171e0ffdf6f1d7.tar.xz kernel-qcow2-linux-938174e59f83354251a75a2b90171e0ffdf6f1d7.zip |
PCI: Add support for Enhanced Allocation devices
Add support for devices using Enhanced Allocation entries instead of BARs.
This allows the kernel to parse the EA Extended Capability structure in PCI
config space and claim the BAR-equivalent resources.
See https://pcisig.com/sites/default/files/specification_documents/ECN_Enhanced_Allocation_23_Oct_2014_Final.pdf
[bhelgaas: add spec URL, s/pci_ea_set_flags/pci_ea_flags/, consolidate
declarations, print unknown property in hex to match spec]
Signed-off-by: Sean O. Stalley <sean.stalley@intel.com>
[david.daney@cavium.com: Add more support/checking for Entry Properties,
allow EA behind bridges, rewrite some error messages.]
Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r-- | drivers/pci/pci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 24ba9dc8910a..a1607331693e 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -78,6 +78,7 @@ bool pci_dev_keep_suspended(struct pci_dev *dev); void pci_config_pm_runtime_get(struct pci_dev *dev); void pci_config_pm_runtime_put(struct pci_dev *dev); void pci_pm_init(struct pci_dev *dev); +void pci_ea_init(struct pci_dev *dev); void pci_allocate_cap_save_buffers(struct pci_dev *dev); void pci_free_cap_save_buffers(struct pci_dev *dev); |