PCI: endpoint: Add pci_epc_ops to map MSI IRQ
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 1 Feb 2021 19:58:00 +0000 (01:28 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 23 Feb 2021 20:11:13 +0000 (14:11 -0600)
commit87d5972e476f6c4e98a0abce713c54c6f40661b0
treeaeac24ea2b9387f3483dd0b48df0d1e3e921bb6a
parente85a2d7837622bd99c96f5bbc7f972da90c285a2
PCI: endpoint: Add pci_epc_ops to map MSI IRQ

Add pci_epc_ops to map physical address to MSI address and return MSI data.
The physical address is an address in the outbound region. This is required
to implement doorbell functionality of NTB (non-transparent bridge) wherein
EPC on either side of the interface (primary and secondary) can directly
write to the physical address (in outbound region) of the other interface
to ring doorbell using MSI.

Link: https://lore.kernel.org/r/20210201195809.7342-9-kishon@ti.com
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/endpoint/pci-epc-core.c
include/linux/pci-epc.h