]> Pileus Git - ~andy/linux/blobdiff - drivers/iommu/amd_iommu_types.h
iommu/amd: Fix sparse warnings
[~andy/linux] / drivers / iommu / amd_iommu_types.h
index c1b1d489817e2b667edbbeb95d36eae1d503a994..848fc8e379480adff84374d7f69651c8ec84b740 100644 (file)
@@ -487,7 +487,7 @@ struct amd_iommu {
        /* physical address of MMIO space */
        u64 mmio_phys;
        /* virtual address of MMIO space */
-       u8 *mmio_base;
+       u8 __iomem *mmio_base;
 
        /* capabilities of that IOMMU read from ACPI */
        u32 cap;
@@ -664,6 +664,12 @@ extern bool amd_iommu_force_isolation;
 /* Max levels of glxval supported */
 extern int amd_iommu_max_glx_val;
 
+/*
+ * This function flushes all internal caches of
+ * the IOMMU used by this driver.
+ */
+extern void iommu_flush_all_caches(struct amd_iommu *iommu);
+
 /* takes bus and device/function and returns the device id
  * FIXME: should that be in generic PCI code? */
 static inline u16 calc_devid(u8 bus, u8 devfn)