Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/pci/pci_host_generic_fdt.c
Show First 20 Lines • Show All 145 Lines • ▼ Show 20 Lines | pci_host_generic_setup_fdt(device_t dev) | ||||
* no collisions. | * no collisions. | ||||
*/ | */ | ||||
sc->base.ecam = device_get_unit(dev); | sc->base.ecam = device_get_unit(dev); | ||||
error = pci_host_generic_core_attach(dev); | error = pci_host_generic_core_attach(dev); | ||||
if (error != 0) | if (error != 0) | ||||
return (error); | return (error); | ||||
if (ofw_bus_is_compatible(dev, "marvell,armada8k-pcie-ecam")) { | |||||
val_packett.cool: Linux also applies it for `socionext,synquacer-pcie-ecam` and the SoC-vendor-neutral `snps,dw… | |||||
device_set_desc(dev, "Marvell Armada8k PCIe Controller"); | |||||
sc->base.quirks |= PCIE_ECAM_ARMADA8K_QUIRK; | |||||
} | |||||
ofw_bus_setup_iinfo(node, &sc->pci_iinfo, sizeof(cell_t)); | ofw_bus_setup_iinfo(node, &sc->pci_iinfo, sizeof(cell_t)); | ||||
return (0); | return (0); | ||||
} | } | ||||
int | int | ||||
pci_host_generic_attach(device_t dev) | pci_host_generic_attach(device_t dev) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 324 Lines • Show Last 20 Lines |
Linux also applies it for socionext,synquacer-pcie-ecam and the SoC-vendor-neutral snps,dw-pcie-ecam