Debian Codegraph @

src/soc/intel/skylake/pcie_rp.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <intelblocks/pcie_rp.h>
4 #include <soc/pci_devs.h>
5 #include <soc/pcie.h>
6
7 static const struct pcie_rp_group pch_lp_rp_groups[] = {
8 { .slot = PCH_DEV_SLOT_PCIE, .count = 8, .lcap_port_base = 1 },
9 { .slot = PCH_DEV_SLOT_PCIE_1, .count = 4, .lcap_port_base = 1 },
10 { 0 }
11 };
12
13 static const struct pcie_rp_group pch_h_rp_groups[] = {
14 { .slot = PCH_DEV_SLOT_PCIE, .count = 8, .lcap_port_base = 1 },
15 { .slot = PCH_DEV_SLOT_PCIE_1, .count = 8, .lcap_port_base = 1 },
16 /* Sunrise Point PCH-H actually only has 4 ports in the
17 third group. But that would require a runtime check
18 and probing 4 non-existent ports shouldn't hurt. */
19 { .slot = PCH_DEV_SLOT_PCIE_2, .count = 8, .lcap_port_base = 1 },
20 { 0 }
21 };
22
23 const struct pcie_rp_group *get_pch_pcie_rp_table(void)
24 {
25 if (CONFIG(SKYLAKE_SOC_PCH_H))
26 return pch_h_rp_groups;
27
28 return pch_lp_rp_groups;
29 }