summaryrefslogtreecommitdiff
path: root/drivers/pci/controller/pci-host-common.h
diff options
context:
space:
mode:
authorMayank Rana <mayank.rana@oss.qualcomm.com>2025-06-17 01:42:57 +0300
committerManivannan Sadhasivam <mani@kernel.org>2025-07-01 17:31:26 +0300
commitfefbc58271be1eaaab1b3c8815569109764a32c4 (patch)
tree45aee32757a29555518f1721d453746d28ce7fee /drivers/pci/controller/pci-host-common.h
parenta60d92f6d941bd77bf3aaec724a7c95857c0165b (diff)
downloadlinux-fefbc58271be1eaaab1b3c8815569109764a32c4.tar.xz
PCI: host-generic: Rename and export gen_pci_init() for PCIe controller drivers
Rename gen_pci_init() API as pci_host_common_ecam_create() and export it to allow the PCIe controller drivers to create and configure the ECAM region. Note that this API should only used by the drivers managing the drvdata on their own. Rest should continue using pci_host_common_init() API. Signed-off-by: Mayank Rana <mayank.rana@oss.qualcomm.com> [mani: commit message rewording] Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Link: https://patch.msgid.link/20250616224259.3549811-3-mayank.rana@oss.qualcomm.com
Diffstat (limited to 'drivers/pci/controller/pci-host-common.h')
-rw-r--r--drivers/pci/controller/pci-host-common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/controller/pci-host-common.h b/drivers/pci/controller/pci-host-common.h
index 65bd9e032353..51c35ec0cf37 100644
--- a/drivers/pci/controller/pci-host-common.h
+++ b/drivers/pci/controller/pci-host-common.h
@@ -17,4 +17,6 @@ int pci_host_common_init(struct platform_device *pdev,
const struct pci_ecam_ops *ops);
void pci_host_common_remove(struct platform_device *pdev);
+struct pci_config_window *pci_host_common_ecam_create(struct device *dev,
+ struct pci_host_bridge *bridge, const struct pci_ecam_ops *ops);
#endif