iommu: Add sysfs bindings for struct iommu_device
There is currently support for iommu sysfs bindings, but
those need to be implemented in the IOMMU drivers. Add a
more generic version of this by adding a struct device to
struct iommu_device and use that for the sysfs bindings.
Also convert the AMD and Intel IOMMU driver to make use of
it.
Signed-off-by:
Joerg Roedel <jroedel@suse.de>
Showing
- drivers/iommu/amd_iommu.c 9 additions, 5 deletionsdrivers/iommu/amd_iommu.c
- drivers/iommu/amd_iommu_init.c 2 additions, 4 deletionsdrivers/iommu/amd_iommu_init.c
- drivers/iommu/amd_iommu_types.h 0 additions, 3 deletionsdrivers/iommu/amd_iommu_types.h
- drivers/iommu/dmar.c 5 additions, 8 deletionsdrivers/iommu/dmar.c
- drivers/iommu/intel-iommu.c 9 additions, 6 deletionsdrivers/iommu/intel-iommu.c
- drivers/iommu/iommu-sysfs.c 18 additions, 27 deletionsdrivers/iommu/iommu-sysfs.c
- include/linux/intel-iommu.h 0 additions, 1 deletioninclude/linux/intel-iommu.h
- include/linux/iommu.h 18 additions, 15 deletionsinclude/linux/iommu.h
Loading
Please register or sign in to comment