diff options
author | Suresh Siddha <suresh.b.siddha@intel.com> | 2011-08-23 20:05:25 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-09-21 04:22:03 -0400 |
commit | d3f138106b4b40640dc667f0222fd9f137387b32 (patch) | |
tree | 2c5d51deff32ec0999493bbb73cb18a7e4a455c3 /include/linux/dmar.h | |
parent | c39d77ffa28c6e72702193df4fa53928c1b6f3e6 (diff) |
iommu: Rename the DMAR and INTR_REMAP config options
Change the CONFIG_DMAR to CONFIG_INTEL_IOMMU to be consistent
with the other IOMMU options.
Rename the CONFIG_INTR_REMAP to CONFIG_IRQ_REMAP to match the
irq subsystem name.
And define the CONFIG_DMAR_TABLE for the common ACPI DMAR
routines shared by both CONFIG_INTEL_IOMMU and CONFIG_IRQ_REMAP.
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: yinghai@kernel.org
Cc: youquan.song@intel.com
Cc: joerg.roedel@amd.com
Cc: tony.luck@intel.com
Cc: dwmw2@infradead.org
Link: http://lkml.kernel.org/r/20110824001456.558630224@sbsiddha-desk.sc.intel.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/dmar.h')
-rw-r--r-- | include/linux/dmar.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/dmar.h b/include/linux/dmar.h index a7992ec36570..a8b1a847c103 100644 --- a/include/linux/dmar.h +++ b/include/linux/dmar.h | |||
@@ -31,7 +31,7 @@ | |||
31 | #define DMAR_X2APIC_OPT_OUT 0x2 | 31 | #define DMAR_X2APIC_OPT_OUT 0x2 |
32 | 32 | ||
33 | struct intel_iommu; | 33 | struct intel_iommu; |
34 | #if defined(CONFIG_DMAR) || defined(CONFIG_INTR_REMAP) | 34 | #ifdef CONFIG_DMAR_TABLE |
35 | extern struct acpi_table_header *dmar_tbl; | 35 | extern struct acpi_table_header *dmar_tbl; |
36 | struct dmar_drhd_unit { | 36 | struct dmar_drhd_unit { |
37 | struct list_head list; /* list of drhd units */ | 37 | struct list_head list; /* list of drhd units */ |
@@ -81,7 +81,7 @@ static inline int enable_drhd_fault_handling(void) | |||
81 | { | 81 | { |
82 | return -1; | 82 | return -1; |
83 | } | 83 | } |
84 | #endif /* !CONFIG_DMAR && !CONFIG_INTR_REMAP */ | 84 | #endif /* !CONFIG_DMAR_TABLE */ |
85 | 85 | ||
86 | struct irte { | 86 | struct irte { |
87 | union { | 87 | union { |
@@ -112,7 +112,7 @@ struct irte { | |||
112 | }; | 112 | }; |
113 | }; | 113 | }; |
114 | 114 | ||
115 | #ifdef CONFIG_INTR_REMAP | 115 | #ifdef CONFIG_IRQ_REMAP |
116 | extern int intr_remapping_enabled; | 116 | extern int intr_remapping_enabled; |
117 | extern int intr_remapping_supported(void); | 117 | extern int intr_remapping_supported(void); |
118 | extern int enable_intr_remapping(void); | 118 | extern int enable_intr_remapping(void); |
@@ -214,7 +214,7 @@ extern int dmar_set_interrupt(struct intel_iommu *iommu); | |||
214 | extern irqreturn_t dmar_fault(int irq, void *dev_id); | 214 | extern irqreturn_t dmar_fault(int irq, void *dev_id); |
215 | extern int arch_setup_dmar_msi(unsigned int irq); | 215 | extern int arch_setup_dmar_msi(unsigned int irq); |
216 | 216 | ||
217 | #ifdef CONFIG_DMAR | 217 | #ifdef CONFIG_INTEL_IOMMU |
218 | extern int iommu_detected, no_iommu; | 218 | extern int iommu_detected, no_iommu; |
219 | extern struct list_head dmar_rmrr_units; | 219 | extern struct list_head dmar_rmrr_units; |
220 | struct dmar_rmrr_unit { | 220 | struct dmar_rmrr_unit { |
@@ -243,7 +243,7 @@ extern int dmar_parse_one_atsr(struct acpi_dmar_header *header); | |||
243 | extern int dmar_parse_dev_scope(void *start, void *end, int *cnt, | 243 | extern int dmar_parse_dev_scope(void *start, void *end, int *cnt, |
244 | struct pci_dev ***devices, u16 segment); | 244 | struct pci_dev ***devices, u16 segment); |
245 | extern int intel_iommu_init(void); | 245 | extern int intel_iommu_init(void); |
246 | #else /* !CONFIG_DMAR: */ | 246 | #else /* !CONFIG_INTEL_IOMMU: */ |
247 | static inline int intel_iommu_init(void) { return -ENODEV; } | 247 | static inline int intel_iommu_init(void) { return -ENODEV; } |
248 | static inline int dmar_parse_one_rmrr(struct acpi_dmar_header *header) | 248 | static inline int dmar_parse_one_rmrr(struct acpi_dmar_header *header) |
249 | { | 249 | { |
@@ -257,6 +257,6 @@ static inline int dmar_parse_rmrr_atsr_dev(void) | |||
257 | { | 257 | { |
258 | return 0; | 258 | return 0; |
259 | } | 259 | } |
260 | #endif /* CONFIG_DMAR */ | 260 | #endif /* CONFIG_INTEL_IOMMU */ |
261 | 261 | ||
262 | #endif /* __DMAR_H__ */ | 262 | #endif /* __DMAR_H__ */ |