Lines Matching +full:almost +full:- +full:ecam

1 // SPDX-License-Identifier: GPL-2.0
15 #include <linux/pci-acpi.h>
16 #include <linux/pci-ecam.h>
28 struct pci_config_window *cfg = bus->sysdata; in hisi_pcie_rd_conf()
31 if (bus->number == cfg->busr.start) { in hisi_pcie_rd_conf()
46 struct pci_config_window *cfg = bus->sysdata; in hisi_pcie_wr_conf()
49 if (bus->number == cfg->busr.start) { in hisi_pcie_wr_conf()
64 struct pci_config_window *cfg = bus->sysdata; in hisi_pcie_map_bus()
65 struct hisi_pcie *pcie = cfg->priv; in hisi_pcie_map_bus()
67 if (bus->number == cfg->busr.start) in hisi_pcie_map_bus()
68 return pcie->reg_base + where; in hisi_pcie_map_bus()
77 struct device *dev = cfg->parent; in hisi_pcie_init()
86 return -ENOMEM; in hisi_pcie_init()
94 return -ENOMEM; in hisi_pcie_init()
96 ret = acpi_get_rc_resources(dev, "HISI0081", root->segment, res); in hisi_pcie_init()
99 return -ENOMEM; in hisi_pcie_init()
102 pcie->reg_base = devm_pci_remap_cfgspace(dev, res->start, resource_size(res)); in hisi_pcie_init()
103 if (!pcie->reg_base) in hisi_pcie_init()
104 return -ENOMEM; in hisi_pcie_init()
106 cfg->priv = pcie; in hisi_pcie_init()
125 struct device *dev = cfg->parent; in hisi_pcie_platform_init()
132 return -ENOMEM; in hisi_pcie_platform_init()
137 return -EINVAL; in hisi_pcie_platform_init()
140 pcie->reg_base = devm_pci_remap_cfgspace(dev, res->start, resource_size(res)); in hisi_pcie_platform_init()
141 if (!pcie->reg_base) in hisi_pcie_platform_init()
142 return -ENOMEM; in hisi_pcie_platform_init()
144 cfg->priv = pcie; in hisi_pcie_platform_init()
159 .compatible = "hisilicon,hip06-pcie-ecam",
163 .compatible = "hisilicon,hip07-pcie-ecam",
172 .name = "hisi-pcie-almost-ecam",