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

Function rk_pcie_map_msi

freebsd/arm64/rockchip/rk_pcie.c:561–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559#endif
560
561static int
562rk_pcie_map_msi(device_t pci, device_t child, int irq, uint64_t *addr,
563 uint32_t *data)
564{
565 phandle_t msi_parent;
566 int rv;
567
568 rv = ofw_bus_msimap(ofw_bus_get_node(pci), pci_get_rid(child),
569 &msi_parent, NULL);
570 if (rv != 0)
571 return (rv);
572 rv = intr_map_msi(pci, child, msi_parent, irq, addr, data);
573 return (rv);
574}
575
576#ifdef RK_PCIE_ENABLE_MSIX
577static int

Callers

nothing calls this directly

Calls 1

intr_map_msiFunction · 0.85

Tested by

no test coverage detected