diff options
author | Suresh Siddha <suresh.b.siddha@intel.com> | 2011-08-23 20:05:20 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-09-21 04:21:54 -0400 |
commit | 318fe7df9d8456f778451b01913b5d0dc0a25854 (patch) | |
tree | b134ae443ed05996f98660469590034ff19f76b5 /include/linux/dmar.h | |
parent | c2c7286ac6d996a8ffc8d391d782ba35570b1236 (diff) |
iommu: Move IOMMU specific code to intel-iommu.c
Move the IOMMU specific routines to intel-iommu.c leaving the
dmar.c to the common ACPI dmar code shared between DMA-remapping
and Interrupt-remapping.
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.282401285@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 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/dmar.h b/include/linux/dmar.h index 2dc810e35dd0..a7992ec36570 100644 --- a/include/linux/dmar.h +++ b/include/linux/dmar.h | |||
@@ -237,9 +237,26 @@ struct dmar_atsr_unit { | |||
237 | u8 include_all:1; /* include all ports */ | 237 | u8 include_all:1; /* include all ports */ |
238 | }; | 238 | }; |
239 | 239 | ||
240 | int dmar_parse_rmrr_atsr_dev(void); | ||
241 | extern int dmar_parse_one_rmrr(struct acpi_dmar_header *header); | ||
242 | extern int dmar_parse_one_atsr(struct acpi_dmar_header *header); | ||
243 | extern int dmar_parse_dev_scope(void *start, void *end, int *cnt, | ||
244 | struct pci_dev ***devices, u16 segment); | ||
240 | extern int intel_iommu_init(void); | 245 | extern int intel_iommu_init(void); |
241 | #else /* !CONFIG_DMAR: */ | 246 | #else /* !CONFIG_DMAR: */ |
242 | 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) | ||
249 | { | ||
250 | return 0; | ||
251 | } | ||
252 | static inline int dmar_parse_one_atsr(struct acpi_dmar_header *header) | ||
253 | { | ||
254 | return 0; | ||
255 | } | ||
256 | static inline int dmar_parse_rmrr_atsr_dev(void) | ||
257 | { | ||
258 | return 0; | ||
259 | } | ||
243 | #endif /* CONFIG_DMAR */ | 260 | #endif /* CONFIG_DMAR */ |
244 | 261 | ||
245 | #endif /* __DMAR_H__ */ | 262 | #endif /* __DMAR_H__ */ |