]> git.karo-electronics.de Git - linux-beck.git/commitdiff
iommu/amd: Move struct iommu_dev_data to amd_iommu.c
authorJoerg Roedel <jroedel@suse.de>
Tue, 5 Aug 2014 14:38:38 +0000 (16:38 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 26 Aug 2014 09:37:37 +0000 (11:37 +0200)
The struct is only used there, so it doesn't need to be in
the header file.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c
drivers/iommu/amd_iommu_types.h

index ecb0109a536045019dc3c5b9e2c084c3628f16ce..fe6d7cc715f7b95546de4aec57496ffe305c3332 100644 (file)
@@ -87,6 +87,27 @@ int amd_iommu_max_glx_val = -1;
 
 static struct dma_map_ops amd_iommu_dma_ops;
 
+/*
+ * This struct contains device specific data for the IOMMU
+ */
+struct iommu_dev_data {
+       struct list_head list;            /* For domain->dev_list */
+       struct list_head dev_data_list;   /* For global dev_data_list */
+       struct iommu_dev_data *alias_data;/* The alias dev_data */
+       struct protection_domain *domain; /* Domain the device is bound to */
+       atomic_t bind;                    /* Domain attach reference count */
+       u16 devid;                        /* PCI Device ID */
+       bool iommu_v2;                    /* Device can make use of IOMMUv2 */
+       bool passthrough;                 /* Default for device is pt_domain */
+       struct {
+               bool enabled;
+               int qdep;
+       } ats;                            /* ATS state */
+       bool pri_tlp;                     /* PASID TLB required for
+                                            PPR completions */
+       u32 errata;                       /* Bitmap for errata to apply */
+};
+
 /*
  * general struct to manage commands send to an IOMMU
  */
index 8e43b7cba1334b274c8baba49d38ee4a528be09a..cec51a8ba844d7c9f6dfbbd0b9e8da09e1be65af 100644 (file)
@@ -417,27 +417,6 @@ struct protection_domain {
 
 };
 
-/*
- * This struct contains device specific data for the IOMMU
- */
-struct iommu_dev_data {
-       struct list_head list;            /* For domain->dev_list */
-       struct list_head dev_data_list;   /* For global dev_data_list */
-       struct iommu_dev_data *alias_data;/* The alias dev_data */
-       struct protection_domain *domain; /* Domain the device is bound to */
-       atomic_t bind;                    /* Domain attach reference count */
-       u16 devid;                        /* PCI Device ID */
-       bool iommu_v2;                    /* Device can make use of IOMMUv2 */
-       bool passthrough;                 /* Default for device is pt_domain */
-       struct {
-               bool enabled;
-               int qdep;
-       } ats;                            /* ATS state */
-       bool pri_tlp;                     /* PASID TLB required for
-                                            PPR completions */
-       u32 errata;                       /* Bitmap for errata to apply */
-};
-
 /*
  * For dynamic growth the aperture size is split into ranges of 128MB of
  * DMA address space each. This struct represents one such range.