MCPcopy Create free account
hub / github.com/F-Stack/f-stack / tegra_pcib_map_msi

Function tegra_pcib_map_msi

freebsd/arm/nvidia/tegra_pcie.c:560–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558}
559
560static int
561tegra_pcib_map_msi(device_t pci, device_t child, int irq, uint64_t *addr,
562 uint32_t *data)
563{
564 phandle_t msi_parent;
565
566 /* XXXX ofw_bus_msimap() don't works for Tegra DT.
567 ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child), &msi_parent,
568 NULL);
569 */
570 msi_parent = OF_xref_from_node(ofw_bus_get_node(pci));
571 return (intr_map_msi(pci, child, msi_parent, irq, addr, data));
572}
573
574#ifdef TEGRA_PCIB_MSI_ENABLE
575

Callers

nothing calls this directly

Calls 1

intr_map_msiFunction · 0.85

Tested by

no test coverage detected