Ver Fonte

iommu/amd: Move struct iommu_dev_data to amd_iommu.c

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>
Joerg Roedel há 11 anos atrás
pai
commit
50917e265e
2 ficheiros alterados com 21 adições e 21 exclusões
  1. 21 0
      drivers/iommu/amd_iommu.c
  2. 0 21
      drivers/iommu/amd_iommu_types.h

+ 21 - 0
drivers/iommu/amd_iommu.c

@@ -87,6 +87,27 @@ int amd_iommu_max_glx_val = -1;
 
 
 static struct dma_map_ops amd_iommu_dma_ops;
 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
  * general struct to manage commands send to an IOMMU
  */
  */

+ 0 - 21
drivers/iommu/amd_iommu_types.h

@@ -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
  * For dynamic growth the aperture size is split into ranges of 128MB of
  * DMA address space each. This struct represents one such range.
  * DMA address space each. This struct represents one such range.