summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/amd_iommu_proto.h
Commit message (Collapse)AuthorAgeFilesLines
* iommu/amd: Add function to get IOMMUv2 domain for pdevJoerg Roedel2011-12-121-0/+1
| | | | | | | | The AMD IOMMUv2 driver needs to get the IOMMUv2 domain associated with a particular device. This patch adds a function to get this information. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
* iommu/amd: Implement function to send PPR completionsJoerg Roedel2011-12-121-0/+6
| | | | | | | 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>
* iommu/amd: Implement functions to manage GCR3 tableJoerg Roedel2011-12-121-0/+4
| | | | | | | | This patch adds functions necessary to set and clear the GCR3 values associated with a particular PASID in an IOMMUv2 domain. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
* iommu/amd: Implement IOMMUv2 TLB flushing routinesJoerg Roedel2011-12-121-0/+3
| | | | | | | | The functions added with this patch allow to manage the IOMMU and the device TLBs for all devices in an IOMMUv2 domain. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
* iommu/amd: Add support for IOMMUv2 domain modeJoerg Roedel2011-12-121-0/+1
| | | | | | | This patch adds support for protection domains that implement two-level paging for devices. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
* iommu/amd: Add amd_iommu_domain_direct_map functionJoerg Roedel2011-12-121-0/+3
| | | | | | | | This function can be used to switch a domain into paging-mode 0. In this mode all devices can access physical system memory directly without any remapping. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
* iommu/amd: Implement notifier for PPR faultsJoerg Roedel2011-12-121-0/+3
| | | | | | | Add a notifer at which a module can attach to get informed about incoming PPR faults. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
* iommu/amd: Add iommuv2 flag to struct amd_iommuJoerg Roedel2011-12-121-0/+3
| | | | | | | | | | In mixed IOMMU setups this flag inidicates whether an IOMMU supports the v2 features or not. This patch also adds a global flag together with a function to query that flag from other code. The flag shows if at least one IOMMUv2 is in the system. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
* iommu/amd: Move missing parts to drivers/iommuJoerg Roedel2011-06-211-0/+54
A few parts of the driver were missing in drivers/iommu. Move them there to have the complete driver in that directory. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>