| 559 | #endif |
| 560 | |
| 561 | static int |
| 562 | rk_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 |
| 577 | static int |
nothing calls this directly
no test coverage detected