iommu/vt-d: Make intr-remapping initialization generic
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 30 Mar 2012 18:47:00 +0000 (11:47 -0700)
committerJoerg Roedel <joerg.roedel@amd.com>
Mon, 7 May 2012 12:34:59 +0000 (14:34 +0200)
commit736baef4472d00574089f295bc759ac002b9558c
treed4c9c69b1a0eecd6d87b3378a27396384e4b08f0
parenteef93fdb7cd41ae36794db0e765059dc1039e940
iommu/vt-d: Make intr-remapping initialization generic

This patch introduces irq_remap_ops to hold implementation
specific function pointer to handle interrupt remapping. As
the first part the initialization functions for VT-d are
converted to these ops.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
arch/ia64/include/asm/intr_remapping.h [new file with mode: 0644]
arch/x86/include/asm/intr_remapping.h [new file with mode: 0644]
arch/x86/kernel/apic/apic.c
arch/x86/kernel/apic/io_apic.c
drivers/iommu/Makefile
drivers/iommu/dmar.c
drivers/iommu/intel-iommu.c
drivers/iommu/intel_intr_remapping.c
drivers/iommu/intr_remapping.c [new file with mode: 0644]
drivers/iommu/intr_remapping.h [new file with mode: 0644]
include/linux/dmar.h