genirq/msi: Export functions to allow MSI domains in modules
The Linux kernel already has the concept of IRQ domain, wherein a component can expose a set of IRQs which are managed by a particular interrupt controller chip or other subsystem. The PCI driver exposes the notion of an IRQ domain for Message-Signaled Interrupts (MSI) from PCI Express devices. This patch exposes the functions which are necessary for creating a MSI IRQ domain within a module. [ tglx: Split it into x86 and core irq parts ] Signed-off-by: Jake Oshins <jakeo@microsoft.com> Cc: gregkh@linuxfoundation.org Cc: kys@microsoft.com Cc: devel@linuxdriverproject.org Cc: olaf@aepfle.de Cc: apw@canonical.com Cc: vkuznets@redhat.com Cc: haiyangz@microsoft.com Cc: marc.zyngier@arm.com Cc: bhelgaas@google.com Link: http://lkml.kernel.org/r/1449769983-12948-4-git-send-email-jakeo@microsoft.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:

committed by
Thomas Gleixner

parent
4e8dbe9e93
commit
a4289dc2ec
@@ -257,6 +257,7 @@ void pci_msi_mask_irq(struct irq_data *data)
|
||||
{
|
||||
msi_set_mask_bit(data, 1);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(pci_msi_mask_irq);
|
||||
|
||||
/**
|
||||
* pci_msi_unmask_irq - Generic irq chip callback to unmask PCI/MSI interrupts
|
||||
@@ -266,6 +267,7 @@ void pci_msi_unmask_irq(struct irq_data *data)
|
||||
{
|
||||
msi_set_mask_bit(data, 0);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(pci_msi_unmask_irq);
|
||||
|
||||
void default_restore_msi_irqs(struct pci_dev *dev)
|
||||
{
|
||||
@@ -1126,6 +1128,7 @@ struct pci_dev *msi_desc_to_pci_dev(struct msi_desc *desc)
|
||||
{
|
||||
return to_pci_dev(desc->dev);
|
||||
}
|
||||
EXPORT_SYMBOL(msi_desc_to_pci_dev);
|
||||
|
||||
void *msi_desc_to_pci_sysdata(struct msi_desc *desc)
|
||||
{
|
||||
@@ -1285,6 +1288,7 @@ struct irq_domain *pci_msi_create_irq_domain(struct fwnode_handle *fwnode,
|
||||
domain->bus_token = DOMAIN_BUS_PCI_MSI;
|
||||
return domain;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(pci_msi_create_irq_domain);
|
||||
|
||||
/**
|
||||
* pci_msi_domain_alloc_irqs - Allocate interrupts for @dev in @domain
|
||||
|
Reference in New Issue
Block a user