mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 13:18:00 +07:00
d746d1ebd3
Now we have dedicated asm/irqdomain.h, so move irqdomain specific code into it. Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Cc: David Cohen <david.a.cohen@linux.intel.com> Cc: Sander Eikelenboom <linux@eikelenboom.it> Cc: David Vrabel <david.vrabel@citrix.com> Cc: Tony Luck <tony.luck@intel.com> Cc: Joerg Roedel <joro@8bytes.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Rafael J. Wysocki <rjw@rjwysocki.net> Cc: Randy Dunlap <rdunlap@infradead.org> Cc: Yinghai Lu <yinghai@kernel.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Dimitri Sivanich <sivanich@sgi.com> Cc: Joerg Roedel <jroedel@suse.de> Cc: Andy Lutomirski <luto@amacapital.net> Link: http://lkml.kernel.org/r/1428978610-28986-33-git-send-email-jiang.liu@linux.intel.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
64 lines
1.7 KiB
C
64 lines
1.7 KiB
C
#ifndef _ASM_IRQDOMAIN_H
|
|
#define _ASM_IRQDOMAIN_H
|
|
|
|
#include <linux/irqdomain.h>
|
|
#include <asm/hw_irq.h>
|
|
|
|
#ifdef CONFIG_X86_LOCAL_APIC
|
|
enum {
|
|
/* Allocate contiguous CPU vectors */
|
|
X86_IRQ_ALLOC_CONTIGUOUS_VECTORS = 0x1,
|
|
};
|
|
|
|
extern struct irq_domain *x86_vector_domain;
|
|
|
|
extern void init_irq_alloc_info(struct irq_alloc_info *info,
|
|
const struct cpumask *mask);
|
|
extern void copy_irq_alloc_info(struct irq_alloc_info *dst,
|
|
struct irq_alloc_info *src);
|
|
#endif /* CONFIG_X86_LOCAL_APIC */
|
|
|
|
#ifdef CONFIG_X86_IO_APIC
|
|
struct device_node;
|
|
struct irq_data;
|
|
|
|
enum ioapic_domain_type {
|
|
IOAPIC_DOMAIN_INVALID,
|
|
IOAPIC_DOMAIN_LEGACY,
|
|
IOAPIC_DOMAIN_STRICT,
|
|
IOAPIC_DOMAIN_DYNAMIC,
|
|
};
|
|
|
|
struct ioapic_domain_cfg {
|
|
enum ioapic_domain_type type;
|
|
const struct irq_domain_ops *ops;
|
|
struct device_node *dev;
|
|
};
|
|
|
|
extern const struct irq_domain_ops mp_ioapic_irqdomain_ops;
|
|
|
|
extern int mp_irqdomain_alloc(struct irq_domain *domain, unsigned int virq,
|
|
unsigned int nr_irqs, void *arg);
|
|
extern void mp_irqdomain_free(struct irq_domain *domain, unsigned int virq,
|
|
unsigned int nr_irqs);
|
|
extern void mp_irqdomain_activate(struct irq_domain *domain,
|
|
struct irq_data *irq_data);
|
|
extern void mp_irqdomain_deactivate(struct irq_domain *domain,
|
|
struct irq_data *irq_data);
|
|
extern int mp_irqdomain_ioapic_idx(struct irq_domain *domain);
|
|
#endif /* CONFIG_X86_IO_APIC */
|
|
|
|
#ifdef CONFIG_PCI_MSI
|
|
extern void arch_init_msi_domain(struct irq_domain *domain);
|
|
#else
|
|
static inline void arch_init_msi_domain(struct irq_domain *domain) { }
|
|
#endif
|
|
|
|
#ifdef CONFIG_HT_IRQ
|
|
extern void arch_init_htirq_domain(struct irq_domain *domain);
|
|
#else
|
|
static inline void arch_init_htirq_domain(struct irq_domain *domain) { }
|
|
#endif
|
|
|
|
#endif
|