diff options
author | Jiang Liu <jiang.liu@linux.intel.com> | 2014-11-11 08:02:18 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2014-11-23 07:01:47 -0500 |
commit | 3878eaefb89aa841ae4c2150490cee864ac628cb (patch) | |
tree | 3eb53c942a8e6081f8501d647e0f8e7215ce8ae0 /include/linux/msi.h | |
parent | 38b6a1cf3e4df0a3267c01fab699ab65d58690f4 (diff) |
PCI/MSI: Enhance core to support hierarchy irqdomain
Enhance PCI MSI core to support hierarchy irqdomain, so the common
code can be shared across architectures.
[ tglx: Extracted and combined from several patches ]
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Yingjoe Chen <yingjoe.chen@mediatek.com>
Cc: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/msi.h')
-rw-r--r-- | include/linux/msi.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/msi.h b/include/linux/msi.h index 0098e2c8fd42..1628788aee25 100644 --- a/include/linux/msi.h +++ b/include/linux/msi.h | |||
@@ -220,4 +220,18 @@ struct msi_domain_info *msi_get_domain_info(struct irq_domain *domain); | |||
220 | 220 | ||
221 | #endif /* CONFIG_GENERIC_MSI_IRQ_DOMAIN */ | 221 | #endif /* CONFIG_GENERIC_MSI_IRQ_DOMAIN */ |
222 | 222 | ||
223 | #ifdef CONFIG_PCI_MSI_IRQ_DOMAIN | ||
224 | void pci_msi_domain_write_msg(struct irq_data *irq_data, struct msi_msg *msg); | ||
225 | struct irq_domain *pci_msi_create_irq_domain(struct device_node *node, | ||
226 | struct msi_domain_info *info, | ||
227 | struct irq_domain *parent); | ||
228 | int pci_msi_domain_alloc_irqs(struct irq_domain *domain, struct pci_dev *dev, | ||
229 | int nvec, int type); | ||
230 | void pci_msi_domain_free_irqs(struct irq_domain *domain, struct pci_dev *dev); | ||
231 | irq_hw_number_t pci_msi_domain_calc_hwirq(struct pci_dev *dev, | ||
232 | struct msi_desc *desc); | ||
233 | int pci_msi_domain_check_cap(struct irq_domain *domain, | ||
234 | struct msi_domain_info *info, struct device *dev); | ||
235 | #endif /* CONFIG_PCI_MSI_IRQ_DOMAIN */ | ||
236 | |||
223 | #endif /* LINUX_MSI_H */ | 237 | #endif /* LINUX_MSI_H */ |