mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 07:05:36 +07:00
c8f3e518d3
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>
14 lines
353 B
C
14 lines
353 B
C
#ifndef _ASM_X86_MSI_H
|
|
#define _ASM_X86_MSI_H
|
|
#include <asm/hw_irq.h>
|
|
#include <asm/irqdomain.h>
|
|
|
|
typedef struct irq_alloc_info msi_alloc_info_t;
|
|
|
|
int pci_msi_prepare(struct irq_domain *domain, struct device *dev, int nvec,
|
|
msi_alloc_info_t *arg);
|
|
|
|
void pci_msi_set_desc(msi_alloc_info_t *arg, struct msi_desc *desc);
|
|
|
|
#endif /* _ASM_X86_MSI_H */
|