mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 17:51:43 +00:00
657cbb6b6c
This patch changes IOMMU code to use dev->archdata->iommu to store information about the alias device and the domain the device is attached to. This allows the driver to get rid of the amd_iommu_pd_table in the future. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
20 lines
355 B
C
20 lines
355 B
C
#ifndef _ASM_X86_DEVICE_H
|
|
#define _ASM_X86_DEVICE_H
|
|
|
|
struct dev_archdata {
|
|
#ifdef CONFIG_ACPI
|
|
void *acpi_handle;
|
|
#endif
|
|
#ifdef CONFIG_X86_64
|
|
struct dma_map_ops *dma_ops;
|
|
#endif
|
|
#if defined(CONFIG_DMAR) || defined(CONFIG_AMD_IOMMU)
|
|
void *iommu; /* hook for IOMMU specific extension */
|
|
#endif
|
|
};
|
|
|
|
struct pdev_archdata {
|
|
};
|
|
|
|
#endif /* _ASM_X86_DEVICE_H */
|