aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/pci-host-common.h
diff options
context:
space:
mode:
authorManivannan Sadhasivam <[email protected]>2025-05-08 07:10:32 +0000
committerBjorn Helgaas <[email protected]>2025-05-30 17:21:57 +0000
commitd1c696dba120624256ab335ab8247f535b872309 (patch)
treec60b5a2bbfca477bbca0af76c6be9c083c4194e2 /drivers/pci/controller/pci-host-common.h
parentPCI: cadence: Simplify J721e link status check (diff)
downloadkernel-d1c696dba120624256ab335ab8247f535b872309.tar.gz
kernel-d1c696dba120624256ab335ab8247f535b872309.zip
PCI: host-common: Convert to library for host controller drivers
This common library will be used as a placeholder for helper functions shared by the host controller drivers. This avoids placing the host controller drivers specific helpers in drivers/pci/*.c, to avoid enlarging the kernel image on platforms that do not use host controller drivers at all (like x86/ACPI platforms). Suggested-by: Lukas Wunner <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Signed-off-by: Krzysztof WilczyƄski <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'drivers/pci/controller/pci-host-common.h')
-rw-r--r--drivers/pci/controller/pci-host-common.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/pci/controller/pci-host-common.h b/drivers/pci/controller/pci-host-common.h
new file mode 100644
index 000000000000..d8be024ca68d
--- /dev/null
+++ b/drivers/pci/controller/pci-host-common.h
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Common library for PCI host controller drivers
+ *
+ * Copyright (C) 2014 ARM Limited
+ *
+ * Author: Will Deacon <[email protected]>
+ */
+
+#ifndef _PCI_HOST_COMMON_H
+#define _PCI_HOST_COMMON_H
+
+int pci_host_common_probe(struct platform_device *pdev);
+void pci_host_common_remove(struct platform_device *pdev);
+
+#endif