iommu: Add new member capability to struct irq_remap_ops
authorFeng Wu <feng.wu@intel.com>
Tue, 9 Jun 2015 05:20:28 +0000 (13:20 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 12 Jun 2015 09:33:51 +0000 (11:33 +0200)
Add a new member 'capability' to struct irq_remap_ops for storing
information about available capabilities such as VT-d
Posted-Interrupts.

Signed-off-by: Feng Wu <feng.wu@intel.com>
Reviewed-by: Jiang Liu <jiang.liu@linux.intel.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Joerg Roedel <joro@8bytes.org>
Cc: iommu@lists.linux-foundation.org
Cc: dwmw2@infradead.org
Link: http://lkml.kernel.org/r/1433827237-3382-2-git-send-email-feng.wu@intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/irq_remapping.h
drivers/iommu/irq_remapping.h

index 78974fbc33b47412ff22c6a611d7aee74371b624..8b432dd8f170b8af19fd1c08c5bc3663db5d02c6 100644 (file)
 struct msi_msg;
 struct irq_alloc_info;
 
+enum irq_remap_cap {
+       IRQ_POSTING_CAP = 0,
+};
+
 #ifdef CONFIG_IRQ_REMAP
 
 extern void set_irq_remapping_broken(void);
index 91d5a119956aae96d80dcaaff6c60ada56327ddc..b6ca30d319868fbf1f4444076b1ba54bf74715d6 100644 (file)
@@ -35,6 +35,9 @@ extern int no_x2apic_optout;
 extern int irq_remapping_enabled;
 
 struct irq_remap_ops {
+       /* The supported capabilities */
+       int capability;
+
        /* Initializes hardware and makes it ready for remapping interrupts */
        int  (*prepare)(void);