PCI/MSI: Add helper function pci_msi_domain_get_msi_rid().
authorDavid Daney <david.daney@cavium.com>
Thu, 8 Oct 2015 22:10:49 +0000 (15:10 -0700)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 16 Oct 2015 12:07:12 +0000 (13:07 +0100)
commitb6eec9b717d4dcb39ef024b8a3b619a32468b01e
tree938c3d37100f02ef76c4d197abc5cc662d3fa923
parent8db02d8b4089fa8098a170738e8ae7939aa8ae7a
PCI/MSI: Add helper function pci_msi_domain_get_msi_rid().

Add pci_msi_domain_get_msi_rid() to return the MSI requester id (RID).
Initially needed by gic-v3 based systems. It will be used by follow on
patch to drivers/irqchip/irq-gic-v3-its-pci-msi.c

Initially supports mapping the RID via OF device tree.  In the future,
this could be extended to use ACPI _IORT tables as well.

Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/pci/msi.c
include/linux/msi.h