xref: /linux/drivers/pci/controller/pci-host-common.h (revision b61104e7a6349bd2c2b3e2fb3260d87f15eda8f4)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Common library for PCI host controller drivers
4  *
5  * Copyright (C) 2014 ARM Limited
6  *
7  * Author: Will Deacon <will.deacon@arm.com>
8  */
9 
10 #ifndef _PCI_HOST_COMMON_H
11 #define _PCI_HOST_COMMON_H
12 
13 struct pci_ecam_ops;
14 
15 int pci_host_common_probe(struct platform_device *pdev);
16 int pci_host_common_init(struct platform_device *pdev,
17 			 struct pci_host_bridge *bridge,
18 			 const struct pci_ecam_ops *ops);
19 void pci_host_common_remove(struct platform_device *pdev);
20 
21 struct pci_config_window *pci_host_common_ecam_create(struct device *dev,
22 	struct pci_host_bridge *bridge, const struct pci_ecam_ops *ops);
23 #endif
24