x86, msi: Introduce x86_msi.compose_msi_msg call-back
authorJoerg Roedel <joro@8bytes.org>
Wed, 26 Sep 2012 10:44:49 +0000 (12:44 +0200)
committerJoerg Roedel <joro@8bytes.org>
Mon, 28 Jan 2013 11:42:48 +0000 (12:42 +0100)
commit7601384f91be1a5ea60cb4ef6e28cad628e6cd1e
treec5dd95d5edb2d89aad2f7df7f70f6897c44beec8
parent2976fd8417f5744de3bb9109e4f30f353a36b1c0
x86, msi: Introduce x86_msi.compose_msi_msg call-back

This call-back points to the right function for initializing
the msi_msg structure. The old code for msi_msg generation
was split up into the irq-remapped and the default case.

The irq-remapped case just calls into the specific Intel or
AMD implementation when the device is behind an IOMMU.
Otherwise the default function is called.

Signed-off-by: Joerg Roedel <joro@8bytes.org>
Acked-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/include/asm/io_apic.h
arch/x86/include/asm/x86_init.h
arch/x86/kernel/apic/io_apic.c
arch/x86/kernel/x86_init.c
drivers/iommu/irq_remapping.c