1 /*
2 * Based on Linux drivers/pci/controller/pci-host-common.c
3 * Based on Linux drivers/pci/controller/pci-host-generic.c
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #include <xen/init.h>
19 #include <xen/pci.h>
20 #include <asm/device.h>
21 #include <asm/pci.h>
22
23 static const struct dt_device_match __initconstrel gen_pci_dt_match[] =
24 {
25 { .compatible = "pci-host-ecam-generic" },
26 { },
27 };
28
pci_host_generic_probe(struct dt_device_node * dev,const void * data)29 static int __init pci_host_generic_probe(struct dt_device_node *dev,
30 const void *data)
31 {
32 return pci_host_common_probe(dev, &pci_generic_ecam_ops);
33 }
34
35 DT_DEVICE_START(pci_gen, "PCI HOST GENERIC", DEVICE_PCI_HOSTBRIDGE)
36 .dt_match = gen_pci_dt_match,
37 .init = pci_host_generic_probe,
38 DT_DEVICE_END
39
40 /*
41 * Local variables:
42 * mode: C
43 * c-file-style: "BSD"
44 * c-basic-offset: 4
45 * tab-width: 4
46 * indent-tabs-mode: nil
47 * End:
48 */
49