iommu/amd: Introduce interrupt remapping ops structure
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Tue, 23 Aug 2016 18:52:34 +0000 (13:52 -0500)
committerJoerg Roedel <jroedel@suse.de>
Mon, 5 Sep 2016 10:41:46 +0000 (12:41 +0200)
commit880ac60e2538337f84d9f76ab7b3c13ee7787804
tree8785d7a8c6fde2d636b69a8f905058d7b214f8dc
parenta38180bd366f9912a08f52dd6f9a843bf0107d5f
iommu/amd: Introduce interrupt remapping ops structure

Currently, IOMMU support two interrupt remapping table entry formats,
32-bit (legacy) and 128-bit (GA). The spec also implies that it might
support additional modes/formats in the future.

So, this patch introduces the new struct amd_irte_ops, which allows
the same code to work with different irte formats by providing hooks
for various operations on an interrupt remapping table entry.

Suggested-by: Joerg Roedel <joro@8bytes.org>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c
drivers/iommu/amd_iommu_types.h