diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2011-11-21 12:19:25 -0500 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2011-12-12 09:19:05 -0500 |
commit | c99afa25b67339b5fa7ef3767398878be9f60e1f (patch) | |
tree | 6743ac16764459cbdf519f0c83ca4d0c2d923dfb /drivers/iommu/amd_iommu_proto.h | |
parent | b16137b11b4b4d4bb27b61bba7e05f5fda5968f4 (diff) |
iommu/amd: Implement function to send PPR completions
To send completions for PPR requests this patch adds a
function which can be used by the IOMMUv2 driver.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/iommu/amd_iommu_proto.h')
-rw-r--r-- | drivers/iommu/amd_iommu_proto.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/iommu/amd_iommu_proto.h b/drivers/iommu/amd_iommu_proto.h index a951a7090e35..bb5ecfecfa44 100644 --- a/drivers/iommu/amd_iommu_proto.h +++ b/drivers/iommu/amd_iommu_proto.h | |||
@@ -47,6 +47,12 @@ extern int amd_iommu_domain_set_gcr3(struct iommu_domain *dom, int pasid, | |||
47 | unsigned long cr3); | 47 | unsigned long cr3); |
48 | extern int amd_iommu_domain_clear_gcr3(struct iommu_domain *dom, int pasid); | 48 | extern int amd_iommu_domain_clear_gcr3(struct iommu_domain *dom, int pasid); |
49 | 49 | ||
50 | #define PPR_SUCCESS 0x0 | ||
51 | #define PPR_INVALID 0x1 | ||
52 | #define PPR_FAILURE 0xf | ||
53 | |||
54 | extern int amd_iommu_complete_ppr(struct pci_dev *pdev, int pasid, | ||
55 | int status, int tag); | ||
50 | 56 | ||
51 | #ifndef CONFIG_AMD_IOMMU_STATS | 57 | #ifndef CONFIG_AMD_IOMMU_STATS |
52 | 58 | ||