diff options
author | Jiang Liu <jiang.liu@linux.intel.com> | 2014-11-12 12:11:25 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2014-11-23 13:01:47 +0100 |
commit | 38b6a1cf3e4df0a3267c01fab699ab65d58690f4 (patch) | |
tree | e6ff598d474183f2c7af3b17ef490ccdb526eb62 /kernel/irq | |
parent | genirq: Provide default callbacks for msi_domain_ops (diff) | |
download | linux-38b6a1cf3e4df0a3267c01fab699ab65d58690f4.tar.xz linux-38b6a1cf3e4df0a3267c01fab699ab65d58690f4.zip |
PCI/MSI: Move cached entry functions to irq core
Required to support non PCI based MSI.
[ tglx: Extracted from Jiangs patch series ]
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq')
-rw-r--r-- | kernel/irq/msi.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c index d0fe84d881f6..f477a2f8ce56 100644 --- a/kernel/irq/msi.c +++ b/kernel/irq/msi.c @@ -18,6 +18,19 @@ /* Temparory solution for building, will be removed later */ #include <linux/pci.h> +void __get_cached_msi_msg(struct msi_desc *entry, struct msi_msg *msg) +{ + *msg = entry->msg; +} + +void get_cached_msi_msg(unsigned int irq, struct msi_msg *msg) +{ + struct msi_desc *entry = irq_get_msi_desc(irq); + + __get_cached_msi_msg(entry, msg); +} +EXPORT_SYMBOL_GPL(get_cached_msi_msg); + #ifdef CONFIG_GENERIC_MSI_IRQ_DOMAIN /** * msi_domain_set_affinity - Generic affinity setter function for MSI domains |