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

Function tegra_pcib_alloc_msi

freebsd/arm/nvidia/tegra_pcie.c:532–545  ·  view source on GitHub ↗

----------------------------------------------------------------------- * * PCI MSI interface */

Source from the content-addressed store, hash-verified

530 * PCI MSI interface
531 */
532static int
533tegra_pcib_alloc_msi(device_t pci, device_t child, int count, int maxcount,
534 int *irqs)
535{
536 phandle_t msi_parent;
537
538 /* XXXX ofw_bus_msimap() don't works for Tegra DT.
539 ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child), &msi_parent,
540 NULL);
541 */
542 msi_parent = OF_xref_from_node(ofw_bus_get_node(pci));
543 return (intr_alloc_msi(pci, child, msi_parent, count, maxcount,
544 irqs));
545}
546
547static int
548tegra_pcib_release_msi(device_t pci, device_t child, int count, int *irqs)

Callers

nothing calls this directly

Calls 1

intr_alloc_msiFunction · 0.85

Tested by

no test coverage detected