]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
iommu/amd: Moving PPR fault flags macros definitions
authorAlexey Skidanov <Alexey.Skidanov@amd.com>
Tue, 8 Jul 2014 14:30:17 +0000 (17:30 +0300)
committerJoerg Roedel <jroedel@suse.de>
Wed, 9 Jul 2014 14:02:41 +0000 (16:02 +0200)
Any kernel source registering the invalid PPR calback may include the header file with PPR fault flags macros definitions.
Thus we move them to include/linux/amd-iommu.h

Signed-off-by: Alexey Skidanov <Alexey.Skidanov@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu_types.h
include/linux/amd-iommu.h

index f1a5abf11acfd06beadd326bb0b6b1ee6c14edae..e5f1cd4728ed45b69569ae1e64555619836f7731 100644 (file)
@@ -390,12 +390,6 @@ struct amd_iommu_fault {
 
 };
 
-#define PPR_FAULT_EXEC (1 << 1)
-#define PPR_FAULT_READ  (1 << 2)
-#define PPR_FAULT_WRITE (1 << 5)
-#define PPR_FAULT_USER  (1 << 6)
-#define PPR_FAULT_RSVD  (1 << 7)
-#define PPR_FAULT_GN    (1 << 8)
 
 struct iommu_domain;
 
index 15f6b9edd0b17ec30ed3cafacd5d686666279bdc..2b08e79f5100beca04f674930b910a35e7ab24f2 100644 (file)
@@ -119,6 +119,13 @@ typedef int (*amd_iommu_invalid_ppr_cb)(struct pci_dev *pdev,
 extern int amd_iommu_set_invalid_ppr_cb(struct pci_dev *pdev,
                                        amd_iommu_invalid_ppr_cb cb);
 
+#define PPR_FAULT_EXEC (1 << 1)
+#define PPR_FAULT_READ  (1 << 2)
+#define PPR_FAULT_WRITE (1 << 5)
+#define PPR_FAULT_USER  (1 << 6)
+#define PPR_FAULT_RSVD  (1 << 7)
+#define PPR_FAULT_GN    (1 << 8)
+
 /**
  * amd_iommu_device_info() - Get information about IOMMUv2 support of a
  *                          PCI device