summaryrefslogtreecommitdiffstats
path: root/drivers/pci/intel-iommu.h
diff options
context:
space:
mode:
authorSuresh Siddha2008-07-10 20:16:44 +0200
committerIngo Molnar2008-07-12 08:44:54 +0200
commitb6fcb33ad6c05f152a672f7c96c1fab006527b80 (patch)
tree9926a4914b7d929f31794315dc21768f38c3628e /drivers/pci/intel-iommu.h
parentx64, x2apic/intr-remap: Interrupt remapping infrastructure (diff)
downloadkernel-qcow2-linux-b6fcb33ad6c05f152a672f7c96c1fab006527b80.tar.gz
kernel-qcow2-linux-b6fcb33ad6c05f152a672f7c96c1fab006527b80.tar.xz
kernel-qcow2-linux-b6fcb33ad6c05f152a672f7c96c1fab006527b80.zip
x64, x2apic/intr-remap: routines managing Interrupt remapping table entries.
Routines handling the management of interrupt remapping table entries. Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Cc: akpm@linux-foundation.org Cc: arjan@linux.intel.com Cc: andi@firstfloor.org Cc: ebiederm@xmission.com Cc: jbarnes@virtuousgeek.org Cc: steiner@sgi.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'drivers/pci/intel-iommu.h')
-rw-r--r--drivers/pci/intel-iommu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/pci/intel-iommu.h b/drivers/pci/intel-iommu.h
index a81a74e2bd9e..2142c01e0143 100644
--- a/drivers/pci/intel-iommu.h
+++ b/drivers/pci/intel-iommu.h
@@ -123,6 +123,7 @@ static inline void dmar_writeq(void __iomem *addr, u64 val)
#define ecap_qis(e) ((e) & 0x2)
#define ecap_eim_support(e) ((e >> 4) & 0x1)
#define ecap_ir_support(e) ((e >> 3) & 0x1)
+#define ecap_max_handle_mask(e) ((e >> 20) & 0xf)
/* IOTLB_REG */
@@ -255,6 +256,8 @@ struct q_inval {
#define INTR_REMAP_PAGE_ORDER 8
#define INTR_REMAP_TABLE_REG_SIZE 0xf
+#define INTR_REMAP_TABLE_ENTRIES 65536
+
struct ir_table {
struct irte *base;
};
@@ -300,4 +303,5 @@ extern void free_iommu(struct intel_iommu *iommu);
extern int dmar_enable_qi(struct intel_iommu *iommu);
extern void qi_global_iec(struct intel_iommu *iommu);
+extern void qi_submit_sync(struct qi_desc *desc, struct intel_iommu *iommu);
#endif