Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350194
b: refs/heads/master
c: 819508d
h: refs/heads/master
v: v3
  • Loading branch information
Joerg Roedel committed Jan 28, 2013
1 parent 34cd895 commit f6a07fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 078e1ee26a061663bd7a4773c06b33cdb997380d
refs/heads/master: 819508d302e5b6d6dacb5c3d5e4756091e32cc7d
12 changes: 11 additions & 1 deletion trunk/arch/x86/include/asm/hw_irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,20 @@ static inline void set_io_apic_irq_attr(struct io_apic_irq_attr *irq_attr,
irq_attr->polarity = polarity;
}

/* Intel specific interrupt remapping information */
struct irq_2_iommu {
struct intel_iommu *iommu;
u16 irte_index;
u16 sub_handle;
u8 irte_mask;
};

/* AMD specific interrupt remapping information */
struct irq_2_irte {
u16 devid; /* Device ID for IRTE table */
u16 index; /* Index into IRTE table*/
};

/*
* This is performance-critical, we want to do it O(1)
*
Expand All @@ -120,7 +127,10 @@ struct irq_cfg {
u8 vector;
u8 move_in_progress : 1;
#ifdef CONFIG_IRQ_REMAP
struct irq_2_iommu irq_2_iommu;
union {
struct irq_2_iommu irq_2_iommu;
struct irq_2_irte irq_2_irte;
};
#endif
};

Expand Down

0 comments on commit f6a07fb

Please sign in to comment.